4 ms·
Nice, but I'd rather see existing languages compiled to WASM. Such as C++, OCaml, Haskell, CPython, Rust, ...
by amelius 9y ago
Nice, but I'd rather see existing languages compiled to WASM. Such as C++, OCaml, Haskell, CPython, Rust, ...
- tom_mellior 9y agoDid you try looking? LLVM has a WebAssembly backend, so things that can be compiled with LLVM (from your list, at least C++ and Rust) can be compiled to WebAssembly as well. See a guide here: https://gist.github.com/yurydelendik/4eeff8248aeb14ce763e https://gist.github.com/yurydelendik/4eeff8248aeb14ce763e I haven't tried it; let us know how it went! Not sure how many hoops you have to jump through to compile the languages' standard libraries.
- pjmlp 9y agoHaskell has a LLVM backend as well.