Boost Your Intra-Process Communication Programs With C++20 & Contract-Concept-Implementation Pattern
summary
Claims a concrete pattern: Concept-Constraint-Implementation (CCI) pattern plus C++20 concepts wrap low-level sdbus IPC calls into types that enforce lifetimes, service-name formats, and automatic DBus signatures. Example reworks an image channel-extraction service (file path, save path, channel) into constrained types, removes manual signature strings, and catches many errors at compile time. A microbenchmark compiles a constexpr path into two assembly instructions. Pattern reduces runtime faults but admits some checks must remain at runtime and is not universally appropriate.
AI-written summary · about
chapters (7)
- 0:00Introduction to CCI
- 2:35The IPC problem
- 7:53Implementing the CCI pattern
- 17:06Handling D-Bus error structs
- 25:45Simplifying method calls
- 30:13Designing a class with CCI
- 37:37Conclusion and Q&A
related talks
01h 01mthe Concepts of concepts
01h 30mC++ in Constrained Environments
59mConcepts driven design
01h 03mWriting sustainable software. The how and the what!
01h 01mthe Concepts of concepts
56mConcepts - Evolution or Revolution
12mGood Concepts
43mHow to stop fighting with coherence and star writing context-generic trait impls
