Let's make a library that uses Reflection
summary
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
chapters (12)
- 0:00Reflection in C++ intro
- 3:14Current reflection state
- 9:41Reflection workarounds
- 17:05Third-party reflection libs
- 28:54Serialization and deserialization fundamentals
- 38:26Serialization challenges
- 41:22Compile-time serialization design
- 45:19Testing reflection with compiler
- 47:48Building OK serializer
- 56:41Adding reflection to serialization
- 1:05:36JSON with reflection
- 1:08:06Reflection and serialization future
related talks
36mCompile-time reflection, Serialization and ORM
46mBuilding a C++ Reflection System in One Weekend Using Clang and LLVM
01h 10mReflection Is Good for C++ Code Health
01h 27mC++ Reflection - Back on Track
01h 08mReflections: Compile-time Introspection of Source Code
01h 01mReflection
01h 34mKeynote: Reflection Is Only Half the Story
01h 04mWelcome to v1.0 of the meta::[[verse]]!
