1. If you’re using wasm/asmjs and Rust today, how’s it going? Do things generally work well? Are there weird pain points? Is crates.io missing support for key functionality? Is key functionality missing from rustc?
2. If you looked at using wasm/asmjs and Rust historically, but decided not to do so, why not? What are the blockers for enabling your use case with wasm/asmjs and Rust?
3. In general do you have an idea for a use case with wasm/asmjs and Rust on the web? We’re wondering if there’s some sweet uses of wasm/asmjs which really showcase how Rust can shine on the web.
(I'm not the author of that thread, please leave feedback there to keep it all collected in one place.)
Hi, I've been using Rust to WebAssembly very recently for a toy project [0] and posted about it very recently on HN [1].
So my answers:
1. I'm using both wasm and asm.js (installed using rustup) and it works for me extremely well, no weird bugs, very easy to set up.
However I'm really missing a way to pass arguments to the linker, like "-s BINARYEN_METHOD='asmjs,native-wasm'" or "-s EMCC_DEBUG=1" or "-s DETERMINISTIC=1" or "-s SIMD=1" or "SIDE_MODULE=1"
I think there is already a bug opened for this but I'm not able to find it on Google right now.
From crate.io, I'm missing a N-dimensional array library (BLAS/LAPACK like) that compile to webassembly. There is ndarray[3], but its available BLAS dependencies are using fortran and therefore not compilable to wasm. Maybe thoses projects could help: emlapack[4], weblas[5]
Also, I know it would be difficult to implement and would need some kind of better interaction with emscripten, but anything that makes it easier to pass and convert/cast object/arguments to and from javascript would be welcome. Right now, it requires a lot of boilerplate and unsafe code, mostly with structs [6].
2. I'm using it and considers using it more, I love it, thank a lot to everyone working on it!
3. Right now I'm deep into deep learning and I'm thinking about writting an implementation in Rust (that's why it would be nice to have a BLAS/LAPACK library). It could then be used on the Tensorflow playground[6] to showcase the technology.
https://internals.rust-lang.org/t/state-of-webassembly-and-r...
In particular:
1. If you’re using wasm/asmjs and Rust today, how’s it going? Do things generally work well? Are there weird pain points? Is crates.io missing support for key functionality? Is key functionality missing from rustc?
2. If you looked at using wasm/asmjs and Rust historically, but decided not to do so, why not? What are the blockers for enabling your use case with wasm/asmjs and Rust?
3. In general do you have an idea for a use case with wasm/asmjs and Rust on the web? We’re wondering if there’s some sweet uses of wasm/asmjs which really showcase how Rust can shine on the web.
(I'm not the author of that thread, please leave feedback there to keep it all collected in one place.)