Earlier quoted context omitted.
To quote from https://webassembly.org/ : "Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and server applications." So did they mean only GUI-less client applications? EDIT: also e.g. this source https://developer.mozilla.org/en-US/docs/WebAssembly/Concept... makes it clear that porting e.g. C++ GUI applications is an intended feature, not just a…
Browser API calls add 1us of overhead. If your code is conscious of this, then it won’t be a problem. Much of the thought process behind react is to update the dom as little as possible, because it usually takes a while to repaint. Similarly, your WASM code will have this small overhead, but even 1000 calls is just 1ms. Regardless, there is still much more performance gains to be had by WASM-compatible languages when…
Ammo js: http://kripken.github.io/ammo.js/examples/webgl_demo/ammo.ht...
Ammo wasm: http://kripken.github.io/ammo.js/examples/webgl_demo/ammo.wa...
They can be faster, but it is still insane how fast JS interpreters have become. So for smaller application it might be ok to stay in JS land.