KBD

Keith Devens .com

Sunday, September 7, 2008 Flag waving
Less isn't more; just enough is more. – Milton Glaser
← It was only a matter of timeThe Sum of All Fears →

Daily link icon Friday, May 31, 2002

Interview with Paul F. Dubois

Via the Daily Python-URL (they should really have permalinks), Interview of Paul F. Dubois of Numeric Python Fame.

Plain Python is perfectly suitable for all ordinary computations, including floating-point calculations. The place where it has a problem is when you have an array calculation, the sort where you would have a big do-loop in Fortran or a for-loop in C. Then the fact that Python is interpreted shows up because such calculations are not as fast as in a compiled language.

Numerical Python is an add-on module that lets you create and manipulate such arrays. Since the array is now an object, processing such as addition, subtraction, or taking a square root can now be done in Numeric's modules, which are written in C. So the loop is still there, but now it is in C and dealing with raw numbers, not in Python and dealing with objects. You get back to within 10% or so of C, and your expression is actually better, being like modern Fortran's array statements, e.g. z = sqrt(x**2 + y**2), rather than a loop with explicit indexing.

The most important fact about Python and Numeric for science is that the language is simple and easy to learn, and resembles other simple languages such as IDL, Matlab, and Fortran, that scientists have found useful and are familiar with. Similar steering projects where the interpreted language was more "computer sciency", such as Scheme or C, have not proven as attractive. The scientists already have a full-time career and so ease of use and a gentle learning curve are crucial. I think Python is now the standard choice for steering scientific programs.

← It was only a matter of timeThe Sum of All Fears →

Comments XML gif


Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

September 2008
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
282930 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 6 posts

Recent comments XML

new⇒I hate Norton Antivirus

Long long live AVG I love you!...

kevin sands: Sep 6, 7:31pm

I hate ASP.NET

CF, why pick that piece of trash?​Cold Confusion. Is it finally​really a OO...

ColdConfusion: Sep 5, 8:36pm

Maps of Iraq

This is for Linda, I will be​visiting that site some time in the​near futur...

Bob: Sep 5, 1:20pm

Girls, please don't get breast implants

Well alright I just read my above​comment and I wanted to add​this...I shou...

76.66.140.8: Sep 4, 7:31pm

Spider solitaire

I don't think the question was​necessarily if there are unbeatable​games.  ...

Jared: Sep 4, 12:44pm

Convert Pantone Colors to RGB and Hex - Color Conversion Chart

The colors on those website don't​seem to relate to the pantone data​we hav...

blah: Sep 3, 10:12am

Generated in about 0.385s.

(Used 8 db queries)

mobile phone