~/talk

Fast and Small - What are the Costs of Language Features

Talkat NDC Oslo 2017 · 2017-06-14..06-16· [c-and-cpp]
slides:none on file

Examines concrete costs and compiler behavior for modern C++ features with code-level effects and fixes: auto and decltype(auto) are compile-time only but braced initialization can yield unexpected references, range-for always caches end and uses pre-increment so it avoids per-iteration calls, lambdas become compiler-generated classes whose size grows with captures and unused captures are optimized away, structured bindings create a hidden temporary then reference its members, and function-local statics get runtime guards (atomics/locks) only for non-trivial ctors.

AI-written summary · about

  1. 0:00Introduction to C++ costs
  2. 2:48The auto keyword
  3. 6:01Decltype and auto
  4. 10:06Macro pitfalls
  5. 16:19Range-based for loops
  6. 22:07Loop internals and C++14
  7. 25:55Lambda expressions
  8. 34:25Structured bindings
  9. 43:07Static variable safety
~/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.