The computational load of these simulations is, in modern terms, not large, so Emscripten-compiled simulations would be plenty fast enough, and deployment of web pages in a computer-lab environment (or for people working from their dorms!) is way easier than the alternatives.
So there are real, non-trivial applications. You wouldn't want to be running ABINIT or whatever in your web browser, but GROMACS on some small system? Not unreasonable.
a) writing yourself an engine and that's actual work
b) that engine not being one which is used in real research
So "it depends" – for introductory teaching yes, for training researchers less so.
In a past job we had some ada code in our codebase that was just awful looking. It was machine translated from fortran to ada. From what I could tell, it was just a few files that were translated and then fixed up and checked in before they gave up on that conversion project.
we nicknamed such code "ada-tran"
Thus the I feel the new translated code should be called "Forscript"
> we nicknamed such code "ada-tran"
If Fortran -> Ada is ada-tran, then wouldn't Fortran -> Javascript be Javascran? :)
So the backstory is that Nvidia bought PGI, a company which produced a C/C++/Fortran compiler suite which was moderately commonly used in HPC. Then they took the Fortran frontend from the PGI suite and bolted it to LLVM and open sourced it as flang.
Really, the 2nd coming of VRML.
Another example, I know the guy who maintains NIST's fluid properties solver (back in the day he worked at a subcontractor for NASA characterizing superfluids in fuel tanks). It's ancient Fortran compiled to a windows .dll and wrapped in VB in an excel file. It's super battle tested (being used for nearly 30 years), and it'd be awesome to be exposed in the browser.
Or rather, before flang + emscripten/wasm/whatever, there was no reasonable way to run Fortran in a browser; now there is. Application developers can then choose whatever is most important for their application.
Disclaimer: my web dev experience predates the "modern web" with SPA's, fast javascript runtimes, html5 etc.
Core numpy depends on BLAS, for which both Fortran and non-Fortran implementations are available.
% ldd /usr/lib/python3/dist-packages/numpy/linalg/lapack_lite.cpython-35m-x86_64-linux-gnu.so|grep -E 'lapack|fortran'
liblapack.so.3 => /usr/lib/liblapack.so.3 (0x00007fb619ce7000)
libgfortran.so.3 => /usr/lib/x86_64-linux-gnu/libgfortran.so.3 (0x00007f5ae0911000)Seems like most numeric/math code have some Fortran libraries underneath.
It'd be handy to have a route to just compile them to JS rather than having to write from scratch
http://journals.plos.org/plosone/article?id=10.1371/journal....
For example, it would be incredibly useful if you can run various US EPA's dispersion models right in your browser.