Re:Firefox’s new streaming and tiering compiler
by pas on Thursday January 18, 2018 @06:49AM
(#16176409)
> 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?
Re:Firefox’s new streaming and tiering compiler
by logn on Thursday January 18, 2018 @01:11PM
(#16179638)
Rust -- https://github.com/koute/stdweb
C++ -- 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/conne...
Re:Firefox’s new streaming and tiering compiler
by steveklabnik on Thursday January 18, 2018 @08:46AM
(#16176969)
Via calling through JavaScript, yes. Wasm itself can't directly manipulate the DOM.
I'm not sure what your parent means.
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.