Ask HN: How would the web rendering platform be designed today?

2 points by mnr ↗ HN
If the web rendering platform (css/dom, etc.) were created from scratch today, how would it be designed differently?

Knowing it will be used for web apps and WITHOUT backwards compatibility as a goal.

Edit: which css properties would be discarded/kept?

2 comments

[ 3.0 ms ] story [ 13.4 ms ] thread
Y'know, it's probably not a popular opinion... but if the web were 100% recreated today, I'd want it to be AutoLayout (from Apple/co) + CSS.

AutoLayout is not without issues, but a lot of them have been fixed over the past few years, and overall I think the mental model makes sense once it clicks.

CSS is the one thing the web got right, in my opinion.

I suspect that a platform for rendering streaming applications (which is basically what this would be, if "web apps" are its primary purpose) would probably not use CSS/HTML at all. The purpose of those is to display and format a subset of XML documents.

I would imagine all of the rendering would be done natively, and browsers would be replaced by VMs, and the DOM with some sort of cross-platform application library like SDL.

So basically, like Java or Flash, but language agnostic (rather than serving HTML, sites would serve source code that compiles to WebAssembly, or just the WASM itself) and maybe with something like a dependency manager for common libraries or runtimes.