Successfully reported this slideshow.
Your SlideShare is downloading. ×

Mobile Lua for iOS and Android with Ansca Corona

More Related Content

Related Books

Free with a 30 day trial from Scribd

See all

Mobile Lua for iOS and Android with Ansca Corona

  1. 1. Mobile Lua iOS and Android Apps with Ansca Corona (Lua) Kyle Cordes STL Mobile Dev May 2011 http://www.flickr.com/photos/mikebaird/4060342528/
  2. 2. About Kyle Cordes • Blah, Blah, Blah
  3. 3. Agenda Why Lua? Lua on Mobile - Free/Open Ansca Corona - Not Free Code / Demo
  4. 4. Why Lua? 6 Reasons 5 Reasons See my past talk for more details: http://kylecordes.com/2010/lua-strange-loop (The first reason from that is Lua’s sandbox, which is not relevant here.)
  5. 5. Small http://www.flickr.com/photos/kentigern/221409419/ http://www.flickr.com/photos/andrewscott/577706627/
  6. 6. Lua is Small As small as <100 KB (DLL/LIB) Easily runs on small devices or in small apps. http://probablyinteractive.com/2009/10/18/Setting-up-iPhone-Wax.html?
  7. 7. Simple http://www.flickr.com/photos/benmcleod/44336195/ http://www.flickr.com/photos/slightlywinded/66875782/
  8. 8. Lua is Simple • to use - well suited for small software • to learn - ~20 keywords, ~20 operators • to teach - plenty of non-developers use it
  9. 9. Flexible http://www.flickr.com/photos/wiccked/348866434/ http://www.flickr.com/photos/wainwright/351684037/
  10. 10. Lua is Flexible • Dynamically typed • First-class functions • Easy interop • Written in super-clean C, ports to nearly any platform • Ample libraries off-the-shelf
  11. 11. Fast http://www.autoblog.com/photos/pagani-zonda-hh-0/ http://www.flickr.com/photos/kentigern/223140455/
  12. 12. LuaJIT is in C++ / Java6 territory. http://luajit.org/ Interpreted Lua is generally faster than Python, Ruby, Perl, and PHP. At the moment, mobile implementations are non-JIT. http://bit.ly/8RLpoG
  13. 13. Momentum http://www.flickr.com/photos/us_army_rolling_along/3342500833/ http://www.flickr.com/photos/us_army_rolling_along/4509400870/ http://www.flickr.com/photos/carbonnyc/76463757/s
  14. 14. Lua in World of Warcraft • At least one external IDE • Several published books • Large community
  15. 15. Angry Birds Configuration, and possibly level definitions, are in Lua.
  16. 16. Wikipedia lists 110+ games with Lua scripting (many on PCs, many on consoles, some on handhelds)
  17. 17. Mobile Lua - Free iOS Android Phone Wax (UIKit) Android Scripting Environment Edit code on Others? the device! Others?
  18. 18. Ansca Corona ($) Cross-Platform: Android and iOS Cross-Platform: Develop on OSX or Windows 2D-game-centric, but not game-only Documentation, Tutorials, Examples Libraries Support Forum $349 per year per developer
  19. 19. Ansca Corona + Some positives - Some negatives
  20. 20. Rapid Development Lots of stories already, about apps developed in days or weeks. ...by people who could not do so with the + native tools.
  21. 21. Demonstrably Sufficient There have been a pile of apps (mostly games, mostly iOS) to see pretty significant success. + (At least in terms of downloads/rank.)
  22. 22. Corona “IDE” Bring your own editor. Run in Corona’s emulator. Very limited tooling. - Occasionally build for deployment... ... which invokes xCode or Android SDK for you.
  23. 23. Libraries / Infrastructure Corona’s libraries are a bit rough; much maturing to be done. API design, parameter lists, and so on, seem a bit ad hoc. - If you build something big, plan on wrapping a layer around it. Take my gripe with a grain of salt; the big story is that it works!
  24. 24. Cross-Platform? Many simple things pretty much work across platforms. Performance can be surprising. Some controls are different. Good enough for apps that don’t need native controls/feels; currently pretty weak for ? those that do.
  25. 25. Corona on Android Corona support for Android has some limitations: • Android v 2.2 or higher • ARMv7 only! - • SDK Emulator and many current phones are ARMv6 • Some features don’t work yet
  26. 26. Worth Using, Buying? Yes, if you want to start working on an app rather than working on infrastructure. No, if you want to explore various approaches to layering scripting on top of native code. No, if you need to support the bottom half of Android phones.
  27. 27. Code and Demo (For those of you reading the slides only: at this point we looked through the code for a couple of Ansca’s demo apps, and passed around a phone.)
  28. 28. kylecordes.com http://www.flickr.com/photos/thetruthabout/

Editor's Notes

  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

×