HN Hall of Fame Weekly email

Modern C++ Won't Save Us

alexgaynor.net Essays & writing Essays & articles Security & privacy Candidate
Screenshot of alexgaynor.net 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
2019–2021
peak thread · 388 comments
326 pts
latest 20+ return · 2021-04-25
189 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

A significant issue I have with C++ is that even if your code base is pure C++17, the standard library is a Frankenstein's monster of legacy and modern C++ mixed together that required many compromises to be made. A standard library that usefully showed off the full capabilities of C++17 in a clean way would have to jettison a fair amount of backward compatibility in modern C++ environments. I've noticed that more and more people like me have and use…

My comment for too many years is that C/C++ fails to deal with three issues: "How big is it", "Who owns it", and "Who locks it". C++ has, with difficulty, made progress on "How big is it" through templates, but raw pointers keep leaking out. "Who owns it" has been tough to deal with, although "owned pointers" at least try. "Who locks it" has yet to be addressed at the language level, although at least there's now some agreement on…

Animats·189-point thread·

> Dereferencing a nullptr gives a segfault (which is not a security issue, except in older kernels). It’s a segfault on many C++ implementations, but it has undefined behavior, so there’s no guarantee.

DerekL·8-point thread·

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
523

reference only — not used in Hall rules or ranking

Total comments
644

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2019-04-21Modern C++ Won't Save Usdankohn181
2019-04-22Modern C++ Won't Save UsFirst breakout · Best threadneptvn326388
2021-04-25Modern C++ Won't Save Us (2019)Latest 20+ point returnwglb189255