News for hackers. Stuff that matters.
Re:React 19 by jazzyjackson on Thursday December 05, 2024 @02:32PM (#42331744)
"screw it, lets compile it into a WASM blob that renders it all on a canvas"
Re:React 19 by TimTheTinker on Thursday December 05, 2024 @02:59PM (#42332038)
Seriously, I think there is a possible future where a macOS-like reactive UI toolkit is developed that compiles and deploys to the web via WASM. Maybe even a compiler that takes something like Xcode's Interface Builder's .nib files (and associated code). Microsoft tried something like that with Blazor WebAssembly. It works really well, but I think a fully data-reactive model like Apple's could be even more successful when applied to web apps.

Whatever the case, I think very few companies have reached the excellence of native macOS interface design in the context of a web app. Figma is a lone exception; for anyone else to achieve what they have, they'd have to reinvent the wheel yet again in so many small ways. (Have you noticed in Figma how moving the mouse down and to the right diagonally from a menu item to its associated submenu does not cause the menu item and submenu to be deselected? That detail, and so many others, are straight-up macOS-inspired UI craftsmanship.)

We need a reusable toolkit that lets ordinary developers achieve Figma-level UI excellence in web apps.

Re:React 19 by colonelspace on Thursday December 05, 2024 @03:35PM (#42332468)
> Maybe even a compiler that takes something like Xcode's Interface Builder's .nib files

Please never let this happen.

Re:React 19 by mejutoco on Thursday December 05, 2024 @03:24PM (#42332354)
Dreamweaver existed even earlier. I hope something like what you mention (flutter) does not become popular because of accessibility.
Re:React 19 by nox101 on Thursday December 05, 2024 @04:52PM (#42333224)
I don't agree but if you're looking for something that renderers everything in a canvas it's called Flutter https://flutter.dev/, and strangely it's made by Google, even though Flutter's success means the end of scraping the web for search.
Re:React 19 by mattgreenrocks on Thursday December 05, 2024 @05:48PM (#42333727)
Parent speaks the truth.

The amount of fiddling and tweaking required for web UI feels substantially higher than any GUI toolkit I’ve ever used. And I’ve used a lot of them!

I suspect this isn’t seen as a problem because Vite and friends do an amazing job of hot reload. But it is still a helluva brick wall to shipping things.

Re:React 19 by eddd-ddde on Thursday December 05, 2024 @02:44PM (#42331874)
That'd be unironically simpler than the current state of things.
Re:React 19 by gf000 on Thursday December 05, 2024 @03:30PM (#42332414)
It would be significantly worse, unless there is a very good reason for that (e.g. some app like Photoshop could work that way).

You lose any form of accessibility, inspectability, AdBlocking won't work, in many cases even mouse select/copy-paste won't work..

Re:React 19 by eddd-ddde on Thursday December 05, 2024 @04:32PM (#42332997)
I didn't say it'd be better. Just it would be simpler.

No need to learn html, css, JavaScript, bundlers, etc, etc.

Re:React 19 by gherkinnn on Thursday December 05, 2024 @05:33PM (#42333605)
You will inadvertently reinvent the browser inside a browser but worse.
Re:React 19 by pier25 on Thursday December 05, 2024 @03:26PM (#42332370)
Nah. There's so much stuff that would need to be implemented.

Just think of all the functionality related to text that browsers give you in HTML: styles, spellchecking, accessibility features, etc. And that's just text.

Re:React 19 by mr_toad on Thursday December 05, 2024 @09:54PM (#42335777)
Most people would just use the most popular framework that did all that for them, while the remainder would complain loudly about the shortcomings of that framework, and we’d be right back where we started.
Re:React 19 by Muromec on Thursday December 05, 2024 @04:42PM (#42333125)
A11y enters the chat with their buddy "compliance"