Steven D'Aprano, 02.04.2011 12:04:
On Fri, 01 Apr 2011 17:45:39 +0200, Stefan Behnel wrote:
Steven D'Aprano, 01.04.2011 14:57:
I suggest you check out the competitors:
Shedskin is a Python to C++ compiler; Psyco is a JIT specialising
compiler; Nuitka claims to be a C++ implementation that compiles to
machine code; Berp claims to be a Haskell implementation that does the
same; Compyler claims to be a native x86 assembly compiler; UnPython
claims to be an experimental Python to C compiler.
Of the six, as far as I know only Shedskin and Psyco are widely used.
Erm, yes, right. If you want to exclude Cython, which arguably is the
only static Python compiler that actually has a large user base, then
those may really be the only two that are widely used. Except that Psyco
is certainly being used a lot more often than Shedskin, mainly because
it actually allows you to execute Python code.
My apologies, I thought about including Cython in the list, but my
understanding of it is that it is a derivative of Pyrex, and used for
writing C extensions in a Python-like language (Python + type
annotations). We were talking about talking ordinary, unmodified Python
code and compiling it to machine code, and I didn't think either Pyrex or
Cython do that.
Ok, no problem. Pyrex certainly doesn't play in the same league.
Cython actually supports most Python language features now (including
generators in the development branch), both from Python 2 and Python 3.
Chances are that the next release will actually compile most of your Python
code unchanged, or only with minor adaptations.
Stefan
--
http://mail.python.org/mailman/listinfo/python-list