4 ms·
> * 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, an
by 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.