|
|
|
|
|
by zarzavat
1022 days ago
|
|
You can certainly bridge the DOM to WASM with a virtual DOM. The problems with WASM are not just interoperability. The biggest problem is tooling. You cannot build tooling for in-browser WASM because it runs in a browser sandbox. JS has the same problem but the difference is that JS has a known object model that the browser can provide good tooling for. Whereas with WASM the browser has little insight into what those opaque Memory objects contain. So you need to bring your own tooling and run it inside the sandbox, and the sandboxing does not make this easy. Let’s say for example you want to pause execution, inspect the object tree, and run a REPL while it’s paused. |
|