Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. MiMo v2.6(xiaomi.com)
    355comments
  2. Spymarks, Not Watermarks(brand.io)
    75comments
  3. Apple Music to open concert venue in Battersea Power Station(bbc.com)
    24comments
  4. Transformers Explained Visually(poloclub.github.io)
    51comments
  5. Attention is all you have(alicegg.tech)
    212comments
  6. What Sun got wrong(dtrace.org)
    324comments
  7. I don't want to read what you didn't write(colinbreck.com)
    195comments
  8. MiMo-v2.6-Pro: Intelligence, Performance and Price Analysis(artificialanalysis.ai)
    4comments
  9. Firmware Freedom(playtaurus.com)
    4comments
  10. Looking forward to Git 2.56 – and 3.0(lwn.net)
    36comments
  11. AI coding has made CI a bottleneck, so we reworked ours to keep up(linear.app)
    215comments
  12. NASA’s Mars Sample Return mission is dead(science.org)
    305comments
  13. Divide by depth for instant 3D(gabrieloc.com)
    22comments
  14. Claude Status – Elevated errors for multiple models(claude.com)
    70comments
  15. Socrates vs. the Written Word (2011)(wondermark.com)
    10comments
  16. The Advisory Group on Mathematics and Artificial Intelligence(terrytao.wordpress.com)
    57comments
  17. PDF Forgeries Are Surprisingly Rare (2022)(gwern.net)
    21comments
  18. How do traffic signals work? (2019)(practical.engineering)
    53comments
  19. World Wide Words(worldwidewords.org)
    discuss
  20. Paper Models of Polyhedra(polyhedra.net)
    discuss
  21. First Shader from Zero in Godot 4(gdquest.com)
    6comments
  22. Frontier AI on Your Own Hardware(timdettmers.com)
    75comments
  23. Python Workers are now generally available(cloudflare.com)
    36comments
  24. Grok 4.7(x.ai)
    467comments
  25. Apple Copland D11E4 Booting in the Browser(pagetable.com)
    36comments
  26. Turn off and restrict access to Apple Intelligence features on Mac(support.apple.com)
    189comments
  27. HERMES radio enables voice and data communication over vast distances(ieee.org)
    53comments
  28. More floating point alternatives(wizardzines.com)
    18comments
  29. Why does mathmain need an encrypted loader?(safedep.io)
    37comments
  30. Roboharm: Do frontier robot policies refuse unsafe instructions?(robocurve.org)
    21comments

Epoll and Kqueue: How Operating Systems Learned to Wait Efficiently

11 pointsby 1d agothecodinggopher.substack.com
2 comments
55m agoHN ↗

It's slop

But kqueue goes further. It’s not just about file descriptors.

This inversion changes the cost model entirely. Idle connections are cheap. Active connections drive work. Scale becomes feasible.

epoll and kqueue didn’t just improve performance—they changed how systems are designed.

epoll and kqueue are not just APIs. They are acknowledgments

(And that's if you give it cookies. If you don't give the site cookies, it just crashes outright; the content is there, but then some JS wipes it just to tell you "Oh no—this page croaked.")

…and a fair bit of the content is just flagrantly incorrect, but that's par for LLMs. The two biggest things that are just glaringly wrong is that kqueue is a more general interface; most of the alleged "counter-examples" that supposedly make kqueue more general are well-supported¹ by epoll(2).

The article also claims that epoll "won", or something, but never mentions the competing IOCP model, which has seen renewed interest, especially on Linux, in the form of io_uring in recent years. IOCP is pretty fundamentally different, but it has some advantages to (less copying comparing to readiness polling) but some disadvantages (In a naïve implementation, each pending read is holding a buffer, and that can mean a lot of memory use; io_uring has answers to this, but that adds complexity. There's also complexity regarding ownership and cancellation; there are good write-ups about AsyncDrop from the Rust community, but the problem is more general than Rust.)

¹with file I/O being the notable exception. The problem is tractable, in userspace. And … honest nothing stops a readiness model, or even epoll, from working with disk I/O, just, AFAIK, Linux doesn't wanna.

43m agoHN ↗

I was just wondering about that. It's hard to pin down exactly why it's so annoying, but it's like, sentences that are grammatically correct but effectively meaningless. I came to your comment with:

Final thought > epoll and kqueue are not just APIs. They are acknowledgments that waiting is the dominant cost in networked systems—and that waiting must be handled efficiently.

Already copied as an example of a sentence that is technically english but adds no meaning to the whole article.

I wish I could downvote this stuff.