Python compiler -> py to C, py to ELF

Yermat loic at fejoz.net
Wed Mar 31 03:34:59 EST 2004


fowlertrainer at anonym.hu wrote:
> Hello !
> 
> Know anyone about py2C compiler ?
> I see that py2jar is exists, and is named jython.
> 
> But have a python a compiler what can compile the complete project
> into one ELF binary file ?
> 
> Thanx for infos.
> 

Yes, type 'py2c' into google... You will have a C code but this will be 
as fast as trough the python interpreter.

In fact, nothing real with compiler can be done until type inference in 
Python is fully implemented.

For type inference look at StarKiller 
(http://www.python.org/pycon/dc2004/papers/1/), a promising type 
inference for Python. I think the author is also working on a c++ 
translator but no code is released.

If you just want an exe file, also see py2exe 
(http://starship.python.net/crew/theller/py2exe/)

If what you want is something faster than python but not an ELF file 
then also look at pyrex.

Yermat




More information about the Python-list mailing list