[Tutor] BLAS Implementation on Python

Knacktus knacktus at googlemail.com
Tue Mar 8 21:19:47 CET 2011


Am 08.03.2011 20:00, schrieb Alan Gauld:
>
> "Stefan Behnel" <stefan_ml at behnel.de> wrote
>>>> He doesn't have to write it, as it is very obvious, that no Python code
>>>> on earth (even written by Guido himself ;-)) stands a chance
>>>> compared to
>>>> Fortran or C. Look at this:
>>>
>>> There is one big proviso. The C or Fortran needs to be well written
>>
>> It's seriously hard to write computational Python code that is faster
>> than C code, though.
>
> Agreed, it was the assertion that "no Python code on earth...stands
> a chance..." that I was objecting to.
>
> There are many areas where the C code would have to be pathologically
> bad to be beaten by Python, but there are plenty of places where only
> slightly inefficient C code can be competitive relatie to Python.

Maybe there're those areas, but the top posters question is about 
reimplementing BLAS, which is a highly optimized package for linear 
algebra. And in this area no pure Python code on earth on any currently 
available Python implementation stands a chance performance wise to one 
of the C or Fortran implementations.

>
> Alan G.
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list