The Pains and Joys of C++ In-Process Graph Execution
summary
Shows a concrete in-process C++ task-graph runtime that registers tasks at link time, maps C++ types to compact IDs via a templated get_type_id, and exposes a task interface with run/get_future while avoiding per-task threads. Demonstrates why std::future scales poorly, how link-time registration and a global factory let the binary build the graph, and that this works for data pipelines but needs dark-magic glue and hurts composability. Mentions using Taskflow and awaiting P2300 for better composition.
AI-written summary · about
chapters (14)
- 0:00Introduction and conspiracy
- 2:11Why graphs in C++
- 3:41Portrait of our client
- 5:50Trivial approaches and futures
- 9:24Production code with futures
- 14:05Problems with futures approach
- 15:30Target state for framework
- 17:16Gadgets for implementation
- 20:28Link time registration
- 21:57Runtime type mapping
- 23:21Missing parts and type safety
- 24:43Conclusion on approach
- 25:25Teaser on execution libraries
- 26:49Final conclusions and Q&A
