Why isn't everyone using Lua?
I came across the Lua programming language and started reading the first edition of 'Programming in Lua', which is available for free online (http://www.lua.org/pil).
I am incredibly impressed by the conciseness of the language and its syntax and really like it (there are only a handful of types, the 'table' data structure can be used to easily create any complex data structure), it is fast and is designed to be called as a script from c, and c functions can be easily called from it. Intuitively it appeals to me even more than Python does.
Its adoption seems to suggest it is not widely used outside game programming? Why? What is wrong with you people? ;)
14 comments
[ 3.0 ms ] story [ 44.7 ms ] threadIt doesn't help that it's embedded into larger applications most of the time, which do not allow easy debugging, if at all.
i am not criticising lua in any way - from what i know of it, it is exemplary (there's a good paper on its implementation that i enjoyed). but languages don't succeed on intrinsic qualities alone.
This is somewhat unintuitive in the context of other similar languages, but once you have a grasp of it, it makes a lot of sense, and is remarkably elegant.
There are a couple of syntax decisions (default globals, no ++ or --, indexes start at 1) that might cause negative reactions, but I'd put the lack of libraries and frameworks above that.
Lua is still awesome for simplicity, easy C binding, and performance, but deciding to build a new project in Lua requires a significant investment in just getting the base libraries put together.
http://prosody.im/
It does suffer from the lack of a robust standard library, because it is intended to be embedded, where it should inherit the majority of its functionality from the host application. That said, when embedded in a rich host environment, it's a marvelous tool.