3 ms·
In this system, what is WASM drawing the UI to?
by solardev 3y ago
In this system, what is WASM drawing the UI to?
- erhaetherth 3y agoI've never tried it, but apparently some bindings exist, e.g. https://github.com/rustwasm/wasm-bindgen https://github.com/rustwasm/wasm-bindgen So you can either try manipulating the DOM w/ some bindings or draw to canvas.
- justinclift 3y agoIt replaces most (but not all) of the javascript. So you can manipulate dom elements, draw to a canvas, etc. There is still some javascript requirement as the wasm approach generally needs some JS setup bits in order to have things work. Languages that can compile to wasm should already have that pretty well figured out by this stage though. In theory. ;)