Why not a Python compiler?

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Tue Feb 5 07:13:48 EST 2008


Santiago Romero a écrit :
>  ( Surely if this question has been asked for a zillion of times... )

Why not checking this by yourself ? google is down ?-)

>  I'm impressed with python. I'm very happy with the language and I
> find Python+Pygame a very powerful and productive way of writing 2D
> games. I'm not, at this moment, worried about execution speed of the
> small game I'm working on (it runs at full 60 fps even in an old AMD-
> K6 450 Laptop computer), but I continue asking me the same question:
> 
>  Why not a Python COMPILER?

http://docs.python.org/lib/module-compiler.html

>  It would be very nice to be able to output Linux, MAC or Windows
> binaries of compiled (not bytecompiled) code.

Ah, sorry.

> It would run faster, it
> will be smaller in size (I think)

These two points are very questionnable given Python's dynamicity. IIRC, 
some guru already made the point, a couple or more years ago, that it 
would be a lot of effort and buy *very* few wrt/ execution speed since 
everything still have to happens at runtime. IOW, a JIT compiler seems a 
far better solution, but this (so far) still impose some (serious) 
limitations to be of any help.






More information about the Python-list mailing list