Lua interpreter on Iphone
Is it possi开发者_C百科ble to run Lua interpreter on the iphone? If yes, are there any libraries that have bindings to Iphone's SDK? If its not possible with Lua, what are the other language options?
See the Ansca Corona SDK.
In addition to the Corona SDK mentioned above, see also iPhone Wax.
Yes, many applications on the store (specifically games) have used Lua. However, be advised, with section 3.3.1 of the new developers agreement, calling into iPhone SDK routines from a language other than C/C++ or Objective-C/Objective-C++ is explicitly forbidden (included also is JavaScript but only on the WebKit engine, not outside of it). Therefore, if you're getting the idea you'll write your application in lua, be aware that even if it makes it through review, which is unlikely, it could be pulled at any point if you're using it for calling iPhone SDK routines.
Apple has recently revised their TOS to explicitly allow for Lua engines such as the one in Ansca Corona. So there is no need for worry about that.
Moai is a Lua based cross-platform SDK which supports iOS among other targets. They recently had their 1.0 release and have a few pro studios using them (Double Fine, Harebrained Schemes). Worth checking out. It's a lot less noob-friendly than Corona (their tag line is "for pro game developers"), but unlike Corona it's free and open source, and very fast.
Touch Lua, Its free, its simple!
https://itunes.apple.com/us/app/touch-lua/id525273327?mt=8 https://sites.google.com/site/hawwashsoft/touch-lua
精彩评论