3 ms·
- embeddable inside your application - modest resource requirements - runs on everything (embedded, game consoles, etc.) - has a JIT compiler that is way bet
by beagle3 16y ago
- embeddable inside your application
- modest resource requirements
- runs on everything (embedded, game consoles, etc.)
- has a JIT compiler that is way better than any Ruby/JS/Python JIT (and in fact in many cases better than a good Java compiler).
- Simple and regular syntax
- Vibrant and helpful community.
It's not the right choice for web development, because that's not where its echosystem is (although you can do that if you want). Other than that, the only drawback I can think of is that arrays start at 1 rather than 0.
- squidbot 16y agoI agree with all of the above and will ad a few things that attracted me to use Lua as the scripting language for our game engine: - Data can be easily constructed inline without a lot of extra syntax - The interpreter is very fast - Functions as first class objects - Closures - Meta-tables All of these things make Lua very expressive and concise for designers, while giving a lot of control to make things work correctly to the programmers. A few cons: - the built in error handling is not great, we corrected it. - variables are global by default, which can make typos become runtime errors, we corrected this as well
- pasbesoin 16y agoOT: echosystem What is the name of a word that is inadvertently created e.g. by a typo, or a slip of the tongue? While I don't believe it applies to the current context, echosystem is just begging for use in some other contexts.