C++ Coroutines and Structured Concurrency in Practice - Dmitry Prokoptsev - C++Now 2024 @CppNow
C++ Coroutines and Structured Concurrency in Practice - Dmitry Prokoptsev - C++Now 2024  @CppNow
Uploaded August 2024 | Updated December 2026, 2 hours ago
cppnow.org
---

C++ Coroutines and Structured Concurrency in Practice - Dmitry Prokoptsev - C++Now 2024
---

C++20 coroutines present some exciting opportunities for organizing and simplifying concurrent logic, but they have proven challenging to integrate with production systems. Object lifetime and execution order issues can be difficult to manage, especially without guidance from well-established best practices. Practical use requires interoperability with existing event loops and with non-coroutine-aware components. While some experimental libraries have started to be released, the C++ “async ecosystem” is still young compared to many other languages.

We will describe our path through this thicket and introduce Corral, a new open-source concurrency framework for C++ that attempts to tame it. Corral is built around structured concurrency principles, so lifetimes and control flow are easier to reason about. It does not provide any opinionated I/O layer, so it can work with the one you’re already using, or with a standard such as Boost.Asio. We have ported a number of our I/O-bound production processes to use this system, and have found the modernized versions to be substantially simpler with fewer weird bugs.

This talk is geared towards C++ developers who have some familiarity with coroutines but have found them challenging to work with. We will delve into the architectural design of our framework, offering insights that may be useful to others with similar needs. Special emphasis will be placed on practical aspects such as task cancellation, timeouts, and integration with legacy code. We will also share a few design patterns we’ve discovered after two years of production use.
---

Slides: github.com/boostcon/cppnow_presentations_2024/blob/main/Presentations/Coroutines_and_Structured_Concurrency_in_Practice.pdf


---

Dmitry Prokoptsev

Dmitry has been using C++ in his routine work for 17 years, mostly focusing on complex asynchronous I/O-bound applications. After working in companies like Yandex and Google, he joined Hudson River Trading, a quantitative trading firm in New York, where he develops and improves research infrastructure, and also keeps people entertained by bringing last additions to C++ to the code base.
---

C++Now 2025 - 28th April - 2nd May
C++Now is an annual onsite international C++ programming and coding conference held in Aspen, Colarado. For all C++ developers, C++ software engineers and those involved with the C++ language, CppNow provides an indepth and technical content provided by the best and brightest C++ experts of the C++ world.
Annual CppNow Conference - cppnow.org
linkedin.com/company/cppnow
twitter.com/cppnow
facebook.com/CppNow
reddit.com/r/CppNow
https://mastodon.social/@cppnow
think-cell develops one of the world’s leading PowerPoint applications, with C++ at the core of everything we build, from layout algorithms to deep integration with Microsoft Office. Interested in working on challenging C++ problems with real-world impact? Explore our open roles: think-cell.com/en/career/tech
---

Videos Filmed & Edited By Bash Films: bashfilms.com
YouTube Channel Managed & Optimized By Digital Medium Ltd: events.digital-medium.co.uk
---

#boost #cpp #concurrency #cplusplus #cppprogramming
C++ Coroutines and Structured Concurrency in Practice - Dmitry Prokoptsev - C++Now 2024Value Oriented Programming Part V - Return of the Values - Tony Van Eerd - C++Now 2024Link What You Include - Maintain a Coherent CMake Target Model - Frank Miller - C++Now 2026Keynote: C++ Painkillers for C++ Developers - The Evolution of C++ Tooling - Anastasia KazakovaSecurity in C++ - Hardening Techniques From the Trenches - Louis Dionne - C++Now 2024Reintroduction to Generic Programming for C++ Engineers - Nick DeMarco - C++Now 2024import CMake; // Mastering C++ Modules - Marching Towards Standard C++ Dependency ManagementLightning Talk: Run-time Template Parameters - Sort Of - Braden Ganetsky - C++Now 2026Algorithms for Trees - Foldable, Applicative, Traversable - Steve Downey - C++Now 2026Growing Your Toolkit From Refactoring to Automated Migrations - Matt Kulukundis - C++Now 2025Fast Conversion From Cpp Floating Point Numbers - Cassio Neri - C++Now 2024Implementing the C++ Standard Library Proposal for any_view - Patrick Roberts - C++Now 2025
CppNow |

C++ Coroutines and Structured Concurrency in Practice - Dmitry Prokoptsev - C++Now 2024

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER