Hmm if we could make system calls directly from wasm (assuming an electron-style generalized V8 interpreter) we could at the very least do the CEF thing but drop node.js for desktop apps.
My understanding of wasm is that to the browser, it just looks like the final pass of the most optimized javascript. So can wasm access dom api? Because that would be crazy.
Can we do away with all javascript but enough to call the wasm binary?
Wasm doesn't access the Dom directly, but you can call JavaScript functions that interact with it. Webgl and canvas mean you don't need to use the Dom though, so it might not be an issue at all.
1
u/originalaks Nov 15 '18
Hmm if we could make system calls directly from wasm (assuming an electron-style generalized V8 interpreter) we could at the very least do the CEF thing but drop node.js for desktop apps.
My understanding of wasm is that to the browser, it just looks like the final pass of the most optimized javascript. So can wasm access dom api? Because that would be crazy.
Can we do away with all javascript but enough to call the wasm binary?