Functional C++ - Gašper Ažman - C++Now 2024 @CppNow
Functional C++ - Gašper Ažman - C++Now 2024  @CppNow
Uploaded August 2024 | Updated December 2026, 3 hours ago
cppnow.org
---

Functional C++ - Gašper Ažman - C++Now 2024
---

The talk runs through the basic elements of functional programming, why we want to do it, and some compositional patterns.

It then switches to explain these concepts on std::optional (the Maybe monad), std::expected (the Error monad), and briefly mentions ranges. It also introduces the validation monad (a kind of std::expected with composable errors) and the Choice monad (and how it differs from std::variant). I really want to extend it to the async monad (std::execution), but I haven't given that part before.

The talk was generally well received, but I want to extend it and deepen it.

A great deal of attention is paid to examples, as I want to impress upon the audience how we can use this programming paradigm together with generic programming in c++, and what kind of support we need from the language to do it well in the future.

The desired outcome of this talk is a newfound appreciation of what c++ can be, how provable the code written in this way becomes, and why c++ can also be a reasonably good functional language, if given the right tools.
---

Slides: github.com/boostcon/cppnow_presentations_2024/blob/main/Presentations/functional-cpp.pdf


---

Gašper Ažman

Ecosystem engineer at Citadel Securities. I cultivate a diverse development ecosystem and the heavy machinery to do it.
---

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
Video Sponsors: millennium and think-cell
---

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

#boost #cpp #functionalprogramming #cppprogramming #cplusplusprogramming
Functional C++ - Gašper Ažman - C++Now 2024C++ Libraries - The Road Ahead - Jeffrey Garland - C++Now 2026The Importance of the C++ Build System Target Model - Bill Hoffman - C++Now 2024After Reflection: The Runtime Story - Saksham Sharma - C++Now 2026What Does It Take to Implement the C++ Standard Library? (C++Now Edition) Christopher Di BellaOptimizing Bishop, Rook, and Queen Move Generation in a Chess Engine - Aryan Naraghi - C++Now 2026Declarative Refactoring for the Masses in C++ - Andy Soffer - C++Now 2025Mastering the Code Review Process - Boosting C++ Code Quality in your Organization - Peter MuldoonLightning Talk: Your Very Own Godbolt - Andy Soffer - C++Now 2025Co-Designing Integrated AI-Enabled Compiler-Runtime Systems - Hartmut Kaiser - C++Now 2026std::optional — Standardizing Optionals over References - A Case Study - Steve Downey - C++Now 2025Lightning Talk: Laws of Software - Richard Powell - C++Now 2025
CppNow |

Functional C++ - Gašper Ažman - C++Now 2024

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER