Re: Typed Python?

From: Fernando Perez (fperez528_at_yahoo.com)
Date: 07/05/04


Date: Sun, 04 Jul 2004 17:59:41 -0600

Nicolas Fleury wrote:

> Fernando Perez wrote:
>> I am one who would really like _optional_ static typing information to be
>> available in python, but for different reasons than the usually requested
>> here:
>> performance. My field is scientific computing, and when you are inside a
>> simple for loop, manipulating arrays of homogeneous data, the overhead of
>> python's dynamicism is a killer. Obviously what ends up happening is that we
>
> For performance, maybe Psyco is what you need, without the need fo
> static typing, but rather different compilation of code for different
> types, like with C++ templates.

Psyco sounds appealing, but it's an x86-only solution. That won't be of much
help on a Cray or an Itanum cluster...

Cheers,

f



Relevant Pages

  • Re: Typed Python?
    ... but for different reasons than the usually ... My field is scientific computing, and when you are inside a ... > able to simply tell python the types of the variables and have it not do ... > its dynamic runtime checks. ...
    (comp.lang.python)
  • Re: Typed Python?
    ... Fernando Perez wrote: ... > available in python, but for different reasons than the usually requested here: ... My field is scientific computing, and when you are inside a ...
    (comp.lang.python)
  • Ann: Revival of the BytecodeHacks
    ... In a single day-and-night session, I hacked against bytecodehacks, ... to upgrade it from Python 1.5.2 to Python 2.3. ... this great package was written by Michael Hudson in early ... I just built a minimum Psyco support into it, ...
    (comp.lang.python)
  • Re: Monte Carlo Method and pi
    ... > puts the both the numarray and psyco solutions within about 50% of the ... with one * use C's rand(). ... note how well Python 2.4 performs compared with 2.3.4. ... from math import sqrt ...
    (comp.lang.python)
  • Need Psyco profiling help...
    ... Hey...as for what I'm doing with Python, look at my post "Strange Hotshot ... anyway...I'm using Psyco, and it's definitely at least twice as fast with it ... and such as a result of hogging the CPU so much that there's latency. ...
    (comp.lang.python)