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

Sturla Molden sturla.molden at gmail.com
Mon Dec 28 13:33:20 EST 2015


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



More information about the Python-Dev mailing list