~/talk

Writing a reflection engine from scratch

Talkat Meeting C++ 2016 · 2016-11-18..11-19· [rust]
links:none on file
slides:none on file

Goal is to produce both static and dynamic C++ reflection in about one hour using libclang Python bindings to parse headers and a jinja-like generator to emit per-header generated metadata. The result is template-metaprogramming static queries, a runtime entity registry with dynamic plugin loading, and working JSON + protobuf serializers that mapped ~2000 protobuf files in a real codebase. It compiles and runs as a proof‑of‑concept but omits template instantiations and versioning and shows nontrivial compile‑time costs for string-based type keys.

AI-written summary · about

  1. 0:00Start
  2. 2:31Dynamic Reflection
  3. 4:58Collecting Metadata
  4. 7:18Hello World Program with Python
  5. 13:30Delete C + + Code
  6. 14:04Format of the Generated Code
  7. 15:20Metadata Format
  8. 19:11Vision Api
  9. 22:19Genetic Code
  10. 28:02Object Serialization
  11. 30:24Google Port Whopper Mapping
  12. 32:19Algorithm
  13. 38:57User Code
  14. 39:26Animations
  15. 46:06Runtime Api
  16. 48:05Write a Dynamic Type System
  17. 49:09Maintenance
  18. 50:01Third-Party Management
  19. 51:32Compilation Time Impact
  20. 54:46Support Versioning
~/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.