Second one is performance for numerical computing, followed by modules, generics, OOP and almost forgot that one, better type safety.
While 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?
#2: Due to the differences in language design, Fortran admits better generated machine code optimization than C does.
Fortran is probably easier to learn than C and it also has some cool cuda and parallel extensions.
Re:Fortran Compiled to WebAssembly
by TheRealKing on Wednesday September 30, 2020 @01:23PM
(#24641173)
Fortran is much easier to learn (compared to C/C++), much, MUCH easier, including its Coarray one-sided communication parallel programming paradigm.
Re:Fortran Compiled to WebAssembly
by ineedasername on Thursday October 01, 2020 @08:23AM
(#24650065)
*>math library
Ah, that's right. There's a ton of scientific software in FORTRAN.
Re:Fortran Compiled to WebAssembly
by TheRealKing on Friday October 02, 2020 @12:54AM
(#24659011)
Your supposition is likely inaccurate.
Maybe you have a math library in there worth putting into wasm.