~/talk

Lambdas from First Principles: A Whirlwind Tour of C++""

Talkat CppCon 2015 · 2015-09-21..09-25· [compilers-and-language-design]
slides:none on file

Claim: lambdas are just syntactic sugar over ordinary C++ constructs and compile into anonymous functor classes with the same codegen as hand‑written classes. Demonstrations use Clang disassembly to show name mangling and instantiation patterns, show surprising pitfalls (static locals per instantiation, three puzzles), and compare C++11 vs C++14 init-capture and generic lambdas. Builds anonymous closure objects ($_0), shows they avoid heap/GC, and proves the approach produces identical machine code.

AI-written summary · about

  1. 0:00Introduction to lambdas
  2. 1:28Plain old functions
  3. 8:49Member functions and operator()
  4. 13:38What is a lambda?
  5. 21:18Capture modes explained
  6. 28:01Puzzle: globals and captures
  7. 32:13Static locals in lambdas
  8. 43:43Generic lambdas
  9. 50:44Variadic lambdas
  10. 55:37Capturing parameter packs
  11. 58:12Q&A and summary
~/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.