4 ms·
Fortran 90 is still the language computational stuff is made in today. I'm not convinced, however, that that choice is really for performance reasons over cultu
by noobermin 12y ago
Fortran 90 is still the language computational stuff is made in today. I'm not convinced, however, that that choice is really for performance reasons over cultural reasons.
Still, Fortran 90 is hell of a lot better than Fortran 77, which unfortunately is the language of choice for some of the people I'm being asked to work with.
- panamafrank 12y agoinertia would have something to do with it, like there's an 'anal.sh' file which even made it into the documentation. I can't seem to access the SVN repo, I wonder how/if they unit tested it all.
- 123456anon 12y agoAs somebody that used to work at NOAA (not at NCEP, but worked with a lot of people at NCEP). No, there is no unit testing! anal.sh is short for analysis.
- upmygreen 12y agoI'm a part of this community. I assure you speed in number crunching is a huge reason this is written in F90.
- tankenmate 12y agoIndeed, automatic (and largely implicit) use of SIMD and OpenMP by the compiler is very very good with F90 compared to almost all other widely used languages.
- deleted 12y ago[deleted]
- noobermin 12y agoI'm curious (really curious, although this might sound like a troll), have you ever tried a benchmark test on this? Things like this [0] come up every so often, and make me wonder about the efficiency advantage for coding in Fortran. This is also relevant and insightful [1]. The top answer talks about Fortran's strict aliasing semantics. [0] http://unriskinsight.blogspot.com/2014/06/fast-functional-goats-lions-and-wolves.html http://unriskinsight.blogspot.com/2014/06/fast-functional-go... [1] http://stackoverflow.com/questions/146159/is-fortran-faster-than-c http://stackoverflow.com/questions/146159/is-fortran-faster-...
- greglindahl 12y ago[0] is a classic example of comparing programming languages attacking a problem with different algorithms. I see that the author insults Fortran a couple of times, and I don't seen any indication that they tried to implement the better algorithm in Fortran. Did I miss something?
- Loic 12y agoIf you look at Julia[0] they have quite a lot of performance benchmarks and you will see that Fortran is always at or near the top. What is really important, from a numerical code point of view, is that with Fortran it is easy to be at the top by operating on matrices and vectors etc. You do not have to torture your mind and think too much to optimize your code, "remove the IF in the loops" is often just what you need. I am writing code in Fortran 77/90 every day, I really really enjoy it. Calling your Fortran code from Python is also so easy that you can really have clear cut between data management in Python and computational work in Fortran. [0]: http://julialang.org/ http://julialang.org/