26 points · by pjmlp · 3y ago · 78 comments
As for the question in the title, yes Fortran will be around in 15 years. Perhaps the share of Fortran in new developments is shrinking, but more due to Python, Julia, MATLAB and such, and not C++.
[0]: https://permalink.lanl.gov/object/tr?what=info:lanl-repo/lar...
[1]: you can hire me if needed ;-)
Between Cuda Fortran, OpenAcc, and OpenMP, this argument is more than weak.
"While Fortran will probably run acceptably on future CPU technologies, it will likely perform poorly with GPUs because of the lack of robust Fortran compilers, the report said, noting that the ecosystem of tools is “significantly lacking in Fortran."
Or is NVIDIA's Fortran version not robust?
Fortran is better at arrays than C++ and most other languages, which makes it better on GPUs too.
DEC was bought by Intel which meant that license fees were required to keep the tool alive.
However, some intrepid nerds contributed a patch to GCC and, suddenly, life went on without Intel. I want to say that this was around GCC 6.x or so.
Which is how to cut at least that portion of the costs for the balance of these classic tools.
No, it wasn't.
Compaq (an x86 shop which did little in the OS space) bought DEC. It kept making the non-x86 DEC hardware and software.
Then HP bought Compaq. HP had its own processor & OS families, and had persuaded Intel to work with it on the successor to HP's PA-RISC architecture: Itanium.
Part of that deal is that HP passed over some DEC IP it had acquired to Intel. Effectively this killed off a significant rival to Intel, and in theory, opened a path to market for Itanium.
So Intel got DEC's Alpha, the first 64-bit RISC and the fastest RISC on the market. It killed it. It also sold off its Arm division to Marvell.
The other big thing HP got was DEC's minicomputer OS, VMS. It killed it, as I wrote at the time: https://www.theregister.com/2013/06/10/openvms_death_notice/
But it changed its mind and spun it off instead.
Their compiler business was bought by Intel, DEC itself was bought by Compaq.
> The Lindy effect (also known as Lindy's Law[1]) is a theorized phenomenon by which the future life expectancy of some non-perishable things, like a technology or an idea, is proportional to their current age. Thus, the Lindy effect proposes the longer a period something has survived to exist or be used in the present, the longer its remaining life expectancy.
Please forgive my ignorance. I've never written any Fortran. I understand how and where it's used in modern computing though. I also understand why it's faster than C in some cases.
Performance. Fortran is much still faster than Julia, MATLAB etc.
It's also much easier to write fast Fortran compared to fast C. While C code written by an HPC expert will almost always be as fast as Fortran written by an expert, C written by "mediocre" C programmer who is a domain expert solving a problem in the most obvious way, will basically always be slower than Fortran code written be an equally "mediocre" Fortran programmer.
Fortran actually makes it fairly hard to write fast code since it is missing some features. for example, I don't believe there is any way to write a fortran program using Bfloat16 numbers. you also don't have great ability to write programs with a mix of strict ieee semantics and fastmath semantics. you have to choose 1 as a compile time flag.
In my mind, fortran will always be hard to replace especially if there is sizeable legacy code. A lot of people don't realize it, but fortran is kind of like sql. It's old, backed by a lot of theory, and delivered on it's promises for years. That makes challengers job really really hard.
I'm not sure where you are getting the idea of frequent breaking releases. the language has been pretty stable since 1.0 in 2018 (as in almost all code that worked on 1.0 still works now). (there are some very minor breaking changes in minor releases, but Julia breaks a lot less things per release than python or C).
I've seen minor releases in Julia break essential packages. Not like it was one time either. So where did I get the idea, personal hands on experience.
Again it's great if you have a script and want to run it, anything beyond that, in my experience, results in a lot of turmoil and erosion. Almost wonder if it's a flaw in the language itself or, the maintenance model of the packages. Oh well not my problem
See the HOPL history for the background of MATLAB: https://dl.acm.org/doi/10.1145/3386331
EDIT: fixed paper link
These are incomparable since Fortran is a standardized programming language with multiple implementations, whereas the other two you mentioned are products having single implementations.
I personally prefer using Julia, but I think people are pretty ignorant about the modern state of Fortran when they act like it's some unusable crappy relic with no point in using it.
What we might see is Fortran being generated from higher level specifications, particularly distributed parallel computations using task specific processors.
Really? What have they got that GCC can't munch?
Everyone I met who writes fortran (mainly for quantum chemistry, solid state physics programs) uses multiple compilers to ensure the highest quality code.
Unless you happen to have a AMD processor, then the Intel compiler will go out of its way to cripple performance. See https://news.ycombinator.com/item?id=30935064
In one case, the compiler would use masking vector instructions on Intel but not on AMD. It was also the correct decision: Those instructions have very low latency on Intel, but are many times slower on AMD. On each platform, it produced the best bytecode that it could.