first release of PyPy

Jp Calderone exarkun at divmod.com
Sat May 21 21:14:24 EDT 2005


On 21 May 2005 17:57:17 -0700, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote:
>Christian Tismer <tismer at stackless.com> writes:
>> Type inference works fine for our implementation of Python,
>> but it is in fact very limited for full-blown Python programs.
>> Yoou cannot do much more than to try to generate effective code
>> for the current situation that you see. But that's most often
>> quite fine.
>
>Type inference (or static type declarations) is one part of compiling
>dynamic languages but I think its importance is overblown in these
>Python compiler threads.  There's lots of compiled Lisp code out there
>that's completely dynamic, with every operation dispatching on the
>type tags in the Lisp objects.  Yes, the code runs slower than when
>the compiler knows the type in advance, but it's still much faster
>than interpreted code.
>
>I'd expect one of the worst bottlenecks in Python is the multiple
>levels of dictionary lookup needed when you say a.x().
> [snip]

  Have you profiler data in support of this?  Suggesting optimizations, especially ones which require semantic changes to existing behavior, without actually knowing that they'll speed things up, or even that they are targetted at bottleneck code, is kind of a waste of time.

  Jp



More information about the Python-list mailing list