alt.hn

5/19/2026 at 7:10:01 PM

QUIC has a lot going for it, but it is a large library (six figure LoC)

https://twitter.com/ID_AA_Carmack/status/2056780156535279812

by tosh

5/19/2026 at 11:40:26 PM

This isn't really about QUIC so much as it is about developer experience. Authentication, confidentiality, integrity, congestion control, reliable+ordered streams etc. are all fundamental features of the protocol, so of course it's a bit beefy. Those LoC have to be written somewhere - whether in the kernel or in userspace makes little difference, semantically. The reason that QUIC is a library is because it's still relatively new. That said, support for creation of QUIC sockets in the Linux kernel is underway (https://lwn.net/Articles/1029851/).

by 10000truths

5/20/2026 at 1:58:41 AM

I am baffled you can even get to six figure LoC implementing QUIC. Having done the majority of a QUIC implementation before deciding I needed to design a new protocol that fixes QUIC's performance limitations, a minimal, but fully functional and performant implementation with zero dependencys (except for cryptography) should only take maybe 5,000 lines.

If you use the default parameters with such a implementation you will likely cap out at a pretty slow ~10 Gbps/core, but if you reduce the ACK frequency you can probably get to ~30-50 Gbps/core without too much trouble.

by Veserv

5/20/2026 at 3:49:49 AM

Doesn’t QUIC already have an extension for negotiating ACK frequency?

by dpark

5/20/2026 at 4:32:11 AM

They do, it is a draft [1]. There are other design flaws that also limit data path performance (ignoring encryption) to probably something on the order of just 30-50 Gbps/core though I would not be too surprised if you could get ~100 Gbps/core in a well-behaved case.

[1] https://datatracker.ietf.org/doc/draft-ietf-quic-ack-frequen...

by Veserv

5/20/2026 at 1:47:33 AM

Redacting "I noticed that a kernel level impl is only 9000 loc (shallow dive https://lwn.net/Articles/1029851/). As it doesn't fully implement the feature set.

Also I noticed that Plan 9's IL protocol (avoids head of line because the type of messaging it's used for) another point pointed out in the x comments.

I wonder if he's focusing on consumer distributed AI inference (due to quic being browser supported) or maybe just a comment on the protocol in general.

by bjconlan

5/19/2026 at 11:22:52 PM

I mean, isn't TCP six figure LoC? It just lives in the kernel, not in a library.

by bastawhiz

5/19/2026 at 11:08:12 PM

Can't say I disagree much with his take. We've been doing the whole internet thing going on six decades now, and we shouldn't need to think about this stuff nearly as much as we still do. Maybe once it reaches 100 years old we'll know how to do stuff in a sane fashion by default.

by QuercusMax

5/21/2026 at 7:38:56 AM

[flagged]

by neribar