HN Hall of Fame Weekly email

C++ Coroutines Do Not Spark Joy

probablydance.com Essays & writing Essays & articles Software engineering Candidate
Screenshot of probablydance.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 2 calendar years, with breakout response in 2 of them.

submissions
3
submitters
3
observed span
2021–2024
peak thread · 250 comments
148 pts
latest 20+ return · 2024-04-05
63 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

There were three competing coroutines designs in front of the standard committee: stackful coroutines, from boost; C#-like stackless coroutines from MS; and zero-overhead stackless coroutines initially from chriskohlhoff (but then picked up by many others). After a lot of back and forward, the committee decided to pick the most proposal (i.e. the MS one) with the most complete implementation and potentially less ambitious. These are both good good features, but we ended up with a very complex, hard to use…

Regarding new/delete elision: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p09... You can also specify custom new/delete operations for your co-routine for control. I am not sure if you are allowed to delete them to guarantee elision either happens or the program fails to compile. Much like lambdas and ranged-based for loops, co-routines are pretty much defined as a code transformation into lower-level C++ rather than being black magic. Regarding the "inline" keyword being used to move a function's…

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
213

reference only — not used in Hall rules or ranking

Total comments
301

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2021-11-01C++ Coroutines Do Not Spark JoyFirst breakout · Best threadingve148250
2024-04-02C++ coroutines do not spark joy. (2021)fanf220
2024-04-05C++ coroutines do not spark joy (2021)Latest 20+ point returnsigna116351