A vision for Parrot

Robin Becker robin at jessikat.fsnet.co.uk
Wed Nov 6 13:41:52 EST 2002


In message <20021106184401.X30315 at prim.han.de>, holger krekel
<pyth at devel.trillke.net> writes
.....
>I am not sure i understand this.  Why does python need to enter
>restricted mode?  
>
>And doesn't PSYCO also do JIT-alike compiling?  That's at least how
>i understood Armin.  As he also suggests to rewrite the python-core
>in python to make it faster (with psyco) maybe this could help
>with an c#-interpreter?  
>
>wildly-guessing'ly yours,
>
>    holger
>
I think that python allows any reference to change type dynamically.

I don't think C# allows this, but am no expert. The implication is that
C# can be very much more agressive in its JIT compilation. When it sees
x*y for x and y known ints it can compile an integer multiply. Python
only sees x*y and without the type information it is forced to do type
lookup at run time.

As you point out psyco can do the compilation, but only into the generic
multiply (unless psyco can be hinted in some way).

The pyrex project goes further and allows C style typing which makes it
very fast, but it isn't JIT.
-- 
Robin Becker




More information about the Python-list mailing list