[Python-Dev] Pyston: a Python JIT on LLVM
Dag Sverre Seljebotn
d.s.seljebotn at astro.uio.no
Fri Apr 4 12:13:53 CEST 2014
On 04/04/2014 12:42 AM, Sturla Molden wrote:
> 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
Specifically, Numba compiles to LLVM too, and tries to be somewhat
general-purpose although it's tuned to numerical code. And their reason
for not using PyPy is the same: C extensions. So while their "market
segment" is different from yours, the technology may not be.
Dag Sverre
>
> 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
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/d.s.seljebotn%40astro.uio.no
>
More information about the Python-Dev
mailing list