[Python-Dev] A new JIT compiler for a faster CPython?
Stefan Behnel
stefan_ml at behnel.de
Tue Jul 17 20:58:55 CEST 2012
Victor Stinner, 17.07.2012 20:38:
> -- Subset of Python --
>
> * `pymothoa <http://code.google.com/p/pymothoa/>`_: use LLVM; don't
> support classes nor exceptions.
> * `unpython <http://code.google.com/p/unpython/>`_: Python to C
> * `Perthon <http://perthon.sourceforge.net/>`_: Python to Perl
> * `Copperhead <http://copperhead.github.com/>`_: Python to GPU (Nvidia)
You might also want to add numexpr and numba to that list. Numba might
actually be quite close to pymothoa (hadn't heard of it before).
Personally, I like the idea of having a JIT compiler more or less as an
extension module at hand. Sort-of like a co-processor, just in software.
Lets you run your code either interpreter or JITed, just as you need.
Note that the Cython project is working on a protocol to efficiently call
external C implemented Python functions by effectively unboxing them. That
explicitly includes JIT compiled code, and a JIT compiler could obviously
make good use of it from the other side as well.
Stefan
More information about the Python-Dev
mailing list