DynaMix: A New Take on Polymorphism in C++
summary
A C++ library that actually composes and mutates objects at runtime: objects, dynamic mixins, and unicast/multicast messages form the API, with mixins registering global-function–style messages rather than using CRTP or a huge virtual base. Demo builds a dragon, adds and removes hostile AI and player-controller mixins on the fly, and calls act to show behavior swaps. Priorities let one mixin override unicast handlers; multicast runs all implementers. Hosted on GitHub.
AI-written summary · about
chapters (5)
related talks
01h 01mC++ Mixins
01h 18mMeta Polymorphism
05mLightning Talk: Is Polymorphism in C++ Really That Bad?
01h 05mExpressing Implementation Sameness and Similarity - Polymorphism in Modern C++
01h 03mMeta Techniques: Heterogeneous Polymorphism & Fast Prototyping at Facebook
50mFunctional reactive programming in C++
01h 03mPolicy-based design in C++20
08mLightning Talk: C++ and Rust Bindings - Mixing It Best With CMake
