Coding style article with interesting section on white space

beliavsky at beliavsky at
Sun Jan 30 10:51:58 EST 2005

Alex Martelli wrote:


> > For scientific computation, consider the case of Numeric
> > and Numarray. I don't think Numeric binaries are available for
> > 2.4,
> <> ?  Just
> googled and visited the first hit -- I don't currently use Windows so
> don't know if it's still there, works well, etc.

I should have Googled. I will investigate that link. At SourceForge, I see a
Numarray but not a Numeric Windows binary for Python 2.4. The latest
Numeric Windows binary there is for Python 2.3.

> > The recent "Pystone Benchmark" message says that Python is only 75%
> > fast on Linux as on Windows. Fortran programs do not suffer this
> > performance hit and are in this respect more portable. In theory,
> You're saying that using a different and better compiler cannot speed
> the execution of your Fortran program by 25% when you move it from
> platform to another...?!  This seems totally absurd to me, and yet I
> no other way to interpret this assertion about "Fortran programs not
> suffering" -- you're looking at it as a performance _hit_ but of
> it might just as well be construed as a performance _boost_ depending
> the direction you're moving your programs.

I had in mind the Polyhedron Fortran 90 benchmarks for Windows and
Linux on Intel x86 at and . The speed
differences of Absoft, Intel, and Lahey between Linux and Windows for
individual programs, not to mention the average differential across all
programs, is much less than 25%. The differences on a single OS between
compilers can be much larger, but that has less bearing on portability
across OS's.

Thanks for your earlier informative comments on languages. Sparring
with Alex Martelli is like boxing Mike Tyson, except that one
experiences brain enhancement rather than brain damage :).

More information about the Python-list mailing list