2 ms·
> So this is a scripting language on top of a scripting language? It's a bit sad. What a low-effort takedown. Why don't you at least explain why it's such a s
by capableweb 5y ago
> So this is a scripting language on top of a scripting language? It's a bit sad.
What a low-effort takedown. Why don't you at least explain why it's such a sad idea?
> The idea is cool, but why wasn't it implemented w/ wasm?
How are you planning to interact with the DOM with WASM?
Sounds like you know enough to criticize yet don't understand your proposed alternative enough to know why it wouldn't work.
- intc 5y agoVia 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...