• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Mobile Lua for iOS and Android with Ansca Corona

Mobile Lua for iOS and Android with Ansca Corona



Slides from a talk on mobile development in Lua, at the May 2011 St. Louis Mobile Development group.

Slides from a talk on mobile development in Lua, at the May 2011 St. Louis Mobile Development group.



Total Views
Views on SlideShare
Embed Views



14 Embeds 8,269

http://kylecordes.com 5423
http://yamayatakeshi.jp 2802
http://francescoagati.posterous.com 16
http://translate.googleusercontent.com 8
http://www.google.co.jp 5
http://webcache.googleusercontent.com 4
https://www.google.co.jp 3
http://donutboy 2
http://www.hanrss.com 1
http://posterous.com 1
http://static.slidesharecdn.com 1
http://theoldreader.com 1
http://www.verious.com 1
http://fanyi.youdao.com 1



Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment
  • \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

Mobile Lua for iOS and Android with Ansca Corona Mobile Lua for iOS and Android with Ansca Corona Presentation Transcript

  • Mobile Lua iOS and Android Appswith Ansca Corona (Lua) Kyle Cordes STL Mobile Dev May 2011 http://www.flickr.com/photos/mikebaird/4060342528/
  • About Kyle Cordes • Blah, Blah, Blah
  • AgendaWhy Lua?Lua on Mobile - Free/OpenAnsca Corona - Not FreeCode / Demo
  • 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.)
  • Small http://www.flickr.com/photos/kentigern/221409419/ http://www.flickr.com/photos/andrewscott/577706627/
  • Lua is SmallAs 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?
  • Simple http://www.flickr.com/photos/benmcleod/44336195/ http://www.flickr.com/photos/slightlywinded/66875782/
  • Lua is Simple• to use - well suited for small software• to learn - ~20 keywords, ~20 operators• to teach - plenty of non-developers use it
  • Flexible http://www.flickr.com/photos/wiccked/348866434/http://www.flickr.com/photos/wainwright/351684037/
  • 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
  • Fasthttp://www.autoblog.com/photos/pagani-zonda-hh-0/http://www.flickr.com/photos/kentigern/223140455/
  • LuaJIT is in C++ / Java6 territory. http://luajit.org/Interpreted Lua is generally faster than Python, Ruby, Perl, and PHP. At the moment, mobileimplementations are non-JIT. http://bit.ly/8RLpoG
  • 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
  • Lua in World of Warcraft• At least one external IDE• Several published books• Large community
  • Angry BirdsConfiguration, and possibly level definitions, are in Lua.
  • Wikipedia lists 110+games with Lua scripting (many on PCs, many on consoles, some on handhelds)
  • Mobile Lua - FreeiOS AndroidPhone Wax (UIKit) Android Scripting Environment Edit code onOthers? the device! Others?
  • Ansca Corona ($)Cross-Platform: Android and iOSCross-Platform: Develop on OSX or Windows2D-game-centric, but not game-onlyDocumentation, Tutorials, ExamplesLibrariesSupport Forum$349 per year per developer
  • Ansca Corona+ Some positives- Some negatives
  • Rapid DevelopmentLots of stories already, about apps developedin days or weeks....by people who could not do so with the+native tools.
  • 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.)
  • 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.
  • Libraries / InfrastructureCorona’s libraries are a bit rough; muchmaturing to be done.API design, parameter lists, and so on, seem abit ad hoc.-If you build something big, plan on wrappinga layer around it. Take my gripe with a grain of salt; the big story is that it works!
  • 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.
  • Corona on AndroidCorona support for Android has somelimitations:• Android v 2.2 or higher• ARMv7 only!- • SDK Emulator and many current phones are ARMv6• Some features don’t work yet
  • Worth Using, Buying?Yes, if you want to start working on an apprather than working on infrastructure.No, if you want to explore variousapproaches to layering scripting on top ofnative code.No, if you need to support the bottom halfof Android phones.
  • Code and Demo (For those of you reading the slides only: at this point we looked through the code for a coupleof Ansca’s demo apps, and passed around a phone.)
  • kylecordes.com http://www.flickr.com/photos/thetruthabout/