74 points · by ceyhunkazel · 10y ago · 32 comments
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'
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