~/talk

There is no silver bullet

Talkat Meeting C++ 2024 · 2024-11-14..11-16· [career-development]
slides:none on file

Claims that std::variant is not a drop-in replacement for virtual functions and that design choices beat single features. Builds three concrete solutions for a shape-drawing system: classic base-class + virtual functions, a variant-based functional approach (measured as much faster in microbenchmarks), and a value-based type-erasure wrapper that restores OOP extensibility with similar runtime cost and optional SBO. Notes template-heavy designs blow up compile times in very large codebases, advises choosing and documenting architecture with ADRs. type erasure gives value semantics and pick by dependency and extensibility needs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Simple shapes example
  3. 8:41Gang of Four patterns
  4. 13:17Replacing inheritance with std::variant
  5. 22:33Flaws in variant approach
  6. 25:19Templates to invert dependencies
  7. 28:09std::variant not silver bullet
  8. 31:40Software design in C++
  9. 34:54Progressive C++ rethink
  10. 36:47Type erasure with shape model
  11. 43:10Simplifying with type erasure
  12. 47:28Performance comparison
  13. 51:40Choosing the right solution
  14. 53:29Summary
~/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.