~/talk

Dynamic Polymorphism with Metaclasses and Code Injection

name:Sy Brand
slides:none on file

Argues that virtual inheritance can be replaced by type erasure implemented via static reflection plus code injection and metaclasses, showing a prototype built on an experimental metaclasses Clang fork (Rock3) and Composer Explorer examples. Generates per-facade vtables, clone/move helpers, and storage policies (remote, small-buffer, in-place), restoring value semantics and container friendliness while avoiding intrusive base classes; implementation works in the prototype, but compiler and runtime tradeoffs remain (compile-time cost, occasional V-table faster cases) and generated source can be emitted for tooling.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 0:29What is dynamic polymorphism
  3. 1:36Problems with inheritance
  4. 6:31Implementing virtual functions by hand
  5. 8:16Type erasure and value semantics
  6. 16:19Challenges of manual implementation
  7. 17:01Static reflection in C++
  8. 20:08Code injection overview
  9. 27:57Generating virtual functions with code injection
  10. 37:57Solving dynamic allocation with storage policies
  11. 40:29Metaclasses for dynamic polymorphism
  12. 49:18Future work and concerns
  13. 50:00Resources and closing remarks
~/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.