27 ms·
Definitely still scientific computing ("formula translator" after all). In particular it's still frequently used in the supercomputing/HPC space for large para
by cbkeller 8y ago
Definitely still scientific computing ("formula translator" after all). In particular it's still frequently used in the supercomputing/HPC space for large parallel numerical simulation codes.
The issue with optimizability in C is mostly solved by the C99 `restrict` keyword, but Fortran compilers are still very good for numerical work.
- vmchale 8y ago> The issue with optimizability in C is mostly solved by the C99 `restrict` keyword I've seen people claim this, but I've yet to see optimizing compilers for C actually match those for Fortran.
- TomVDB 8y agoIn practical terms: what kind of performance difference would one see between optimized C(++) and optimized Fortran when running exactly the same algorithm?
- cbkeller 8y agoAccording to the Julia benchmarks (and I assume Julia folks are relatively unbiased re: C vs Fortran), it depends on the algorithm [1], but less than an order of magnitude in either direction. I'm kinda surprised Fortran doesn't do better there actually -- but at this level it probably also depends on compiler and architecture. [1] https://julialang.org/benchmarks/ https://julialang.org/benchmarks/
- igouy 8y agohttps://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/fortran.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...