[Python-Dev] Pyston: a Python JIT on LLVM

Sturla Molden sturla.molden at gmail.com
Fri Apr 4 00:42:36 CEST 2014


Kevin Modzelewski <kmod at dropbox.com> wrote:

> Since it's the question that I think most people will inevitably (and
> rightly) ask, why do we think there's a place for Pyston when there's PyPy
> and (previously) Unladen Swallow?

Have you seen Numba, the Python JIT that integrates with NumPy?

http://numba.pydata.org

It uses LLVM to compile Python bytecode. When I have tried it I tend to get
speed comparable to -O2 in C for numerical and algorithmic code.

Here is an example, giving a 150 times speed boost to Python:

http://stackoverflow.com/questions/21811381/how-to-shove-this-loop-into-numpy/21818591#21818591


Sturla



More information about the Python-Dev mailing list