7 ms·
> But WebAssembly becomes even more interesting when you take another perspective. What if Compose for Web, the multiplatform incarnation of Jetpack Compose use
by rektide 4y ago
> But WebAssembly becomes even more interesting when you take another perspective. What if Compose for Web, the multiplatform incarnation of Jetpack Compose used on Android, would leverage Kotlin/Wasm instead of Kotlin/JS to perform pixel-perfect Canvas based rendering?
It would not really be very web like. It'd be more like Flash or a Java Applet. User extensions would all be broken.
This is a new thing coming people. Now that we have wasm, the native-app folks are super jazzed about not only switching programming langauges, but getting rid of HTML and the DOM. The plan goes: we're replacing structure markup & hypertext of webapps with just-a-bunch-of-pixels, big canvases, that are purely computational constructs. Declarative information is getting blown up by imperative processes; this is how native apps are having their revenge against webapps. I have yet to see how any of this actually empowers or helps users: it seems like a huge downgrade, done purely to give developers alternative options. Maybe the experiences really are vastly better, maybe what we make is categorically different once we have this tech! But I really have a hard time (given what creativity we've had & seeing how quickly bootcamp folks come in & get hacking on the DOM) believing the DOM is really so horrible that it justified de-internet-izing the web & that turning it into a motion picture machine is warranted (as anything more than early exploration).
The web starts with the HTML/DOM, and has been our computing world's greatest, most universal tower of Babel[1] that has held. I'm curious (and admittedly pretty terrified) to see who is happier/winners when we bring down the higher-level system, & treat it like a low level interface, like a big Canvas, like what was happening with Flash & Applets. Two other recent examples beyond Kotlin/Compose: Flutter/CanvasKit (which I commented on & got a reply from the lead about on these topics[2]), and Hixie's "Towards a Modern Web Stack"[3].
[1] https://unwindprotect.com/tower-of-babel https://unwindprotect.com/tower-of-babel https://news.ycombinator.com/item?id=34695638 https://news.ycombinator.com/item?id=34695638
[2] https://news.ycombinator.com/item?id=34527980 https://news.ycombinator.com/item?id=34527980
[3] https://docs.google.com/document/d/1peUSMsvFGvqD5yKh3GprskLC3KVdAlLGOsK6gFoEOD0/preview?pli=1&resourcekey=0-bPajpoo9IBZpG__-uCBE6w https://docs.google.com/document/d/1peUSMsvFGvqD5yKh3GprskLC... https://news.ycombinator.com/item?id=34612696 https://news.ycombinator.com/item?id=34612696
- ericmcer 4y agoWhat does it really offer? Performance and flexibility? It will probably continue to be a niche for really specific high performance applications but the DOM will always exist as long as 99% of the internet is just viewing or uploading text/images/videos. The amount of experience and knowledge that has gone into fixing edge cases like accessibility, viewports, cross-browser support, security, etc. makes any kind of 'pure wasm' app a nightmare to maintain.
- dmitriid 4y ago> What does it really offer? While it really is bad, it offers things that need to be reimplemented by everyone from scratch if they go with Canvas, WebGL or WebGPU such as: - accessibility - text rendering (including proper font rendering, LTR text, multilanguage text, text selection etc.) - even smaller things like tabindex
- pjmlp 4y agoNot everyone, only the frameworks that matter. Qt, Uno, Blazor, Flutter,... Get ready for the revenge of plugins.
- rektide 4y agoBlazor notably is not supplanting the page/dom/GUI at this point, afaik. Their main target has been HTML/DOM/CSS. The new "Blazor United"[1] push adds a lot more wasm/ is kind of a Combining Mecha of technologies, but still is an actual mime-type text/html app system. Microsoft was lucky/smart/right-place-right-time or some combo, & snapped up Steve Sanderson after his great Knockout framework & he's been helping them keep the compass oriented since, & giving demos/leading the way. Microsoft has done well trying to play nicely in the fold, build trust, rather than redefine/reshape/dominate/exploit the web, which has been a good move imo. It amazing to me how much the phrase "pixel perfect" seems to excite most of the crowd you cite. Notably absent on Qt's site but basically implied. Uno, Flutter, Kotlin's Compose pitch... it's in the headline pitches, is the top bullet point, and I'm not really sure what it says to me. Is that level of absolutist & total top-down control an objective for computers & our human infosphere? [1] https://visualstudiomagazine.com/articles/2023/02/03/blazor-united-plan.aspx https://visualstudiomagazine.com/articles/2023/02/03/blazor-... https://news.ycombinator.com/item?id=34645558 https://news.ycombinator.com/item?id=34645558