~/talk

Why You Should Write Code That You Should Never Write

Talkat CppCon 2021 · on Sunday, 2021-10-24· [creative-coding]
links:none on file
slides:none on file

A collection of short C++ snippets gets dissected: one shows right fold over assignment to iterate parameter packs backwards (using fold expressions and evaluation order subtleties), another uses an immediately‑invoked lambda in a static local guarded by cxa_guard_acquire to run code exactly once across threads (and even throw to run N−1 times); demos use Compiler Explorer and assembly, point out std::call_once/std::mutex as production alternatives, note C++20 CTAD fixes and std::make_index_sequence tricks for indexing packs, with some tweets >30,000 views.

AI-written summary · about

  1. 0:00Introduction
  2. 0:34The first trick: back-folding
  3. 5:22Deep dive into fold evaluation
  4. 17:21Static local initialization
  5. 31:28Deduction guides for aggregates
  6. 40:38Parameter pack manipulation
  7. 59:12Q&A session
~/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.