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
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










