4 ms·
Great idea, every website should write its own WebGPU-based rendering engine from scratch. But that will be way too much effort for every kind of project, so w
by paxys 4y ago
Great idea, every website should write its own WebGPU-based rendering engine from scratch.
But that will be way too much effort for every kind of project, so what can really happen is some large players write engines and define interfaces for them, and we can all use them for our sites.
But different engines rendering the same data differently is probably going to be confusing (what if I want to swap them to compare performance?), so we should also standardize on some rules for how they do that. Maybe define some kind of document model and styling language?
Also, downloading all these engines on every page load might be too wasteful, so we can pick a couple of the dominant ones and bundle them into the browser itself. That way sites just have to send over structured content and the browser can load them all without a problem.
If we can ever get to this it will be a great web experience!
- conorcleary 4y agoRelevant xkcd: https://xkcd.com/927 https://xkcd.com/927 "How Standards Proliferate"
- syrrim 4y agoBetter: https://xkcd.com/1367/ https://xkcd.com/1367/
- Vermeulen 4y agoYou have definitely missed the entire point. Of course there are some advantages of just putting it all in the browser for rendering current standard web sites. The point is to rethink the browser so it isn't just a single tech company setting what the web is with Chromium. A WebGPU+WebAssembly engine would be simple enough for there to be many.
- meheleventyone 4y agoRight but this misses the point that you’re not removing complexity by shuffling it down a layer. Is it really an advantage to have multiple “thin browsers” if there are only two or three “browser engines” anyway due to their complexity? Further by pushing the complexity down a layer you inevitably make it slower. Aside from which from a market perspective most small browser projects already are a thin layer on top of Chromium. So really what’s gained here? Particularly if you want to write a novel app using WASM and WebGPU/WebGL only you can already with the tiniest amount of glue to spin the handle. And this can be a useful approach but should it be the default?
- Vermeulen 4y agoIt would definitely remove complexity from the browser. By that logic should browsers just contain all the common Javascript frameworks? No because that would slow down their rate of change, and sites couldn't control their exact version / configuration. Should be the same for the entire DOM
- meheleventyone 4y agoThis doesn't really make sense the browser is complex because it needs to do a lot in order to meet web standards. Removing most of it's functionality and making it a VM with a cross-platform renderer is definitely a great idea for building cross-platform applications but it's no longer functionally a browser. You could build a browser engine on top but then that's just circuitous and most likely slower. The standards and complexity don't vanish in either case. Neither does the VM and renderer obviate the need to follow the version and configuration of that piece of software. And importantly you don't need to use the DOM right now if you don't want to in the browser as Figma and other applications clearly demonstrate. If what you're trying to say is an application platform based on WASM and WebGPU that safely sandboxed userland applications ultimately delivered over the internet is a good idea then yes I'd agree it is. But it's not a browser.
- giantrobot 4y agoHaving a browser be just WebGPU+WebAssembly is basically just Flash and all the dog shit UX and terrible performance it forced on people. Responsiveness entirely up to the developer, giant binary blobs of content mixed with code, and 100% CPU usage all the time.
- tinus_hn 4y agoThat’s called an App Store, not the web.