by eesmith · 1w ago · 0 comments
The whole "I rewrote X in Y" is mostly about career building, gathering Y portfolio, to jump ecosystems.
Now it doesn't matter any longer, it is one natural language paragraph away, what the output language should be.
With Fortran it's 1) and 2).
As I understand it, Fortran outperforms other languages for problems like matrix math, especially if you care about issues like portability and memory use.
Not only is Fortran designed for those problems, but the there's been a lot of thought, time, effort, and money used to make the generated code go fast.
You can eventually obtain the same performance in C++ like in Fortran, by defining your custom array types, with a complete set of operators and functions for them, possibly using inline assembly or SIMD intrinsics for implementing trickier operations. The same may be true for other programming languages that are extensible enough.
But just replacing Fortran with another currently popular programming language is not sufficient, without some extensive support libraries.