~/talk

Let's make a library that uses Reflection

Talkat Meeting C++ 2023 · 2023-11-12..11-14· [compilers-and-language-design]
links:none on file
slides:none on file

Claims that a full C++ class can be (de)serialized into a string with one line using Reflection and C++23 on experimental compilers and demonstrates it by building the ok-serializer library. Uses a mirror/reflection implementation and C++23 features, targets embedded constraints (no exceptions, no dynamic allocation) and returns errors via std::expected. Shows JSON and binary outputs, runs static_asserts so serialization happens compile-time, and the prototype works on the tested compiler builds.

AI-written summary · about

  1. 0:00Reflection in C++ intro
  2. 3:14Current reflection state
  3. 9:41Reflection workarounds
  4. 17:05Third-party reflection libs
  5. 28:54Serialization and deserialization fundamentals
  6. 38:26Serialization challenges
  7. 41:22Compile-time serialization design
  8. 45:19Testing reflection with compiler
  9. 47:48Building OK serializer
  10. 56:41Adding reflection to serialization
  11. 1:05:36JSON with reflection
  12. 1:08:06Reflection and serialization future
~/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.