~/talk

C++ Reflection Is Not Contemplation

slides:none on file

Argues that reflection without generation is useless and demonstrates concrete primitives that actually produce code: a two-line property specification expands into six working lines at compile time; a token-sequence design called token strings preserves macros and preprocessor expansion; a deferred injection primitive q_inject splices tokens into declaration contexts. Shows spec and AST APIs exist, notes a D-style string injection works, highlights identity-as-killer-app for cloning types and templates, and reports AI generated a 450-line std::vector clone in about nine seconds.

AI-written summary · about

  1. 0:00Introduction
  2. 1:20The reflection problem
  3. 2:34Evolution of programming
  4. 5:36Code generation goals
  5. 9:17Property generation example
  6. 12:13Generating identifiers
  7. 13:29Splicing models comparison
  8. 20:27Token sequences
  9. 25:57Escapes and injection
  10. 27:38Property generation revisited
  11. 28:23Syntax and implementation
  12. 31:19Comparing APIs
  13. 32:44The role of identity
  14. 35:10Ship of Theseus paradox
  15. 37:41Identity function
  16. 43:39Min and Max functions
  17. 45:07Cloning types
  18. 47:08Cloning templates
  19. 49:04Future plans
  20. 51:31AI and reflection
  21. 55:15AI impact and Q&A
~/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.