News for hackers. Stuff that matters.
Re:Fortran Compiled to WebAssembly by LanceH on Wednesday September 30, 2020 @12:22AM (#24635672)
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.

Re:Fortran Compiled to WebAssembly by pjmlp on Wednesday September 30, 2020 @04:34AM (#24636713)
Second one is performance for numerical computing, followed by modules, generics, OOP and almost forgot that one, better type safety.
Re:Fortran Compiled to WebAssembly by MayeulC on Wednesday September 30, 2020 @11:42AM (#24639945)
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?

Re:Fortran Compiled to WebAssembly by Koshkin on Wednesday September 30, 2020 @12:48PM (#24640765)
#2: Due to the differences in language design, Fortran admits better generated machine code optimization than C does.
Re:Fortran Compiled to WebAssembly by C1sc0cat on Wednesday September 30, 2020 @04:56AM (#24636802)
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.