Persistence Squared: Persisting Persistent Data Structures - Juan Pedro Bolivar Puente - CppCon 2025 @CppCon
Persistence Squared: Persisting Persistent Data Structures - Juan Pedro Bolivar Puente - CppCon 2025  @CppCon
Uploaded April 2026 | Updated November 2026, 1 day ago
https://cppcon.org​
---

Persistence Squared: Persisting Persistent Data Structures - Juan Pedro Bolivar Puente - CppCon 2025
---

Persistent data structures are used to implement immutable containers, so that they are manipulated by producing new values, leaving the old ones intact. To do so efficiently, these new values do not contain a copy of the whole structure. Instead only the changed parts are created new, and the rest of the structure is shared internally between old and new values. We call this structural sharing , and is crucial feature to implement immutable data structures efficiently. It opens the door to radically simpler software architectures, specially for interactive applications or highly concurrent systems.

However, structural sharing is traditionally preserved in memory only. When serializing multiple values to disk, these are linearized—-for example, by writing out sequences as JSON arrays—-losing whatever sharing may exist between these values. A similar thing happens when transforming data structures (as with std::transform or a functional map() )

Here we present the new library immer::persist , that enables the serialization of pools of containers while preserving structural sharing. With it, we can also do in-memory transformation over large sets of data that considers and preserves structural sharing. This is novel technique, not present in any other implementation of persistent data structures. We will show when and how to use it, how it is implemented, and include some practical examples from our Digital Audio Workstation at BRONZE.

---

Slides: sinusoid.es/talks/cppcon25

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

Juan Pedro Bolivar Puente

I am Berlin based software engineer. I am CTO of BRONZE and run consulting services with a focus on interactive software, modern C++, functional programming and open source strategy. Before I worked for Ableton and I have been involved in various music technology projects. I have also developed for the GNU project and cofounded a Hacklab in Granada.
---

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
Persistence Squared: Persisting Persistent Data Structures - Juan Pedro Bolivar Puente - CppCon 2025Can C++ Data Oriented Design Be ONE MILLION Times Faster? - Andrew DrakefordLearn Why Experts Are Excited About C++ Reflection At Barry Revzins CppCon 2025 Talk!LLMs in the Trenches: Boosting C++ System Programming with AI - Ion Todirel - CppCon 2025Lightning Talk: Improving an HTML Parser with Swift 6 Pattern Matching  - Andrew KasterLightning Talk: Only Forward: Why Concurrency Works in C++ - Thomas Cassell - CppCon 2025The Wonderful World of Designing a USB Stack Using Modern C++ - Madeline Schneider - CppCon 2025Parallel Range Algorithms: The Evolution of Parallelism in C++ - Ruslan Arutyunyan - CppCon 2025Back To Basics: C++ Strings and Character Sequences - Nicolai Josuttis - CppCon 2025Implementing Your Own C++ Atomics - Ben Saks - CppCon 2025Is Your AI Model Lying to You? The Reproducibility ProblemInteresting Upcoming Low-Latency, Concurrency, and Parallelism Features - CppCon 2025
CppCon |

Persistence Squared: Persisting Persistent Data Structures - Juan Pedro Bolivar Puente - CppCon 2025

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER