How To Build Robust C++ Inter-Process Queues - Jody Hagins - CppCon 2025
https://cppcon.org --- How To Build Robust C++ Inter-Process Queues - Jody Hagins - CppCon 2025 --- This talk will offer design and implementation details of a queue intended to be used between multiple processes. The C++ standard was written with a single-process worldview, mentioning processes only once—in a note stating that lock-free atomic operations work across process boundaries. This has led to widespread but incorrect advice about using std::atomic in shared memory. When moving queue implementations from threads to processes, seemingly rock-solid code can induce undefined behavior. In addition, traditional queue interfaces are fundamentally insufficient for cross-process communication. A properly designed inter-process queue API must enforce role separation, ensuring that a process can only perform operations appropriate to its designated role. For example, a producer process should not be able to consume messages or manage the queue itself, and the API should prevent multiple processes from accidentally assuming the same role in a single-producer design. By the end of this talk, you will understand the fundamental differences between thread process synchronization, how to design proper interfaces for interprocess queues that enforce correct usage across process boundaries, and practical techniques to ensure your cross-process code works reliably in production environments. Oh yeah, and you will have a full implementation that you can use and improve upon. --- Slides: https://github.com/CppCon/CppCon2025/... Work at Hudson River Trading (HRT): https://tinyurl.com/safxfctf --- Jody Hagins Jody Hagins has been using C++ for the better part of four decades. He remains amazed at how much he does not know after all those years. He has spent most of that time designing and building systems in C++, for use in the high frequency trading space. --- CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts. Annual CppCon Conference - https://www.cppcon.org / cppcon https://x.com/cppcon / cppconference / cppcon https://mastodon.social/@CppCon --- Videos Filmed & Edited by Bash Films: http://www.BashFilms.com YouTube Channel Managed by Digital Medium Ltd: https://events.digital-medium.co.uk --- #cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer

The Hidden Power of C++23 std::stacktrace for Faster Debugging & Exception Handling - Erez Strauss

API Structure and Technique: Learnings from C++ Code Review - Ben Deane - CppCon 2025

Concept-based Generic Programming - Bjarne Stroustrup - CppCon 2025

Practical Reflection With C++26 - Barry Revzin - CppCon 2025

Back to Basics: Custom Allocators Explained - From Basics to Advanced - Kevin Carpenter - CppCon

The World's Best Stock Market Is Also Crashing!

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

The Joy of C++26 Contracts - Myths, Misconceptions & Defensive Programming - Herb Sutter

China quietly saved the world last month

Back to Basics: C++ Concepts - Jeff Garland - CppCon 2025

Threads vs Coroutines — Why C++ Has Two Concurrency Models - Conor Spilsbury - CppCon 2025

C++ Performance Tips: Cutting Down on Unnecessary Objects - Prithvi Okade & Kathleen Baker - CppCon

Lohnt sich Maschinenbau in Deutschland noch? Prof besucht seine Studienabbrecher

The (Overdue) Collapse of Bullsh*t Companies

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

Lazy and Fast: Ranges Meet Parallelism in C++ - Daniel Anderson - CppCon 2025

Is The Future of C++ Refactoring Declarative? - Andy Soffer - CppCon 2025

CMake Doesn't Have to Be Painful | Simple Strategies That Work - Bret Brown - CppCon 2025

China Is About To Pop The AI Bubble

