by xioxox · 6y ago · 0 comments
I won't recommend Fortran unless the code has to be written by scientists who know nothing else. It has horrible string support, no data structure or algorithm library (like STL), no templates, few non-numeric libraries (e.g. http, json...) and (as above) buggy compilers. Furthermore, C++ gives you much more control over numerical speed when you need it.
Our code was entirely FORTRAN 66 and 77, so that may explain why it worked so well for us.
With gfortran I run into issues primarily when using the "newer" features of Fortran 2003/2018.
(like the new jersey unemployment system in cobol)
:)
Though the beauty of fortran to me is really how easy it is to learn and make working code. That said - it's not elegant at all, probably a feature.
That’s more than what C gives you out of the box ;)
Though, this is kind of ridiculous to even talk about, since the CPU and compiler itself are responsible for the greatest sins of hiding something unimaginably complex behind a simple interface.
Ah, the joys of the 6502 and the Commodore 64!