5 ms·
It's on the embedder (Wasm VM) to provide this functionality. I'm working on a Wasm runtime [0] that is written in Rust and uses stack switching to allow you to
by bkolobara 5y ago
It's on the embedder (Wasm VM) to provide this functionality. I'm working on a Wasm runtime [0] that is written in Rust and uses stack switching to allow you to call Rust async functions as if they were blocking. This keeps the Wasm bytecode simple (blocking), but at the same time provides high performance i/o.
There is also a proposal to bring stack switching to the browser.
[0]: https://github.com/lunatic-solutions/lunatic https://github.com/lunatic-solutions/lunatic