~/talk

Breaking Dependencies: type erasure - a design analysis

Talkat Meeting C++ 2021 · 2021-11-10..11-12· [rust]
slides:none on file

Argues that type erasure measurably breaks artificial dependencies by replacing deep inheritance with a wrapper that has a templated constructor and a non-virtual interface and that it composes external polymorphism, the bridge and the prototype clone. Demonstrates a concrete shape type: private shape_concept/shape_model pimpl, free draw/serialize functions, vector<shape> value semantics and fewer pointers, shows copying via clone and points to storage policies for improved performance and reduced allocations.

AI-written summary · about

  1. 0:00Introduction
  2. 2:41Change
  3. 3:25Dependencies
  4. 4:39The toy problem
  5. 5:38The shape hierarchy
  6. 9:05Using inheritance naively
  7. 10:11What do we do
  8. 10:26Design patterns
  9. 12:13Strategy design pattern
  10. 16:05glcolor
  11. 18:14draw square
  12. 18:56opengl strategy
  13. 20:12design analysis
  14. 25:59inheritance
  15. 26:23type erasure
  16. 26:54type ratio
  17. 28:34representation
  18. 28:59circle
  19. 29:45no dependency
  20. 31:05operations
  21. 31:21requirements
  22. 32:45draw strategy
  23. 33:49design pattern
  24. 34:48drawing
  25. 35:37functions
  26. 36:24shape concepts
  27. 36:35shape model
  28. 38:58private
  29. 39:38templated
  30. 40:43constructor
  31. 41:06bridge
  32. 42:10member functions
  33. 44:23prototype
  34. 45:56drawshape
  35. 46:30shapes
  36. 47:54the design analysis
  37. 49:50eric nebla
  38. 52:43one idea
  39. 53:28other talks
  40. 54:06can you save all the trouble
  41. 54:30summary
  42. 56:14training
  43. 56:31QA
~/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.