4 ms·
It seems like there's a small resurgence. You'd use fortan over those other languages for scientific computing. It's built for number crunching. As so it has so
by trianglesphere 5y ago
It seems like there's a small resurgence. You'd use fortan over those other languages for scientific computing. It's built for number crunching. As so it has some language features that help, has been optimized for it (see the n-body problem benchmark), and a lot of the number curnching libraries are written in it.
One example of a project that I've used (but didn't work on) is GEMINI which is a newish prokect written in modern fortan. https://github.com/gemini3d/gemini3d https://github.com/gemini3d/gemini3d
- trianglesphere 5y agohuh, ifort is slower than I remember compared other langs/impls: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/fortran.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- certik 5y agoI don't know what exactly is going on, but last time I looked into it, it seemed the main difference between the codes was how quickly you can do 1/sqrt(x). Ultimately, I would like to see more numerical benchmarks and also compare more versions in a given language. We started a repository for it: https://github.com/fortran-lang/benchmarks/ https://github.com/fortran-lang/benchmarks/ But didn't have time to work on it yet. See the issues, e.g., at: https://github.com/fortran-lang/benchmarks/issues/2 https://github.com/fortran-lang/benchmarks/issues/2 For some discussion how to best do that.
- igouy 5y ago> sqrt Used often enough in n-body to make a difference, not used often enough in spectral-norm? not used in fannkuch-redux …