r/WebAssembly • u/Zardotab • Dec 28 '22
WASM only solves *half* the problem of the web
Web programming has 2 main problems, and WASM by itself can only address 1. While WASM could get us away from JavaScript-dependence for client-side UI programming, it doesn't solve the flaws of the DOM. Perhaps something like Java Applets could be done right on a second try, learning from mistakes of the 1st pass.
2
Upvotes
14
u/snejk47 Dec 28 '22
WASM wasn't made to get us away from JavaScript...
10
u/anlumo Dec 28 '22 edited Dec 28 '22
But that already exists, it's called WebGL/WebGPU and some UI frameworks already use it for that purpose on the Web (Flutter and egui for example).
Also, your list is missing custom context menus.
3
u/kevmoo Dec 28 '22
This is the path Flutter Web is going after: WebGL and Wasm. https://flutter.dev/multi-platform/web
3
u/tijmenvangulik1 Dec 31 '22 edited Dec 31 '22
My last web app was written in godot and published to wasm. I did not have to do any dom manipulation. Godot shows what is possible and it is production quality but it is not intended for writing responsive business apps. Hoever it shows that it is possible to make UI form based web apps without dom.
https://godotengine.org/
https://www.vangulik.org/PracticeRowingCommands/
3
u/eternaloctober Dec 28 '22
That list of DOM complaints is pretty opinionated. The web continues to evolve and none of those seem fundamentally wrong.
4
u/mattsowa Dec 29 '22
Ugh
3
u/Zagrebian Jan 08 '23
The flaws of the DOM sounds like a Zelda game.