[Python-Dev] Is there a reference manual for Python bytecode?

Wes Turner wes.turner at gmail.com
Tue Dec 29 08:59:25 EST 2015


numba

*
http://numba.pydata.org/numba-doc/0.16.0/modules/numba.html#module-numba.bytecode
* https://github.com/numba/numba/blob/master/numba/bytecode.py

pypy

* http://doc.pypy.org/en/latest/interpreter.html
* http://aosabook.org/en/pypy.html

... http://compilers.pydata.org/ #Bytecode Utilities
On Dec 28, 2015 1:33 PM, "Sturla Molden" <sturla.molden at gmail.com> wrote:

Brett Cannon <brett at python.org> wrote:

> Ned also neglected to mention his byterun project which is a pure Python
> implementation of the CPython eval loop: <a
> href="https://github.com/nedbat/byterun">https://github.com/nedbat/byterun
</a>

I would also encourage you to take a look at Numba. It is an LLVM based JIT
compiler for Python bytecode, written for hardcore numerical algorithms in
Python. It can often achieve the same performance as -O2 in C after a short
burn-in while inferring the types of the arguments and variables. Using it
is mostly as easy as adding an @numba.jit decorator to the function we want
to accelerate. Numba is rapidly becoming what Google's long dead swallow
should have been.

:-)

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/wes.turner%40gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20151229/017e21cf/attachment.html>


More information about the Python-Dev mailing list