~/talk

“Leak-Freedom in C++... By Default.”

Talkat CppCon 2016 · 2016-09-18..09-23· [c-and-cpp]
slides:none on file

Argues a concrete, prioritized rule set: prefer scoped lifetime (stack or member), otherwise use unique_ptr then shared_ptr and avoid explicit delete and cross-module ownership cycles; shows exact patterns — const unique_ptr for pimpl, vector<unique_ptr> children with raw parent pointer for trees, iterative destruction to avoid stack overflow, shared_ptr+weak for caches and DAGs. Presents a working experiment, a deferred heap prototype on GitHub where collect runs destructors to reclaim cyclic graphs; prototype attracted several PRs and a small puzzle showed ~10/100 correct solutions.

AI-written summary · about

  1. 0:00Introduction and guidelines
  2. 2:04Three rules of leak freedom
  3. 5:40Applying the rules
  4. 11:14Tree structures and recursion
  5. 16:54Iterative destruction
  6. 22:37Linked lists and unique ownership
  7. 26:45Graphs and shared ownership
  8. 31:21Factories and cyclic ownership
  9. 36:52Handling ownership cycles
  10. 42:28Manual graph management
  11. 50:24Mark-and-sweep traversal
  12. 55:52Final recap and Q&A
  13. 59:16Experimental deferred heap
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.