News for hackers. Stuff that matters.
Re:Single Page Applications using Rust by danShumway on Tuesday August 11, 2020 @11:27AM (#24121324)
> There's a small-but-non-trivial amount of overhead involved in calls between WASM code and the DOM API's, plus (de)serialization

My understanding is that this is going to get a lot better in the future though -- last I checked the plan was for WASM to eventually have direct bindings to DOM APIs, at which point you won't need to interact with JS at all.

Re:Single Page Applications using Rust by gavinray on Tuesday August 11, 2020 @11:39AM (#24121510)
That's true, if the Interface Types proposal gets accepted that overhead should be significantly less. At that point it'll get really interesting what the potential performance looks like for DOM-interaction heavy apps.

https://github.com/WebAssembly/interface-types/blob/master/p...

I wouldn't think it's far behind. The Multi-Value proposal, which had huge ramifications, was recently accepted in April so WASM is clipping along at a fair pace still.

https://hacks.mozilla.org/2019/11/multi-value-all-the-wasm/

Re:Single Page Applications using Rust by markdog12 on Tuesday August 11, 2020 @12:36PM (#24122290)
Firefox Nightly and Chrome Canary both recently landed multi-value and reference types: https://webassembly.org/roadmap/