3 ms·
Nope. FORTRAN code is still very performant in this area with modern compilers, which is why it is still used. It's an example of Chesterton's Fence.
by jcsager 21d ago
Nope. FORTRAN code is still very performant in this area with modern compilers, which is why it is still used.
It's an example of Chesterton's Fence.
- CamperBob2 21d agoWhat's a concrete example of how FORTRAN compilers are inherently better at this type of task than modern C/C++ or Rust compilers?
- mzs 21d agoIt's not really about the compilers ever since C99's restrict (you can almost always equal fortran performance now), it's how much more you have to think and validate about how to write the C/C++ plus the compiler and linker options to use. Also with C99 you get many of the convenient aspects of fortran (<tgmath.h> and vardim array function args) and with C11 you also get <complex.h> now. But you are still missing fortran's ** operator and it's more than just syntactic sugar, it accepts more types.