Reflect -this! - Design and Implementation of a Pragmatic Mixin Library with Static Reflection
Offered By: CppNow via YouTube
Course Description
Overview
Explore the design and implementation of a pragmatic mixin library with static reflection in this comprehensive conference talk from CppNow 2023. Dive deep into the technical details of implementing a reflection-based mixin library, building upon ideas from existing libraries like BOOST_FUSION_DEFINE_STRUCT and Boost.PFR. Learn about specifying custom mixins, managing mixin dependencies, and supporting both aggregate and non-aggregate types. Examine the design choices, tradeoffs, and future possibilities for mixin libraries in C++, including potential benefits from upcoming language versions. Gain insights into building powerful libraries and tools for enhancing developer productivity through mixins for features like hashing, serialization, and debug-printing.
Syllabus
Intro
How not to design dinosaurs
Whats a mixin
Design priorities
Design techniques
Python mixins
Rust mixins
C mixins
Tuple Define Structure
BoostPFR
Usage Library
Usage Library in a Class
Equality Extension
Using Declaration
Homework
Baseline
Understandability
Summary
Evolution
Understanding
Taught by
CppNow
Related Courses
Your Favorite Undefined Behavior in C++CppNow via YouTube Under the Hood - Assembly, System Calls, and Hardware in C++
CppNow via YouTube Carbon Language Successor Strategy - From C++ Interop to Memory Safety
CppNow via YouTube Value Oriented Programming Part 1 - You Say You Want to Write a Function
CppNow via YouTube Introducing a Memory-Safe Successor Language in Large C++ Code Bases
CppNow via YouTube