News for hackers. Stuff that matters.
Re:WebAssembly support now shipping in all major browsers by flanbiscuit on Tuesday November 14, 2017 @08:40AM (#15694839)
For now, couldn't someone build a js<-->wasm bridge so that you could have DOM access? This[1] seems to suggest it's possible

[1] https://github.com/WebAssembly/design/issues/126

Re:WebAssembly support now shipping in all major browsers by tyingq on Tuesday November 14, 2017 @09:12AM (#15695093)
You can, it's just very slow.

See this issue, for example: https://github.com/rust-webplatform/rust-webplatform/issues/...

Re:WebAssembly support now shipping in all major browsers by flanbiscuit on Tuesday November 14, 2017 @11:33AM (#15696503)
Are they writing their own DOM parser in Rust though?

I should clarify what I meant. I was thinking more the way Cordova works where the JS side handles the DOM but the wasm side handles computations and they talk to each other via a "bridge". So maybe React can offload its heavier computations (diff-ing and what not) to a C lib compiled to wasm and it just returns data back to it.