Predicting an enormous waste of time building UI frameworks with WASM and WebGPU
I am willing to bet (inflation-adjusted) 1000$ that in the next decade, multiple teams will see the advent of Wasm and WebGPU as a perfect reason to have yet another go at a cross-plattform UI framework. These projects will claim to have "native" UI elements, but it will be obvious that the are really just rebuilding everything to look like the native counterparts (similar to Flutter). Especially on macOS and iOS, major interactions will be unsupported or implemented in wrong ways (problems will likely occur around the menu bar, keyboard navigation, and integration with OS services). Scrolling will feel off on touchscreen devices and text rendering will differ from the native look. Still, some of these frameworks will have tens of thousands of stars on GitHub and be used by major companies. I would not be surprised if these frameworks were built with Rust and be seen by many as the thing that would finally bring Rust to the mainstream. I see it as likely that in whatever language these frameworks will be written, they will introduce some weird new syntax and paradigms to accomodate a more "intuitive" (probably declarative) style of writing UI code. Meanwhile, little to no progress will be made developing techniques and frameworks to build apps that are actually better for the end user.
17 comments
[ 3.3 ms ] story [ 50.0 ms ] threadThat said, Flutter did solve one problem better than competing alternatives in my opinion, which is that it is cross-platform and GPU-accelerated and has a small runtime.
Typical WebGL + WASM solutions need a 10 MB JavaScript download, which makes them unsuitable for regular websites. Flutter, on the other hand, is small enough to use both as a website and as an app.
No guess on the naming style of those frameworks?
This is the biggest downside IMO. If web moves from readable HTML documents to WASM apps, many things will be lost.
https://leaningtech.com/cheerpj/
https://leaningtech.com/cheerpx-for-flash/
https://www.jpro.one/demos
https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blaz...
https://www.opensilver.net/
https://platform.uno/uno-platform-for-web-webassembly/
https://www.qt.io/qt-examples-for-webassembly
This will make branded, OS-specific UI frameworks mostly irrelevant.
There will be less of platform lock-in. Users will be free to migrate between platforms, as most applications will be avaliable on multiple platforms by default. UI/UX will become independent of a platform's brand. This will lead to increased use of alternative OSes among casual users.
Now self-contained apps are becoming a thing, which solves the problem Java apps had in the past.
If thats part of the criteria then I'll take the bet provided I am alive and solvent at the time.
My reasoning is that Spatial Computing is going to substantially progress the world of open web UI using WebGPU & WASM in ways that are not connectable to your assumed native primacy of scroll bars and menu elements as stated.
While similar arguments exists between Web and client side XR applications based on FPS & polygon counts, it doesn't mean that WebXR can't "build apps that are actually better for the end user" and do it better than with existing web frameworks. That even remains true if Apple ends up being a lone immersive web standard unto itself, intentionally hobbled at the knees to promote either Experience Quality or App Store lock-in. Not ideal but not removing the ability for WASM & WebGPU to run some novel XR workloads everywhere else in which case I'll be interested to see what $1000 looks like adjusted for inflation in 10yrs although a lawyer might argue the language points upto 2041, the technical end of the next decade.
I've been keeping my eye on what the Godot UI team has been up to and it looks like a pretty good starting point. But I think an evolution of UI input and interactivity is among us so fingers crossed we're going into a second (or 3rd depending on who you ask) UI renaissance... Or maybe were just looking at another "famous framework"