2 ms·
Depending on your language of choice, it might be worth looking at seeing if it compiles into web assembly. If it does, and if the binary sizes aren't too larg
by justinclift 3y ago
Depending on your language of choice, it might be worth looking at seeing if it compiles into web assembly.
If it does, and if the binary sizes aren't too large (both can be a problem for some languages) then you might be able to create your frontend using wasm, using your preferred backend language.
- solardev 3y agoIn 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. ;)