News for hackers. Stuff that matters.
Re:China’s first ‘fully homegrown’ web browser found to be G... by amelius on Thursday August 16, 2018 @11:49AM (#17775688)
It's sad to see that even with a rewrite (Servo), the code becomes so hairy.

In my ideal world, browsers are spec'd in a functional language, and optimized mechanically (perhaps based on ad-hoc human guidelines).

Re:China’s first ‘fully homegrown’ web browser found to be G... by smaddox on Thursday August 16, 2018 @02:40PM (#17777417)
That's hairy? It looks pretty clean to me. Sure, there are a lot of match cases, but they follow a fairly clean and clear pattern. Pulling them out into a hundred single-use functions certainly wouldn't make it easier to understand.