Lua as a Python’s secret weapon
alexeyvishnevsky.com
alexeyvishnevsky.com
Numba provides speed-ups over NumPy and Python and does so in way very easy for Python programmers to use with decorators on Python functions. Numba can be used to easily build new "ufuncs" which are NumPy's universal functions and it has multiple interfaces for programming the GPU directly from Python for even higher performance.
http://github.com/bhk/tooltree
See 'documentation' -> 'monoglot' -> 'Introduction'
A lot of things have lua bindings and a lua interface. But once you stop being your own boss, your control over which interfaces and bindings to use shrinks drastically.
I believe the question was more: What fields/industries are actually USING the lua interface by default? Where would being able to say "I am very experienced with lua scripting" be a particularly strong asset.
This is not true at all. Where I work we use OpenResty in places for a WAF but we don't touch Lua for anything else. You don't need to know much Lua for this.
Using something as an embedded language is a little different than building standalone systems/infrastructure projects with something.
I agree that in any organization if the choice of use a tool is not in your hands you are forced to use something else well, that don't have anything to relate with lua or with any other programming language.
That's a people problem you accepted when hired, but can move to other happy place that used lua or python, or ... etc (=
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