Can you even specify a modern web browser in under 20k lines of English? Between the backward compatibility and huge multimedia APIs, including all the references, I'd be surprised.
Can you even specify a modern web browser in under 20k lines of English? Between the backward compatibility and huge multimedia APIs, including all the references, I'd be surprised.
https://codetabs.com/count-loc/count-loc-online.html
Using LadybirdBrowser/ladybird & ignoring the following folders:
.devcontainer,.github,Documentation,Tests,Toolchain,Libraries
...Yields about 36k lines of C++. With the libraries, the LOC count balloons to 310k.
If a still-in-alpha browser already has 300k lines of code to deal with, there's very little chance that a spec-compliant browser will be able to do the same within 30k lines.
I've been thinking about SmallTalk web browser 4 years ago, more in-depth here: https://www.reddit.com/r/smalltalk/comments/jnigzb/native_we...
Since then, a lot have changed. One dedicated SmallTalker with LLM-infused Squeak might do wonders.