by neurostimulant · 9y ago · 0 comments
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.
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.
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