Skip to content
HomeVideos
AllLongsCategoriesPlaylists
BooksBlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K

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

    CppCon

    2 HN recommenders · recommended in 14 months, 2016–2025

    YouTube

    1:39:25 · 149K views · Sep 26, 2016

    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.

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

    Software Engineering & LanguagesC, C++, Rust, Go & systems languages
    1. 1:29:06
      CppCon 2015: Herb Sutter "Writing Good C++14... By Default"CppCon193K views • 11 years ago
    2. 1:40:27
      CppCon 2014: Herb Sutter "Back to the Basics! Essentials of Modern C++ Style"CppCon323K views • 12 years ago
    3. 1:02:33
      CppCon 2017: Kate Gregory “10 Core Guidelines You Need to Start Using Now”CppCon144K views • 9 years ago
    4. 1:36:27
      CppCon 2016: Dan Saks “extern c: Talking to C Programmers about C++”CppCon175K views • 10 years ago
    5. 1:00:07
      CppCon 2017: Carl Cook “When a Microsecond Is an Eternity: High Performance Trading Systems in C++”CppCon358K views • 9 years ago
    6. 1:22:21
      Introducing a Memory-Safe Successor Language in Large C++ Code Bases - John McCall - CppNow 2023CppNow18K views • 3 years ago
    7. 1:00:11
      CppCon 2015: Kate Gregory “Stop Teaching C"CppCon181K views • 11 years ago
    8. 1:54:00
      Can C++ be 10x Simpler & Safer? - Herb Sutter - CppCon 2022CppCon277K views • 3 years ago
    9. 1:19:52
      CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”CppCon264K views • 10 years ago
    10. 57:39
      CppCon 2016: Chandler Carruth “Garbage In, Garbage Out: Arguing about Undefined Behavior..."CppCon94K views • 10 years ago
    11. 1:33:12
      De-fragmenting C++: Making Exceptions and RTTI More Affordable and Usable - Herb Sutter CppCon 2019CppCon90K views • 7 years ago
    12. 52:01
      CppCon 2017: Louis Brandy “Curiously Recurring C++ Bugs at Facebook”CppCon158K views • 9 years ago
    13. 1:13:41
      CppCon 2014: Chandler Carruth "Efficiency with Algorithms, Performance with Data Structures"CppCon235K views • 12 years ago
    14. 1:32:33
      C++ and Beyond 2012: Herb Sutter - atomic Weapons 2 of 2alexsmail29K views • 8 years ago
    15. 1:14:22
      CppCon 2017: Fedor Pikus “C++ atomics, from basic to advanced. What do they really do?”CppCon289K views • 9 years ago
    16. 59:53
      CppCon 2019: Chandler Carruth “There Are No Zero-cost Abstractions”CppCon147K views • 7 years ago
    17. 36:10
      CppCon 2019: Emery Berger “Mesh: Automatically Compacting Your C++ Application's Memory”CppCon15K views • 7 years ago
    18. 1:15:46
      CppCon 2017: Matt Godbolt “What Has My Compiler Done for Me Lately? Unbolting the Compiler's Lid”CppCon178K views • 9 years ago
    19. 1:40:46
      CppCon 2015: Bjarne Stroustrup “Writing Good C++14”CppCon351K views • 11 years ago
    20. 1:47:45
      CppCon 2017: Herb Sutter “Meta: Thoughts on generative C++”CppCon105K views • 9 years ago

    20 comments from Hacker News

    1. @shermanyoSep 2016· in “Smart pointers and move semantics in modern C++”

      Check all of Herb Sutter's CppCon videos from 2015-2016, especially this one: this video He does a great job of walking through the thought process of deciding which of the options makes sense in different situations.

      Strongly recommendsView on HN
    2. @pjmlpJan 2020· in “Show HN: A pure reference counting GC in Go”

      On single core without threading. If you add multi-threading and multi-core, there is lock contention for every single memory access to update the related counter. Additionally, if there is a big data structure in use, reaching zero will trigger a cascade deletion events reaching stop-the-world like effect. Which, depending on how the deletion was implemented, might trigger a stack overflow in very deep structures. Herb Sutter has a very interesting talk about the bad issues of reference counting and how to work around them. CppCon 2016: Herb Sutter “Leak-Freedom in C++... By Default.” this video There are multiple ways to optimize reference counting, like deferred counting, cycle collectors and a couple of others, which when you are done with all them, ends up being quite similar to having a tracing GC anyway.

      RecommendsView on HN
    3. @pjmlpAug 2017· in “Lazarus – A Delphi-compatible cross-platform IDE”

      Reference counting isn't deterministic in the presence of large complex data structures. You will know when memory gets deleted, but not how long it will take, nor how much stack space the destructors will require to run. Enjoy Herb Sutter's "Leak-Freedom in C++... By Default." at CppCon 2016, where he explains how those issues affect C++ and goes on to implement a tracing GC. this video

      RecommendsView on HN
    4. @shermanyoSep 2016· in “Smart pointers and move semantics in modern C++”

      Herb Sutter gave a really great talk on this: this video He has 3 guidelines: 1. Prefer scoped lifetimes by default (local members) 2. Else prefer unique_ptr and containers 3. Else consider shared_ptr His whole talk gives examples that show the flexibility of unique_ptr and how modern C++ can express ownership. See slide 5 here: [LINK]

      RecommendsView on HN
    5. @pjmlpJan 2019· in “Fearless Security: Memory Safety”

      Herb Sutter has a nice talk about how RAII can cause stack overflows or stop-the-world pauses if used badly. this video

      RecommendsView on HN