News for hackers. Stuff that matters.
Re:The Internet Is Cool. Thank You, TCP by xyzzyz on Saturday November 15, 2025 @09:38AM (#45937751)
Sure, you can reimplement multiplexing on the application level, but it just makes more sense to do it on the transport level, so that people don't have to do it in JavaScript.
Re:The Internet Is Cool. Thank You, TCP by groundzeros2015 on Saturday November 15, 2025 @10:30AM (#45938054)
But unfortunately QUIC is a user space implementation over kernel UDP.
Re:The Internet Is Cool. Thank You, TCP by MrDarcy on Saturday November 15, 2025 @11:27AM (#45938513)
How is that relevant? The user agent (browser) handles the transport.
Re:The Internet Is Cool. Thank You, TCP by groundzeros2015 on Saturday November 15, 2025 @02:30PM (#45939944)
That’s the problem. Browsers are billion dollar ventures and are operating systems unto themselves. So they like QUIC.

But you have to include giant libraries and kernel can’t see the traffic to better manage timing etc.

Re:The Internet Is Cool. Thank You, TCP by Veserv on Saturday November 15, 2025 @07:04PM (#45941611)
Those are non-issues.

It only takes a few thousand lines (easily less than 10k even with zero dependencies and no standard library) to implement QUIC.

Kernel management of transport protocols has zero actual benefit for latency or throughput given proper network stack design. Neither does hardware offload except for crypto offload. Claimed differences are just due to poor network stack design and poor protocol implementation.

Re:The Internet Is Cool. Thank You, TCP by groundzeros2015 on Sunday November 16, 2025 @01:58AM (#45943302)
Which library is easily less than 10k? Chromium QUIC is 250k+ according to ChatGPT
Re:The Internet Is Cool. Thank You, TCP by Veserv on Sunday November 16, 2025 @03:09AM (#45943529)
Mine. I implemented it myself.

Not fully standards compliant since I skipped some irrelevant details like bidirectional streams when I can just make a pair of unidirectional streams, but handles all of the core connection setup and transport logic. It is not actually that complicated. And just to get ahead of it, performance is perfectly comparable.

Re:The Internet Is Cool. Thank You, TCP by homebrewer on Sunday November 16, 2025 @06:31AM (#45944290)
FWIW, quic-go, a fully-featured implementation in Go used by the Caddy web server, is 36k lines in total (28k SLoC), excluding tests. Not quite 10k, but closer to that than to your figure.
Re:The Internet Is Cool. Thank You, TCP by adzm on Saturday November 15, 2025 @05:51PM (#45941208)
There is no real reason QUIC couldn't be implemented in the kernel though.
Re:The Internet Is Cool. Thank You, TCP by skissane on Saturday November 15, 2025 @11:09PM (#45942678)
QUIC is being added to the Linux kernel: https://lwn.net/Articles/1029851/