News for hackers. Stuff that matters.
Re:The Era of the Trident Engine by ripdog on Saturday January 25, 2020 @02:41PM (#22148178)
The complexity in modern browser engines has nothing to do with parsing invalid HTML and everything to do with the vast, absurd feature set of the modern web platform, and the complex interactions between the components.
Re:The Era of the Trident Engine by bobthepanda on Saturday January 25, 2020 @02:59PM (#22148306)
Yeah, if you were to design HTML, CSS, and JS from the ground up today they'd likely look very different.

The bigger issue is backwards compatibility; the web has bent over backwards to maintain it, which is a blessing and a curse. On the one hand it makes the feature set absurd, but on the other hand the web is (relatively) easy to archive since format interpreters for it are widespread, and pages can be built and then forgotten about because they still work.

Re:The Era of the Trident Engine by amelius on Saturday January 25, 2020 @03:35PM (#22148478)
> Yeah, if you were to design HTML, CSS, and JS from the ground up today they'd likely look very different.

I'd like to see that experiment done.

Re:The Era of the Trident Engine by hencoappel on Saturday January 25, 2020 @06:23PM (#22149280)
This is sort of what Flutter claims to be.
Re:The Era of the Trident Engine by rubber_duck on Saturday January 25, 2020 @08:14PM (#22149748)
Flutter is a GUI toolkit, it's a different use case entirely with some small overlap (flutter can run on the web or could be used to build the front-end for a new browser)
Re:The Era of the Trident Engine by bobajeff on Saturday January 25, 2020 @11:30PM (#22150392)
I think he's referring to the fact that Flutter was started as a project, by some of Google's browser and web standards people, to see what the could come up with if they designed a browser from scratch with the knowledge we have today.

This is talked about in a few videos and articles by it's creators.

Re:The Era of the Trident Engine by dodobirdlord on Saturday January 25, 2020 @08:26PM (#22149792)
WASM does seem to be on the road to eventually being a better JS.
Re:The Era of the Trident Engine by mycall on Sunday January 26, 2020 @08:45AM (#22152026)
I wish WASM was AST based instead of stack based architecture.
Re:The Era of the Trident Engine by wokkel on Sunday January 26, 2020 @01:14PM (#22153605)
What does that statement mean? As far as i know stack VS AST is Apple VS. Oranges. If you meant a register based architecture that would make sense. I don't know is wasm code is verifiable, in which case it's trivial to rewrite it to a register like architecture (like dalvik does for jvm bytecode).
Re:The Era of the Trident Engine by Aeolun on Sunday January 26, 2020 @05:44AM (#22151463)
I think we can drop all non-flexbox layout without any degradation in functionality.
Re:The Era of the Trident Engine by emn13 on Sunday January 26, 2020 @03:00PM (#22154351)
You mean grid? I'm suspect you can emulate most if not all of flexbox in grid, but definitely not vice-versa.