~/lightning

Lightning Talk: Cute Approach for Polymorphism in C++

Lightningat CppCon 2022 · 2022-09-11..09-16· [frontend-architecture]
links:none on file
slides:none on file

Claims a concrete pattern: replace per-element virtual calls with one virtual call per vector by making the virtual method take a span of many elements, implement per-element work in a nonvirtual method, and provide a CRTP-style templated handler layer that iterates the span and calls the derived per-element routine. Compares to a Concepts+variant approach that forces recompiles, targets millions/billions of items, and reports restored bandwidth and encapsulation with minimal runtime overhead.

AI-written summary · about

  1. 0:00Start
  2. 0:11The task
  3. 0:36Simplest solution: Inheritance
  4. 3:10A different approach: virtual on aggregation
  5. 4:19My approach
~/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.