~/talk

If you're arguing, you're losing

Talkat C++Now 2017 · 2017-05-15..05-20· [c-and-cpp]
links:none on file
slides:none on file

Claim: call functions without arguments by moving data out of the parameter list. Demonstrates five concrete approaches: globals (then thread-safe globals), objects and lambdas that capture local state, manual stack push/pop, and template-injected function pointers as hidden parameters. Provides code examples and slides, shows each approach compiling and producing the expected output, and treats it as a thought experiment about tradeoffs in safety, threadability, and clarity rather than a single recommended pattern.

AI-written summary · about

  1. 0:00Start
  2. 1:53Attempt 1.1: Nicer Globals?
  3. 2:05Objectify
  4. 2:34Lambda
  5. 2:57Roll your own?
  6. 3:25Attempt 3: Templates
~/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.