by Vermeulen · 4y ago · 0 comments
Make a new browser that is just WebGPU + WebAssembly, no more DOM. Would already run the next wave of games that will come targeting that.
Then for regular websites, have them deliver a HTML rendering engine written in Webassembly for how they want to be rendered. No more need to test websites on a range of browsers
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!
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?
https://www.microsoft.com/en-us/research/publication/atlanti...
https://scholar.harvard.edu/files/mickens/files/atlantis.pdf
"Oh, you're bored of a tenth of a gigabyte of React and TypeScript every time you load a web page? Here, we're going to ship you the entire browser every time you reload!"
In modern terms this is basically Flutter. Combine Flutter with Microsoft Blazor and I think that fully describes your idea.
The best sandbox is no need for a sandbox.
I think this is a dealbreaker, that is simply too much data to have to send over every time you want to load a webpage. It kills mobile immediately since most users have data caps.
The browser didn't beat out a handful of VMs because it was just another VM.
At the very least you'll also need a WebAccessibility API for the HTML rendering engine to hook into so that the OS sees your rendered textboxes as textboxes.
But for the average website? Not keen on having binary blobs executed for everything. That will at some point come with its own perils and in certain points would be a step back.
For this I have applications. For what would you need a browser then?
Want to develop an ad blocker? Too bad...
I'm not familiar with WebGPU and WebAssembly, can you say is there something in that combination that replaces the DOM? I'd also be curious to hear what's the issue with the DOM.
In both cases ad blockers become computer audiovisual processing systems.