~/talk

Dynamic Polymorphism with Metaclasses and Code Injection

name:Sy Brand
slides:none on file

Argues that type erasure plus compile‑time code injection and metaclasses Clang fork can reproduce virtual dispatch with value semantics, configurable storage (SBO or in‑place), and generated vtables/clone/move logic, implemented as a prototype that auto‑injects function pointers from a facade and removes intrusive inheritance and external owning pointers. Shows working code on Compiler Explorer and GitHub. Remaining costs include compile‑time overhead and some runtime cases where traditional vtables outperform generated function‑pointer call patterns.

AI-written summary · about

  1. 0:00Intro
  2. 0:11What is polymorphism
  3. 0:31Types of polymorphism
  4. 2:13Dynamic allocation
  5. 3:37Ownership
  6. 6:35Hierarchy
  7. 9:50Vtable
  8. 10:36Template
  9. 13:42Recap
  10. 15:11Value Semantics
  11. 18:21Static Reflection
  12. 18:55Scalable Reflection
  13. 22:06Code Injection
  14. 27:27Type Class for Template
  15. 29:28Code Injection Algorithm
  16. 34:11Forwarding Calls
  17. 42:14Runtime Performance
~/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.