“Agent based class design”
summary
Proposes decomposing classes into small agents that publish capabilities and requirements and uses C++14 template metaprogramming to auto-wire them so valid combos produce zero-cost, statically linked objects. Implements a compose/arena model and a tiny TMP library to make assembly fast enough; embedded driver examples compile to about 10× smaller flash and save RAM versus vendor C code. Proof-of-concept widgets, UART and text-conversion agents exist, shared_ptr decomposition is sketched but not yet fully implemented.
AI-written summary · about
chapters (21)
- 0:00Introduction and context
- 0:31The philantropy of being a nerd
- 2:11Self-taught engineering
- 3:06Problems with shared pointer
- 6:13Decomposing shared pointer
- 8:48Limitations of Qt layout
- 12:35Template metaprogramming
- 13:45Embedded driver examples
- 15:38Policy based class design
- 19:25Agent based class design
- 22:30Implementing agents
- 26:37Composition and factories
- 28:40Unicorn call syntax
- 31:22Two-phase initialization
- 33:06Practical examples
- 36:50Drivers and autobaud
- 40:33Future of agent design
- 43:30Statically linking widgets
- 46:09Reflection and serialization
- 50:00Solving construction problems
- 53:30Conclusion and Q&A
related talks
01h 28mModern C++ Design reloaded
40mBuilding Effective AI Agents Simple, Composable Patterns
01h 16mPolymorphism, Cohesion, and Coupling in C++
45mAI agents in practice - beyond the prototype
05mConcept Driven Design with Dependency Injection
26mHow to Build and Govern Production-Grade Multi-Agent Systems
01h 00mDynamic Polymorphism with Metaclasses and Code Injection
01h 07mDesign Patterns in Modern C++
