~/talk

Universal Memoization Decorator

Talkat CppCon 2017 · 2017-09-24..09-29· [developer-experience]
links:none on file
slides:none on file

A generic C++ decorator implements universal memoization by turning a function into a cached callable using a key built from decayed arguments and a container with get/set semantics (get returns pointer or null, set updates). It relies on a function-pointer-as-template-value trick so each instantiation gets a static cache per-instantiation, supports decorating recursive functions, and allows interchangeable containers (hash maps, LRU) plus concurrency strategies like mutexes or thread_local copies.

AI-written summary · about

  1. 0:00Intro
  2. 0:28Python
  3. 1:06Cache container
  4. 2:04What about collisions?
  5. 2:59Building the decorator
  6. 4:11Fibonacci Example
  7. 4:24What's left behind
~/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.