3 ms·
As I see it Lua only make sense for: * Video Games / Graphics engine scripting * MySQL administration * Maybe also if you want to add embeddable scripting to
by nivertech 16y ago
As I see it Lua only make sense for:
* Video Games / Graphics engine scripting
* MySQL administration
* Maybe also if you want to add embeddable scripting to your app, but then why not go with more popular choice, like Python?
Choosing tables as a main datatype rather than associative arrays is a best choice in Lua design!
- pygy_ 16y ago> * Maybe also if you want to add embeddable scripting to your app, but then why not go with more popular choice, like Python? The Lua VM is extremely lean, and it has been designed from scratch for embeddability in C and C++ programs (it is written in the common subset of C89 and C++). Furthermore, if your code runs on x86 or x64, you can switch to LuaJIT which is amazingly fast. LuaJIT has the same perfirmance profile as Java (but it is mre frugal on memory). The Lua interpreter is about as fast as Pypy, the fastest Python JIT compiler. See http://shootout.alioth.debian.org/u32/code-used-time-used-shapes.php http://shootout.alioth.debian.org/u32/code-used-time-used-sh... for the details.
- mhd 16y agoWell, Python and its ilk are getting pretty huge. And most of its programmers are pretty used to the (massive) standard library. So if you just include the interpreter, Python programmers will be a bit confused. With Lua, that's not an issue. Also, it is a very clean and simple language. It's basically Javascript done right. If I remember correctly, it's one of Zed Shaw's current obsessions. So I bet we're going to see some interesting combination of Lua with his new Mongrel2 project. That combined with the growing library and the packaging mechanism (rocks) might further improve the publicity of Lua for stand-alone scripting.