Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

SerenityOS Browser now passes the Acid3 test

Name: Anonymous 2022-03-31 13:02

Name: Cudder !cXCudderUE 2022-04-01 4:27

Fixed link: https://nitter.net/awesomekling/status/1508953394836353024

I haven't forgotten. I just haven't had much time to work on it as more important things have occupied my time.

How much RAM does it use? How big is the binary?

At least we have some source to look at...

https://github.com/SerenityOS/serenity/blob/master/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp

Nearly 3k lines of insanely bloated C++ for the tokeniser alone. Mine is ~600 lines of x86 Asm. What happened to HLLs being more efficient to write!? Perhaps they have quantity but not quality.

https://github.com/SerenityOS/serenity/tree/master/Userland/Libraries/LibWeb/HTML/Parser

This looks like a WebKit clone. Parser itself is at least another 3k lines, and that's not even counting the awfully-enterprise-smelling crap like ListOfActiveFormattingElements(!?!?) And yes, let's create another file just for a single fucking HTMLToken class because our brains are too tiny to comprehend it together with the rest of the code. At least it doesn't look like they're allocating and freeing them every time. Mine is around 2kloc of good old C89, and it's still too bloated to my liking.

The idea of SerenityOS itself sounds good on the surface. They say they're rewriting everything from scratch. Yet they still need to use GCC, and being ADHD trendchasers, are using "modern" (=bloated) C++, which means they're going to be far off from writing a compiler of their own.

Name: Anonymous 2022-04-01 11:49

5x the lines of code is a small price to pay for something that actually runs.

Name: Anonymous 2022-04-01 13:28

Name: Anonymous 2022-04-01 13:30

>>2
This is kinda fucked up. My html parser (+ tokenizer) is 100 lines of rust.

Name: Cudder !cXCudderUE 2022-04-01 13:39

>>5
That's what you get if you don't think about the spec and just do a very stupid direct translation. You'll probably get something working pretty quickly, but it's not going to be very efficient.

rust

Try a less hipster language.

Name: vLK 2022-04-02 23:16

I can't believe my eyes

Name: Anonymous 2022-04-03 2:14

Who still cares about x86?

Name: Anonymous 2022-04-03 13:29

>>8
Cudder

Name: Anonymous 2022-04-05 2:39

nice

Name: Anonymous 2022-04-05 7:44

hax my anus

dubs
ducbs
dubsn
dunbs
DUBS

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List