4 ms·
@sjrd is talking about limitations for JS not other languages. C, C++, Rust and others already have their own DOM/JS support. WASM is exciting for statically
by logn 9y ago
@sjrd is talking about limitations for JS not other languages.
C, C++, Rust and others already have their own DOM/JS support.
WASM is exciting for statically typed languages especially. JS is not the target. It might eventually benefit from faster parsing but that's not the motive now.
- pas 9y ago> C, C++, Rust and others already have their own DOM/JS support. What does that mean? Could you expand on that? Can Rust code compiled to wasm manipulate the DOM?
- steveklabnik 9y agoVia calling through JavaScript, yes. Wasm itself can't directly manipulate the DOM. I'm not sure what your parent means.
- logn 9y agoRust -- https://github.com/koute/stdweb https://github.com/koute/stdweb C++ -- https://github.com/mbasso/asm-dom https://github.com/mbasso/asm-dom I don't know exactly how these work but Emscripten allows interop both ways (embedding JS in native code and calling native code from JS) -- https://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html https://kripken.github.io/emscripten-site/docs/porting/conne...