hackertube.io

CppCon 2016: Herb Sutter “Leak-Freedom in C++... By Default.”

CppCon · talk · Watch on YouTube

What it is

Herb Sutter's CppCon 2016 talk on lifetime safety in C++, aiming for code free of leaks and dangling pointers by default. It covers smart pointers, ownership, reference counting pitfalls and deferred reclamation resembling garbage collection.

Why Hacker News recommends it

HN cites it in memory management debates for its treatment of reference counting problems, destructor stack overflows and deferred pointers.

  • 2 people recommended it
  • 4 different months
  • 1 strong recommendations
  • first 2016, last 2025

What HN commenters said

  1. “Check all of Herb Sutter's CppCon videos from 2015-2016, especially this one”

    Sutter walks through deciding which pointer option fits which situation.

    shermanyo, 2016-09 · Strong recommendation · in “Smart pointers and move semantics in modern C++”

  2. “where he explains how those issues affect C++ and goes on to implement a tracing GC.”

    Explains problems with reference counting and implements a tracing GC.

    pjmlp, 2017-08 · Recommendation · in “Lazarus – A Delphi-compatible cross-platform IDE”

Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.

Topics: c++, smart pointers, reference counting, garbage collection, raii

Also recommended by the same people