~/talk

Reflection in C++ - Past, Present, and Hopeful Future

Talkat CppCon 2022 · 2022-09-11..09-16· [large-language-models]
slides:none on file

Claim: C++ gains usable compile‑time reflection that turns types into manipulable values and back, enabling concrete features: std::meta value APIs, a template‑for iterator that must not introduce a new scope, and algorithm‑selection that emits either switch or cascaded ifs. Examples built include a tainted string wrapper (700 lines avoided), a traced container that forwards every method, and grammar‑to‑parser generation; limitations shown are scope introduced by if consteval and missing insertion/compile‑time code emission addressed by proposal P1240.

AI-written summary · about

  1. 0:00Introduction
  2. 2:43What is reflection
  3. 5:05Design by reflection
  4. 9:03Million Lines of Code Challenge
  5. 13:41Templates
  6. 16:49String Types
  7. 18:35Constructors
  8. 20:29The Verdict
  9. 23:22Container adapters
  10. 24:29Container independent code
  11. 24:59Powerset interfaces
  12. 31:29History of Reflection
  13. 36:01Static Reflection
  14. 43:37D Reflection Applications
  15. 46:10Code Example
  16. 46:24Language Changes
  17. 48:53Example
  18. 53:01Runtime Switch
  19. 54:21Algorithm Selection
  20. 58:34STD Meta
~/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.