Uploaded July 2026 | Updated December 2026, 3 hours ago
https://www.cppnow.org
---
Beautiful C++ Code - Told Through the Eyes of A Failed AI Prompt - Erich Lohrmann - C++Now 2026
---
A production message-passing abstraction has quietly powered a large C++ system for years. Most developers use its API daily. Very few understand the machinery underneath.
Its longevity comes from a dense combination of advanced C++ techniques: controlled friendship, type erasure, subtle inheritance structures, carefully engineered destructor ordering and clever operator overloading. The surface is simple; the implementation is anything but.
In this talk, we attempt to recreate the abstraction from scratch using an AI assistant. The initial results are clean, plausible and fundamentally simpler than the production design. By iteratively refining prompts, we guide the AI toward the nuanced trade-offs that make the real system robust and performant.
This process produces something remarkable: a compressed reenactment of the abstraction’s evolution. By contrasting naïve implementations with the final design, we expose the hidden decisions and constraints that expert-level C++ encodes.
This talk uses AI, in a novel way, as a lens to illuminate advanced C++ design. And to better understand why beautiful abstractions are built the way they are.
---
Slides: github.com/boostcon/cppnow_presentations_2026/blob/main/Presentations/Beautiful_Cpp_Code.pptx
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
---
Erich Lohrmann
Erich Lohrmann is a software engineer at General Dynamics Mission Systems, where he specializes in building high-performance, low-latency systems. Previously, he served as a research engineer at the Georgia Tech Research Institute, contributing to the development of next-generation technologies.
His experience spans the design and implementation of large-scale server applications as well as advanced embedded systems. He holds a Master of Science in Computer Science from the Georgia Institute of Technology, earned in May 2018. His professional interests include the research and development of state-of-the-art operating systems, embedded platforms, and distributed systems.
Erich primarily works in C++ and Rust, focusing on creating robust abstractions that enforce correct usage and minimize the risk of misuse by other developers. His work emphasizes reliability and maintainability in complex, distributed application environments.
---
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: Bloomberg
---
Videos Filmed & Edited By Bash Films: bashfilms.com
YouTube Channel Managed & Optimized By Digital Medium Ltd: events.digital-medium.co.uk
---
#boost #cpp #cplusplus #programming #coding #softwareengineering #softwaredeveloper #code #cplusplusprogramming #cplusplustutorial #cplus #softwaredevelopment #coder #talk
https://www.cppnow.org
---
Beautiful C++ Code - Told Through the Eyes of A Failed AI Prompt - Erich Lohrmann - C++Now 2026
---
A production message-passing abstraction has quietly powered a large C++ system for years. Most developers use its API daily. Very few understand the machinery underneath.
Its longevity comes from a dense combination of advanced C++ techniques: controlled friendship, type erasure, subtle inheritance structures, carefully engineered destructor ordering and clever operator overloading. The surface is simple; the implementation is anything but.
In this talk, we attempt to recreate the abstraction from scratch using an AI assistant. The initial results are clean, plausible and fundamentally simpler than the production design. By iteratively refining prompts, we guide the AI toward the nuanced trade-offs that make the real system robust and performant.
This process produces something remarkable: a compressed reenactment of the abstraction’s evolution. By contrasting naïve implementations with the final design, we expose the hidden decisions and constraints that expert-level C++ encodes.
This talk uses AI, in a novel way, as a lens to illuminate advanced C++ design. And to better understand why beautiful abstractions are built the way they are.
---
Slides: github.com/boostcon/cppnow_presentations_2026/blob/main/Presentations/Beautiful_Cpp_Code.pptx
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
---
Erich Lohrmann
Erich Lohrmann is a software engineer at General Dynamics Mission Systems, where he specializes in building high-performance, low-latency systems. Previously, he served as a research engineer at the Georgia Tech Research Institute, contributing to the development of next-generation technologies.
His experience spans the design and implementation of large-scale server applications as well as advanced embedded systems. He holds a Master of Science in Computer Science from the Georgia Institute of Technology, earned in May 2018. His professional interests include the research and development of state-of-the-art operating systems, embedded platforms, and distributed systems.
Erich primarily works in C++ and Rust, focusing on creating robust abstractions that enforce correct usage and minimize the risk of misuse by other developers. His work emphasizes reliability and maintainability in complex, distributed application environments.
---
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: Bloomberg
---
Videos Filmed & Edited By Bash Films: bashfilms.com
YouTube Channel Managed & Optimized By Digital Medium Ltd: events.digital-medium.co.uk
---
#boost #cpp #cplusplus #programming #coding #softwareengineering #softwaredeveloper #code #cplusplusprogramming #cplusplustutorial #cplus #softwaredevelopment #coder #talk









![Coinductive Types in C++ Senders - Building Streams out of Hot Air - Steve Downey - C++Now 2025
https://www.cppnow.org
Coinductive Types in C++ Senders - Building Streams out of Hot Air - Steve Downey - C++Now 2025
Building sender streams out of senders
Were going to build an async stream and queue out of nothing but senders. For purposes of this talk, a stream is an infinite collection where you can only get the head element and the rest of the stream.
Along the way, well take a look at the last 80 years of computer science, including some current areas of active research.
Having a better idea of how senders and functions like them are grounded in theory gives us a better idea of how they can be used and where to look to borrow designs and insights.
We dont just borrow [syntax]; on occasion, [C++] has pursued other languages down alleyways to beat them unconscious and rifle their pockets for new [semantics].
(with apologies to) James D. Nicoll
Im going to show you even a more horrible thing, a definition of CONS in terms of nothing but air, hot air.
Gerald Jay Sussman, Computational Objects
In C++, P2300 Senders are computations to be performed an object that describes work (see Niebler et al. 2024, 4.3). Taking designs that suspend computation are a natural place to begin when planning senders. Models that do so in an otherwise strict evaluation environment can be easier to reason about for porting to C++ than from default lazy environments, such as Haskell.
By air, Sussman meant building a data structure out of nothing but higher order lambda expressions in scheme. This technique is also a common implementation technique for functional programming languages, and it turns out to be one of the ways pattern matching is supported.
This can be implemented directly using C++ lambda, something that is particularly easily now that recursive lambda is possible using deducing this. We start out by implementing Either, then Pair, Maybe, Boolean, and then we see how recursive types can be made, such as a cons list. The core of the pattern is closely related to generalized fold, or catamorphism, and it has deep connections to the Visitor pattern.
Changing perspective from inductive types, like list, to coinductive, infinite types, like stream, means looking at deconstruction, or observation, of codata. However, the pattern of dispatching to handlers remains the same, though with some slight inversion.
This guides us to a concrete Sender design that can be implemented as concrete sender types, rather than wrapping unnamed higher-order functions. This also helps avoid recursions in the type system, by hiding the uninteresting intermediate types being sent. This also provides an excuse to demonstrate implementing a sender. There are not enough examples, but writing a sender is intended to be within the scope of work for an intermediate C++ developer.
At the end of this talk, we will have an async queue and an async stream implemented using just senders.
Slides: https://github.com/boostcon/cppnow_presentations_2025/blob/main/Presentations/Building_Streams_out_of_Hot_Air.pdf
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: https://www.think-cell.com/en/career/tech
Steve Downey
Steve Downey has been a programmer for more than 30 years. Steve graduated from SUNY Purchase with a BS in Mathematics. A Computer Science degree would have involved two classes before 11:00 am, so was impossible.
He has worked at Bloomberg since 2003, and is currently working as an Engineer on the C++ Infrastructure team.
C++Now 2026 - 4th May - 8th 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 - https://www.cppnow.org
https://www.linkedin.com/company/cppnow
https://twitter.com/cppnow
https://www.facebook.com/CppNow
https://www.reddit.com/r/CppNow
https://mastodon.social/@cppnow
Video Sponsors: think-cell and Bloomberg
Videos Filmed & Edited By Bash Films: https://bashfilms.com/
YouTube Channel Managed & Optimized By Digital Medium Ltd: https://events.digital-medium.co.uk
#boost #cpp #cplusplus #programming #coding #softwareengineering #softwaredeveloper #code #cplusplusprogramming #cplusplustutorial #cplus #softwaredevelopment #coder #senders Coinductive Types in C++ Senders - Building Streams out of Hot Air - Steve Downey - C++Now 2025](https://i.ytimg.com/vi/POXB5xRai74/mqdefault.jpg)
