Can std::expected with Monadic Operations REALLY Boost Your C++ Code Performance? - Vitaly Fanaskov @CppCon
Can std::expected with Monadic Operations REALLY Boost Your C++ Code Performance? - Vitaly Fanaskov  @CppCon
Uploaded December 2025 | Updated September 2026, 2 weeks ago
cppcon.org
---

Can std::expected with Monadic Operations REALLY Boost Your C++ Code Performance? - Vitaly Fanaskov - CppCon 2025
---

Monadic operations offer a powerful way to build safer, more maintainable code while reducing boilerplate. However, many software engineers remain hesitant to adopt them. There are two main reasons for this: unfamiliar syntax and potential performance penalty. Whereas the first issue is more individual, the second one is general. Let’s have a look at it together! In this talk, we'll explore the implementation details of std::expected, explore techniques for decomposing code, and demonstrate how to leverage copy elision to avoid unnecessary resource allocations. I'll compare the performance of a monadic interface with traditional approaches, including exceptions and return codes, using real-world production code samples to highlight common usage patterns. This talk will be useful for software engineers interested in adopting std::expected but cautious about the performance implications and want to learn how to optimise their code effectively.

---

Slides: github.com/CppCon/CppCon2025/blob/main/Presentations/Performance_of_std_expected_with_Monadic_Operations.pdf

Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---

Vitaly Fanaskov

Vitaly Fanaskov is a principal software engineer at reMarkable. He has been designing and developing software using C++ and some other languages for over 10 years. Primary areas of interest are design and development of frameworks and libraries, modern programming languages, and functional programming. Vitaly holds a PhD in Computer Science from the Moscow State Mining University.
---


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 - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---

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

#cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer
Can std::expected with Monadic Operations REALLY Boost Your C++ Code Performance? - Vitaly FanaskovModern C++ Development: Limitations and Problems in std::function and Similar Constructs - CppCon 24Lightning Talk: Causal Inference for Code Writing AI - Matt K Robinson - CppCon 2025API Structure and Technique: Learnings from C++ Code Review - Ben Deane - CppCon 2025Networks in C++ - Whats Actually Changing? - Ignas Bagdonas - CppCon 2025The Hidden Power of C++23 std::stacktrace for Faster Debugging & Exception Handling - Erez StraussLightning Talk: A Pack as an Optional Parameter - Braden Ganetsky - CppCon 2025The Truth About Being a Programmer CEO - Greg Law - CppCon 2025Announcing CppCon 2025 - Join C++ Developers, C++ Programmers and C++ Experts for the C++ ConferenceLightning Talk: Understanding Data Dependency Chains - Makar Kuznietsov - CppCon 2025CTRACK: C++ Performance Tracking and Bottleneck Discovery - Grischa Hauser - CppCon 2025How to Quickly Convert Floating-Point Numbers in C++ - Cassio Neri - CppCon 2024
CppCon |

Can std::expected with Monadic Operations REALLY Boost Your C++ Code Performance? - Vitaly Fanaskov

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER