CppCon 2017: Juan Pedro Bolivar Puente “Postmodern immutable data structures”
What it is
Juan Pedro Bolivar Puente explains immutable and persistent data structures in C++ and how they support value semantics. He presents the Immer library, rrb-trees, and a prototype text editor that opens a huge file instantly.
Why Hacker News recommends it
HN people point to it for rrb-trees, text editor data structures and bringing Clojure-style persistent structures to C++.
- 5 people recommended it
- 7 different months
- 1 strong recommendations
- first 2017, last 2025
What HN commenters said
“Juan Pedro is a next level programmer who I think has pushed the craft forward”
Better undo pattern than Command Pattern from Ableton developer
nightowl_games, 2020-12 · Strong recommendation · in “Ask HN: What are the best advanced computer science courses online?”
“talks about rrb-trees and how they're a great data structure for writing a text editor that can handle unlimited sized documents without locking up”
Using rrb-trees for large-document text editing with undo
proverbialbunny, 2019-08 · Recommendation · in “Build Your Own Text Editor”
“Immer [0][1] seems like a really serious attempt at bringing high-quality persistent data structures to C++.”
Introduces Immer persistent data structure library for C++
bertmuthalaly, 2021-09 · Recommendation · in “Joker: A small interpreted dialect of Clojure written in Go”
“See the author instantly opening a ~1GB text file with async loading”
Prototype editor opening a 1GB file instantly using immutable vectors
modernerd, 2023-06 · Recommendation · in “Text Editor Data Structures”
“an impressive talk, in which someone shows their developed editor that can edit huge text files without lag”
Editor handling huge files with functional data structures
zelphirkalt, 2025-10 · Recommendation · in “Type Theory and Functional Programming (1999) [pdf]”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: immutable data, rrb-trees, c++, immer, text editors, functional programming
Also recommended by the same people
lectureSimon Peyton-Jones: Escape from the ivory tower: the Haskell journeyChurchill College, University of Cambridge · 5 HN recommenders · 2017–2024
talkSteve Jobs' 2005 Stanford Commencement AddressStanford · 9 HN recommenders · 2009–2023
talkThe Art of the Bodge: How I Made The Emoji KeyboardTom Scott · 4 HN recommenders · 2018–2024
talkJan Willem Nijman - Vlambeer - "The art of screenshake" at INDIGO Classes 2013Dutch Game Garden · 10 HN recommenders · 2014–2025
demoTomorrow Corporation Tech Demoretrogameinternals · 5 HN recommenders · 2023–2026
tutorialLearn to Paint with MathematicsInigo Quilez · 3 HN recommenders · 2022–2025
talkCppCon 2015: Andrei Alexandrescu “std::allocator...”CppCon · 7 HN recommenders · 2017–2025
talkLexical Scanning in Go - Rob PikeGoogleFOSSSydney · 13 HN recommenders · 2012–2025