3 ms·
There's also a well supported ML for the web from Facebook: https://reasonml.github.io/ https://reasonml.github.io/ With React: https://reasonml.github.io/re
by melling 7y ago
There's also a well supported ML for the web from Facebook:
https://reasonml.github.io/ https://reasonml.github.io/
With React:
https://reasonml.github.io/reason-react/ https://reasonml.github.io/reason-react/
- elcapitan 7y agoFacebook's part is actually just the syntax of ReasonML, the actual ML-Javascript-compiler is Bucklescript from Bloomberg.
- chenglou 7y agoBuckleScript’s author works for Facebook for years now.
- kccqzy 7y agoReason is just a syntax frontend. You should be linking to BuckleScript instead.
- lymitshn 7y agoThere is also F# Fable[0] compiler that compiles F# to JS. I would say its more ML like, syntax wise (excluding bucklescript ofc). [0] https://fable.io/ https://fable.io/
- kqr 7y agoI was going to point out the same; if you can get your ML fix from F#, definitely look Fable up -- it's nothing but surprised me with how well polished it is.
- Athas 7y agoNone of these are Standard ML! There are people who prefer SML for various reasons. 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.md 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.
- eatonphil 7y agoSOSML [0] came out recently, written in TypeScript and sporting an online interpreter. Then there's this prominent SML-er's JavaScript backend for Moscow ML [1]. And Andreas Rossberg's HaMLet [2] also has a JavaScript backend. [0] https://github.com/SOSML/SOSML https://github.com/SOSML/SOSML [1] https://github.com/kfl/mosml-js https://github.com/kfl/mosml-js [2] https://people.mpi-sws.org/~rossberg/hamlet/ https://people.mpi-sws.org/~rossberg/hamlet/