5 ms·
> This leads to the following situation where the main program and the worker both reference the same memory, which doesn’t belong to either of them: If only M
by kbenson 11y ago
> This leads to the following situation where the main program and the worker both reference the same memory, which doesn’t belong to either of them:
If only Mozilla had some technology that could deal with ownership of memory...
Seriously, if rust doesn't have an ASM.js optimized target yet, it really should.
- seibelj 11y agoIf rust can be compiled to LLVM, then emscripten can be the backend to asm JS
- steveklabnik 11y agoThe issue is emscripten uses a different LLVM version than we do; so it can work, but it's got some rough edges. We want both compile to JS and compile to wasm to work well, the work just isn't done yet.
- izym 11y agoI would be very surprised if Rust doesn't target WebAssembly sometime in the future. It's just such a good fit. If I remember correctly there are already talks about doing MIR->WASM.
- spicyj 11y agoIt's planned. https://github.com/rust-lang/rust/issues/33205 https://github.com/rust-lang/rust/issues/33205
- kibwen 11y agoWe Rust folk have definitely got plans in this space. :)