~/talk

Beautiful C++ Code - Told Through the Eyes of A Failed AI Prompt

Talkat C++Now 2026 · 2026-05-04..05-08· [ai-assisted-development]
links:none on file
slides:none on file

Recreates a production message-passing channel by iterating prompts to an unnamed AI assistant, ending with a working C++ design that emphasizes single-receiver, multi-sender semantics, type erasure via message base instead of std::variant or std::any, and a priority/scheduled queue for timers. Implementation centralizes mutex/condition-variable logic to avoid unlocking-before-callback bugs, swaps out shared reference counting for a closed-queue shutdown, uses dynamic_cast for dispatch, targets C++17/C++20 features, and exposes the concrete trade-offs that make the original robust.

AI-written summary · about

  1. 0:00Introduction
  2. 2:06System requirements and abstraction
  3. 9:02Recreating with AI
  4. 12:10Prompt history loss
  5. 19:30Refining AI prompt
  6. 23:22Rust sender/receiver classes
  7. 29:03Type-agnostic abstraction
  8. 31:31Template meta-programming
  9. 35:04Sender tracking complexities
  10. 38:57Code cleanup
  11. 41:44Synchronization challenges
  12. 45:38Removing reference counting
  13. 47:02AI limitations
  14. 50:36Conclusion 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.