4 ms·
Does anyone know when/if DOM support will come to WASM?
by borplk 9y ago
Does anyone know when/if DOM support will come to WASM?
- Bob2018 9y agoI am also curious about WebGL and/or canvas approach. This would allow bypassing the HTML and CSS mess not just JS mess.
- Klathmon 9y agoUnless you have a good reason, I urge you to never do that. Even ignoring accessibility (which is pretty much completely ruined in this situation no matter what), you'll need to reinvent every single primitive widget you need yourself and have it work the same as it does on all platforms. That's a shitload of code shipped to the user before you even write a single byte of code for your application!
- scottmf 9y agoNo doubt someone will build that library though
- kayoone 9y agoIf you write all the rendering yourself, you can just output to a canvas but that kind of defeats the purpose. Having a JS layer for WebGL that calls into WEBASM for calculations etc should work fine though.
- dmitriid 9y agoIIRC, after garbage collection, http://webassembly.org/docs/future-features/ http://webassembly.org/docs/future-features/
- Confiks 9y agoNative DOM support might come later, but there's nothing stopping you from importing/exporting Javascript functions to WASM. Cheerp does this for example [1]. [1] https://www.leaningtech.com/cheerp/index.html https://www.leaningtech.com/cheerp/index.html
- lj3 9y agohttps://github.com/WebAssembly/host-bindings/ https://github.com/WebAssembly/host-bindings/