The real gains come from Mike Pall's amazing JIT implementation, not the language itself.
The real gains come from Mike Pall's amazing JIT implementation, not the language itself.
Stock Lua is also much faster than Python.
"It complements Python very well. Lua is a language as dynamic as Python, but LuaJIT compiles it to very fast machine code, sometimes faster than many statically compiled languages for computational code. The language runtime is very small and carefully designed for embedding. The complete binary module of Lupa, including a statically linked LuaJIT2 runtime, only weighs some 700KB on a 64 bit machine. With standard Lua 5.1, it’s less than 400KB."
I believe it is a lot harder to make a Python jitter. And it would never be as fast as a Lua jitter.
Pyston is the only CPython JIT currently however