~/talk

Reflection Is Good for C++ Code Health

Talkat C++Now 2024 · 2024-04-29..05-03· [compilers-and-language-design]
links:none on file
slides:none on file

C++ gains a compile‑time reflection proposal (P2996R1) with two working implementations (EDG and a Bloomberg clang fork) and a new value‑based API (carrot lift, splice, define_class). The presenter builds three libraries: automatic Python bindings by looping reflected members (works on an experimental compiler), a recursive ABI hashing scheme that hashes member names, offsets and layout (prototype runs and shows sensible behavior), and a duck‑typed virtual any that exposes members/callables via reflection; examples compile and run on a laptop but customization and attributes remain missing.

AI-written summary · about

  1. 0:00Introduction to reflection
  2. 2:30What is reflection?
  3. 5:24Reflection in other languages
  4. 10:15C++ static reflection proposal
  5. 15:33Practical reflection examples
  6. 22:28Type information design
  7. 26:06Python bindings library
  8. 35:33ABI hashing and compatibility
  9. 52:06Virtual any for duck typing
  10. 1:03:32Reflection alternatives 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.