4 ms·
> Even outside of C/C++, Emscripten seems to be required in some fashion for just about every "compile X to webasm". One exception to this is Rust's new "wasm3
by ekidd 9y ago
> Even outside of C/C++, Emscripten seems to be required in some fashion for just about every "compile X to webasm".
One exception to this is Rust's new "wasm32-unknown-unknown" target, which uses LLVM to directly generate wasm files without going through emscripten: https://www.hellorust.com/news/native-wasm-target.html https://www.hellorust.com/news/native-wasm-target.html
The easiest way to use it for larger projects is probably via https://github.com/koute/cargo-web https://github.com/koute/cargo-web, which handles a lot of packaging very nicely.
It's really nice to use, assuming you already know Rust.
- Klathmon 9y agoYeah I'm super excited about Rust's new webasm compiler, as well as some new-ish stuff with .Net that works without Emscripten. I get the ecosystem is super young, but it was honestly what kept me from playing with Webasm for a while, because each time I'd sit down to play with it I'd be in for a 3 hour compile after spending an hour getting my windows machine to have the right compilers and not stomping over other things I have setup on here.
- azakai 9y agoSounds like you were seeing an old emscripten SDK bug, where it compiled LLVM+clang unnecessarily and with debug info (which is very slow). Currently there shouldn't be anything like that, it will download a binary build of LLVM+clang for your system. It should be ready to use immediately after that download.