~/talk

External Polymorphism and C++ Type Erasure - A Very Useful Dance of Design Patterns

Talkat C++Online 2025 · 2025-02-26..02-28· [c-and-cpp, software-architecture]
slides:none on file

Claims that external polymorphism plus type erasure beats inheritance+virtual on speed and flexibility, with microbenchmarks and production code proving better performance than inheritance + virtual. Presents a reusable framework that implements a configurable Value Manager to choose small-buffer, shared-pointer or heap policies, supports move-only targets, reduces template bloat and preserves value semantics, and shows mature production usage and measurable codegen and runtime wins.

AI-written summary · about

  1. 0:00Introduction and objective
  2. 4:40Understanding substitutability
  3. 10:52Pains of subclassing
  4. 15:54Referential semantics problems
  5. 20:31External polymorphism approach
  6. 26:30Type erasure mechanics
  7. 32:25Critique of std::function
  8. 40:00Designing better frameworks
  9. 48:29Internal-external dance
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.