a basic bytecode to machine code compiler
steve+comp.lang.python at pearwood.info
Sat Apr 2 12:04:11 CEST 2011
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.
More information about the Python-list