4 ms·
Via https://github.com/mbasso/asm-dom https://github.com/mbasso/asm-dom? (for example). For every complex self generated challenge there is an even more complex
by intc 5y ago
Via https://github.com/mbasso/asm-dom https://github.com/mbasso/asm-dom? (for example). For every complex self generated challenge there is an even more complex solution?
- tbranyen 5y agoThis is a virtual domain implementation, like React, not interacting with the actual DOM like the demo in the OP. WASM is awesome, but seems like folks don't really understand it and the limitations. I bet DOM access in WASM is totally doable, just gonna be a lot harder than how this project implemented it.
- intc 5y ago"By itself, WebAssembly cannot currently directly access the DOM; it can only call JavaScript, passing in integer and floating point primitive data types. Thus, to access any Web API, WebAssembly needs to call out to JavaScript, which then makes the Web API call. Emscripten therefore creates the HTML and JavaScript glue code needed to achieve this." Quoted from: https://developer.mozilla.org/en-US/docs/WebAssembly/Concepts https://developer.mozilla.org/en-US/docs/WebAssembly/Concept...