4 ms·
Honest question, Is reason really targeting wasm right now? Do you know a resource describing this? I cannot find anything about this.
by d215 9y ago
Honest question, Is reason really targeting wasm right now? Do you know a resource describing this? I cannot find anything about this.
- bad_user 9y agoAFAIK Reason is a frontend for OCaml and can target whatever OCaml can target. Note that for targeting JavaScript they are using BuckleScript, an OCaml backend that's not built by Facebook.
- rlp 9y agoI couldn't find anything on this either. The assembly emitters in their repo don't suggest a WASM backend: https://github.com/ocaml/ocaml/tree/trunk/asmcomp https://github.com/ocaml/ocaml/tree/trunk/asmcomp
- k__ 9y agohttps://github.com/sebmarkbage/ocamlrun-wasm https://github.com/sebmarkbage/ocamlrun-wasm reason == ocaml
- stewbrew 9y agoYes, but a byte code interpreter ported to wasm via emscripten != a compiler with a WASM backend.
- k__ 9y agoIsn't the stuff that comes out of the OCaml compiler byte code? As far as I can tell, OCaml has a GC and WASM (at the moment) doesn't so this seems like the only viable solution to me.
- colanderman 9y agoOCaml also has a native x86 backend, which produces quite efficient code.