5 ms·
I suppose the #1 reason to pick Fortran over C is knowing Fortran and not C. Then doing it because you can. Maybe you have a math library in there worth puttin
by LanceH 6y ago
I suppose the #1 reason to pick Fortran over C is knowing Fortran and not C. Then doing it because you can.
Maybe you have a math library in there worth putting into wasm.
- pjmlp 6y agoSecond one is performance for numerical computing, followed by modules, generics, OOP and almost forgot that one, better type safety.
- MayeulC 6y agoWhile reading the blog article, I kept wondering what the performance was like compared to bare metal? I guess the performance hit is similar to the one C and Rust take? In the order of 10x slower IIRC? How does a Fortran-written (better optimized) library compare to a C-written one? Is the WASM overhead enough to nullify the performance difference? Are the original optimizations well translated to WASM?
- C1sc0cat 6y agoFortran is probably easier to learn than C and it also has some cool cuda and parallel extensions.
- TheRealKing 6y agoFortran is much easier to learn (compared to C/C++), much, MUCH easier, including its Coarray one-sided communication parallel programming paradigm.
- Koshkin 6y ago#2: Due to the differences in language design, Fortran admits better generated machine code optimization than C does.
- ineedasername 6y ago*>math library Ah, that's right. There's a ton of scientific software in FORTRAN.
- TheRealKing 6y agoYour supposition is likely inaccurate.