|
|
Subscribe / Log in / New account

The unexpected effectiveness of Python in science

The unexpected effectiveness of Python in science

Posted Jun 2, 2017 5:24 UTC (Fri) by Matt_G (subscriber, #112824)
In reply to: The unexpected effectiveness of Python in science by fenncruz
Parent article: The unexpected effectiveness of Python in science

In my Day Job (Engineering) Fortran is like this. There is so much inherited code from the 80's written in in Fortran floating around my org, I would not be surprised if it was still being used in another 20 years. This is all fluid dynamics based stuff.

The main reason I think is the somewhat famous "Numerical Recipes" textbook (https://en.wikipedia.org/wiki/Numerical_Recipes) - kind of like the K&R of scientific computing. Almost all the senior engineers here swear by. It was my first reference text when I first started - maybe someone needs to write a "Numerical recipes in Python" book.


to post comments

The unexpected effectiveness of Python in science

Posted Jun 2, 2017 16:46 UTC (Fri) by smoogen (subscriber, #97) [Link] (1 responses)

In the 1980's we had code that was from the 1950's and 1960's that we were converting from Fortran IV to Fortran77. [Most of those conversions was 'fix it so it compiles and gives back the same data on the test run'. So some of that Fortran you see is actually much much older.

A lot of this old-code has to do with amount of time non-coders have to deal with code, but part of it is that you may need to run years old data plus new data and need it to have the same answers as before. Or that the satellite you are using was launched in the 80's and is still producing data 40 years later. You could get some people in to recode stuff with a 40% chance of it all falling apart from budget cuts.. or you could use the old hardware and use the money to buy some lab equipment that got cut from a different budget.

This is going to be one of the reasons that Python2.7 is going to have a longer shelf life than people want or expect. A lot of scientists love 2.7 because it is not going to change. Every new RHL/Debian/etc release, we would have to go and deal with support tickets at the Lab due to changes in python not always being as backwards compatible as thought. [My understanding is that there are systems at CERN and similar labs running RHL-7.3 15 years later because it has the python that the experiments were written against.. it will still be running them for N more years until the experiment completes.] Most of the scientists running long lived experiments are writing the stuff in 2.7 because of the fact for them it is no longer moving. If there is ever a 3.N that stops they will move to that also (while still running 2.7 and 1.5 systems.)

At this point I expect an Numerical Recipes book in Python would be written against Python 2.7

The unexpected effectiveness of Python in science

Posted Jun 8, 2017 22:51 UTC (Thu) by geek (guest, #45074) [Link]

and wrt the scientists following free software principles, I remember buying a copy of Pascal Programs for Scientists and Engineers (still on Amazon) with source code in 1981, so code sharing goes 'way back.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds