~/talk

Boost Your Intra-Process Communication Programs With C++20 & Contract-Concept-Implementation Pattern

Talkat CppCon 2024 · on Sunday, 2024-09-15· [rust]
links:none on file
slides:none on file

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

  1. 0:00Introduction to CCI
  2. 2:35The IPC problem
  3. 7:53Implementing the CCI pattern
  4. 17:06Handling D-Bus error structs
  5. 25:45Simplifying method calls
  6. 30:13Designing a class with CCI
  7. 37:37Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.