C++ Reflection Based Libraries to Look Forward To
Talkat CppCon 2024 · on Tuesday, 2024-09-17· at 09:00· Maple 3/4/5, 6700 North Gaylord Rockies Boulevard·
summary
Reflection proposal already has working compiler implementations (EDG and a Bloomberg clang fork) and the talk shows three concrete libraries prototyped on a laptop that compile and run: automatic Python bindings that loop public members and expose methods with customizations, a configurable ABI hashing scheme that walks layouts, offsets and bitfields to produce compatibility hashes, and a runtime-erased virtual any that supports attribute access and method calls (uses RTTI by default, compiles and works but is slower and needs careful lifetime and cast handling).
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:44Motivation for reflection
- 3:12Reflection vs metaprogramming
- 5:21Reflection in Python Go Java
- 8:11P2996 reflection progress
- 10:21Key features of P2996
- 13:57Reflection impact on C++
- 17:50Building reflection libraries
- 20:22Python bindings automation
- 26:07ABI hashing with reflection
- 36:57Virtual any with reflection
- 54:52Current practices without reflection
- 57:00Conclusion and future
- 57:20Q&A








