~/talk

Compile-time reflection, Serialization and ORM

Talkat CppCon 2017 · 2017-09-24..09-29· [compilers-and-language-design, databases]
name:Yu Qi
links:none on file
slides:none on file

Describes implementing compile-time reflection in Modern C++ using void_t, tuple, index_sequence, variadic templates, constexpr, macros and C++17 features; claims a compact <500-line library versus boost.hana’s ~3,000 lines, auto-generates metadata via macros, serializes structs to JSON/XML/MessagePack, builds a working ORM that generates SQL and maps rows to objects, supports up to 120 fields, and notes limits: no private members or member functions and lambda captures are not reflected.

AI-written summary · about

  1. 0:00Introduction
  2. 0:42What is reflection
  3. 3:18Benefits of reflection
  4. 4:09Compile-time reflection implementation
  5. 11:42Defining metadata for reflection
  6. 17:00Automating metadata with macros
  7. 20:22Reflection limitations and proposals
  8. 25:18Applications in serialization
  9. 28:31ORM library with reflection
  10. 31:14Future prospects of reflection
  11. 33:29Q&A session
~/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.