Re:Rust: Enable WebAssembly backend by default
by justincormack on Sunday November 26, 2017 @11:57AM
(#15781736)
I think another contender here would be OCaml/Reason, which has both JavaScript and WebAsm targeting, is used in systems space (eg Mirage). Its a bit different in technical choices (functional, GC, for example). Facebook is using Reason for Messenger for example, on mobile.
[ Parent
| on HN ]
Re:Rust: Enable WebAssembly backend by default
by d215 on Sunday November 26, 2017 @12:16PM
(#15781847)
Honest question, Is reason really targeting wasm right now? Do you know a resource describing this? I cannot find anything about this.
Re:Rust: Enable WebAssembly backend by default
by k__ on Sunday November 26, 2017 @05:58PM
(#15783578)
https://github.com/sebmarkbage/ocamlrun-wasm
reason == ocaml
Re:Rust: Enable WebAssembly backend by default
by stewbrew on Monday November 27, 2017 @12:47AM
(#15785139)
Yes, but a byte code interpreter ported to wasm via emscripten != a compiler with a WASM backend.
Re:Rust: Enable WebAssembly backend by default
by k__ on Monday November 27, 2017 @07:34AM
(#15786822)
Isn'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.
Re:Rust: Enable WebAssembly backend by default
by colanderman on Monday November 27, 2017 @11:29AM
(#15788508)
OCaml also has a native x86 backend, which produces quite efficient code.
Re:Rust: Enable WebAssembly backend by default
by rlp on Sunday November 26, 2017 @03:54PM
(#15782934)
I 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
Re:Rust: Enable WebAssembly backend by default
by bad_user on Sunday November 26, 2017 @12:40PM
(#15781998)
AFAIK 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.
Re:Rust: Enable WebAssembly backend by default
by smt88 on Sunday November 26, 2017 @04:36PM
(#15783138)
I consider Rust to be functional, although people would dispute that, I'm sure. GC is a huge difference though.
Re:Rust: Enable WebAssembly backend by default
by yen223 on Sunday November 26, 2017 @07:15PM
(#15783879)
Rust doesn't have great support for function composition or partial application, both of which I think are essential to be considered a "functional" language.
Others will have different opinions for sure, and that's fine.
Re:Rust: Enable WebAssembly backend by default
by idibidiart on Sunday November 26, 2017 @12:22PM
(#15781881)
Any links to instructions for Reason WASM targeting?