WebML: A Standard ML Compiler for the Web
github.com
github.com
With React:
Somewhat unexpectedly, there is in fact already a very good SML-to-browser solution, namely the unfortunately named SMLtoJs: https://github.com/melsman/mlkit/blob/master/README_SMLTOJS....
It's from 2011 and so predates most other Javascript-targeting languages. It's unfortunate it never got any traction.
[0] https://github.com/SOSML/SOSML
I don't know what the future of communicating web code with snippets would be like if everyone chose their own language. I am not a web developer, but is this happening with TypeScript now? Is it a problem?
EDIT: I am pro-WebAssembly, but I am starting to think the benefits are actually about taking the philosophy of the web outside the browser and leave DOM-based pages to html/css/js