3 ms·
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/WebAssembl
by flanbiscuit 9y ago
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 https://github.com/WebAssembly/design/issues/126
- tyingq 9y agoYou can, it's just very slow. See this issue, for example: https://github.com/rust-webplatform/rust-webplatform/issues/20 https://github.com/rust-webplatform/rust-webplatform/issues/...
- flanbiscuit 9y agoAre 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.