Hacker News new | ask | show | jobs
by qweqwe14 13 days ago
Do you realize that no one writes toy HTTP implementations from scratch? I get that you might have a "suckless" mindset but that's just not how the real world works.
3 comments

That's not the point. The point is that the simpler the protocol is to implement, the simpler it is to validate and harden the implementations. A HTTP/1.1 implementation can be 10x to 30x smaller than an equivalently well-rounded HTTP/3 implementation.
In the real world you want performance. "Simpler" is not "more performant" in this case. Do you understand that HTTP/3 solves real problems for real use cases, and wasn't invented because someone wanted to make a more complicated thing?

It's like if I said "you can just use Linux 2.6, it's simpler"

A simpler protocol has less surface area for vulnerabilities. I think GP was just using that as an expression of this.
I've definitely done that before on a microcontroller.