Saturday, September 22, 2012

Nuitka, faster replacement for Python?

By Vasudev Ram


Seen via this tweet by @Phaseit. He describes it as "Python, with the speed of C++".

Nuitka

Excerpt from the Nuitka overview page above:

[ Right now Nuitka is a good replacement for the Python interpreter and compiles every construct that CPython 2.6 and 2.7 offer. It translates the Python into a C++ program that then uses "libpython" to execute in the same way as CPython does, in a very compatible way.

It is somewhat faster than CPython already, but currently it doesn't make all the optimizations possible, but a 258% factor on pystone is a good start (number is from version 0.3.11). ]

Looks interesting, must keep an eye on its progress.

Two other projects to make Python faster are Unladen Swallow that was started by Google (don't know the status as of now), and PyPy (PyPy Wikipedia page). PyPy has been funded (over time) by the European Union, Google and the Python Software Foundation.

UPDATE: Checked the Wikipedia link for Unladen Swallow above, it seems like the project is stopped. No activity since 2009 or so.

- Vasudev Ram - Dancing Bison Enterprises

No comments: