3 ms·
For those interested in compiling OCaml to JavaScript, check out js_of_ocaml[0]. It's been around since 2011 or so, produces source maps, and has a nice FFI. It
by seliopou 11y ago
For those interested in compiling OCaml to JavaScript, check out js_of_ocaml[0]. It's been around since 2011 or so, produces source maps, and has a nice FFI. It also works over the output of the bytecode compiler so there's no need to run a fork of the compiler. In my experience it's quite nice to work with.
[0]: http://ocsigen.org/js_of_ocaml/ http://ocsigen.org/js_of_ocaml/
- cwyers 11y agoThis is apparently a fork of js_of_ocaml. I am not sure that I understand what Bloomberg has added/changed to make it this.
- krat0sprakhar 11y agoIt's not a fork - it only uses a few parts of the JS pretty printer and runtime support. https://github.com/bloomberg/bucklescript#licensing https://github.com/bloomberg/bucklescript#licensing