HackerTube

THE VIDEO SHELF · c++ bugs

CppCon 2017: Louis Brandy “Curiously Recurring C++ Bugs at Facebook”

Louis Brandy presents the most common and infamous recurring C++ bugs seen in Facebook's huge codebase, including shared_ptr data races and operator[] pitfalls. He explains the surprising complexity behind seemingly simple code.

Why HN readers recommended it

HN recommends it as a must-watch catalogue of C++ footguns, often cited in debates about Rust and C++ safety.

This is a summary from the source dataset, not an endorsement by Hacker News or the video creator.

Video & recommendation details

Creator / channel
CppCon
Topic
c++ bugs
Format
talk
Level
intermediate
HN recommenders in dataset
4
HN mentions in dataset
5
Recommendation years in dataset
2020–2025

These counts and years describe the included Hacker News records; they are not YouTube views or the video’s publication date.

From the original HN conversations

Excerpts from the recorded comments. Follow each source for the full comment and surrounding discussion.

  • No. Sorry for being unclear. [1] is a great video that covers a lot of good stuff in particular this usability bug. It's worth watching in its entirety. If you don't want to sit through the video, here's the broken code in question: void Obj::update() …

    wyldfire on Hacker News · 2020-01
    In C++20 Reference Card
  • I'm a big fan of Scott Meyer's Effective C++ . It's a little dated now, but it was the most valuable book I'd ever read on the language. Louis Brandy's Curiously Recurring Bugs at Facebook presentation from CppCon17 has somewhat of the same feeling, though …

    slavik81 on Hacker News · 2021-06
    In My favourite C++ footgun
  • There are many differences when it comes to safety: - Like you said, Rust doesn't let you data race on the contents of an Arc. - Rust also doesn't let you data race on the Arc itself (i.e. repointing a global Arc without synchronization). This …

    oconnor663 on Hacker News · 2023-01
    In Swift Achieved Dynamic Linking Where Rust Couldn't

Summaries, classifications and recommendation records are from the HackerTube source dataset. Read about this library and its limitations.