News for hackers. Stuff that matters.
Re:Why physicists still use Fortran (2015) by ChuckMcM on Sunday October 15, 2017 @01:29PM (#15478071)
Now you need to do a follow on study to see how much science the 'rival' group does with a more modern codebase than your 'legacy' group does. Would you know if there are enough examples of two groups who have diverged like this to get meaningful (as in statistically significant) results on the cost benefit of porting / not porting?
Re:Why physicists still use Fortran (2015) by sampo on Sunday October 15, 2017 @02:06PM (#15478259)
> Now you need to do a follow on study to see how much science the 'rival' group does with a more modern codebase than your 'legacy' group does.

I would guess that a C++ codebase written by PhD students, not by seasoned C++ experts, is more complicated and much slower to debug, than a corresponding Fortran codebase.

Re:Why physicists still use Fortran (2015) by Turing_Machine on Sunday October 15, 2017 @08:07PM (#15480065)
Can verify that if you give numerical methods people C you may get wonders like (e.g.) main() functions that are 30 pages long.

No, I'm not kidding.

I shudder to think what they'd have done with C++. :-)

Re:Why physicists still use Fortran (2015) by hzhou321 on Monday October 16, 2017 @01:03AM (#15480948)
Don't be so assumptive that a 30 page long main function is bad code. The code still can be well organized and readable. Function is not the only method to organize code. Knuth's literate programming for example is invented to better organize code.

Function has its side effects. It's use as only once case is really questionable, justified by lack of other means.

Re:Why physicists still use Fortran (2015) by ska on Sunday October 15, 2017 @07:50PM (#15480013)
They are both typically pretty bad - but there are many more ways to shoot yourself in the foot in c++
Re:Why physicists still use Fortran (2015) by tragomaskhalos on Monday October 16, 2017 @10:59AM (#15483638)
The very fact that the article itself, with a completely straight face, has all that malloc nonsense in there as "the way you have to do it in C++" is very telling of how easy it is to get the wrong end of the stick with C++ unless you are au fait with the history of the language and its evolution to better more modern idioms
Re:Why physicists still use Fortran (2015) by adrianN on Sunday October 15, 2017 @02:23PM (#15478370)
Well, that Fortran codebase probably also was written in large parts by PhD students, not export Fortran programmers.
Re:Why physicists still use Fortran (2015) by sampo on Sunday October 15, 2017 @03:10PM (#15478694)
Fortran is a much simpler and safer language than C++. And faster to learn. Fortran is even somewhat simpler than C or Java, whereas C++ is probably the most complicated language in the known universe.

So especially in the hands of non-experts, Fortran should produce less bugs.

Re:Why physicists still use Fortran (2015) by HelloNurse on Sunday October 15, 2017 @04:33PM (#15479152)
C++ is complex. Perl is complicated.
Re:Why physicists still use Fortran (2015) by aswanson on Sunday October 15, 2017 @03:25PM (#15478786)
Funny as hell. Perl, though.
Re:Why physicists still use Fortran (2015) by sitkack on Sunday October 15, 2017 @02:41PM (#15478490)
C++ is a more efficient language to write difficult to track down bugs in than Fortran.
Re:Why physicists still use Fortran (2015) by privong on Sunday October 15, 2017 @06:12PM (#15479627)
> Now you need to do a follow on study to see how much science the 'rival' group does with a more modern codebase than your 'legacy' group does. Would you know if there are enough examples of two groups who have diverged like this to get meaningful (as in statistically significant) results on the cost benefit of porting / not porting?

I don't know of any studies like this. But there are two aspects to consider. One is what you've pointed out, which is the long-term scientific gains and the productivity of the research group as an entity. But the other aspect is whether those students who rewrote the code into C++ were more or less successful than the students who weren't rewriting code.

Obviously, how you judge success in the latter will be tricky, since there may be differences in the interest of students who rewrote the code and their desired outcome after the PhD (e.g., stay in academia versus go into industry).

Re:Why physicists still use Fortran (2015) by ChuckMcM on Monday October 16, 2017 @02:41PM (#15485611)
That is a good point, if the majority of the code is living in Fortran then there is definitely some value in understanding large legacy Fortran code bases.
Re:Why physicists still use Fortran (2015) by privong on Monday October 16, 2017 @02:43PM (#15485633)
This is true. Though I realized I wasn't specific enough in what I meant. I was more thinking about the limited available time to students and that rewriting code might mean the students do less science and so are less able to obtain a good postdoctoral position (or whatever position typically follows a PhD in the particular field).
Re:Why physicists still use Fortran (2015) by quantum_magpie on Monday October 16, 2017 @11:15PM (#15488395)
True, but the students that re-implement these codebases also might have a much greater understanding of the underlying techniques, theory, and the interaction between them; compared to others who produce more results, but use these codebases as black boxes. I think both pathways lead to equally good academic careers, they just branch out into separate paths.
Re:Why physicists still use Fortran (2015) by yjftsjthsd-h on Sunday October 15, 2017 @02:14PM (#15478313)
I would also really want to see a comparison of bugs and error rate, although that's probably a nightmare to try and work out.