8 ms·
OCaml has excellent compile-to-JavaScript support. Facebook use this to compile their Hack type-checker for an in-browser IDE. I imagine they do something simil
by lpw25 12y ago
OCaml has excellent compile-to-JavaScript support. Facebook use this to compile their Hack type-checker for an in-browser IDE. I imagine they do something similar for Flow.
- avsm 12y agoThey do indeed use js_of_ocaml in the Flow test suite to compile the full Flow parser to JavaScript and then test that. See the related discussion on packaging it in the OPAM pull request: https://github.com/ocaml/opam-repository/pull/3083 https://github.com/ocaml/opam-repository/pull/3083