01Chapter 1: Why immutable values need cheap updatesAn immutable value never changes after it is created. This chapter explains why that property is useful and why naive updates to such values are expensive. It also introduces the idea that the rest of the tutorial builds on.3 min read
02Chapter 2: What persistence means: versions and the four modelsThis chapter assumes you can read Python, know linked lists and binary search trees, understand Big-O notation, and know the difference between an object reference and a copy. It introduces the vocabulary used by the rest of the tutorial. Later chapters cover how the sharing works.3 min read
03Chapter 3: Structural sharing: reusing unchanged partsThis chapter assumes you can read basic Python and JavaScript, know linked lists and binary search trees, understand Big-O notation, and know the difference between an object reference and a copy.3 min read
04Chapter 4: A persistent linked listThis chapter assumes you can read basic Python, know how a singly linked list works, and understand the difference between two names pointing at one object and two separate copies. It builds on the previous chapter's idea of structural sharing and applies it to the simplest structure that supports i2 min read
05Chapter 5: Path copying: copy only the route to the changeThis chapter assumes you can read Python and basic JavaScript, know how trees and references work, and are comfortable with Big-O notation. You have already seen that two versions of a structure can share nodes. Here you will learn the rule that makes this safe: path copying.3 min read
06Chapter 6: A persistent binary search treeThis chapter assumes you know how an ordinary binary search tree (BST) works, can read Python, and know that two variables can point at the same object. The previous chapters covered structural sharing and path copying. Here you apply them to a tree.3 min read
07Chapter 7: Persistent vectors with wide triesThis chapter assumes you know path copying, from the persistent binary search tree chapter, and Big-O notation. You should also be comfortable with bitwise shifts and masks in Python.3 min read
08Chapter 8: Persistent hash maps with HAMTsThis chapter assumes you have read the previous chapters on path copying and persistent vectors. You should also know the basics of hash tables and bitwise operations (&, >>, <<).2 min read
09Chapter 9: Costs and trade-offs against mutable and fully copied dataThis chapter assumes you know Big-O notation, the difference between a reference and a copy, and the path-copying idea from earlier chapters. It compares three ways to "update" a collection: mutate it in place, copy it fully, or update it persistently with structural sharing.3 min read
10Chapter 10: Transients and batch updatesThis chapter assumes you know path copying and structural sharing from the earlier chapters, and that you are comfortable reading Python.2 min read
11Chapter 11: Memory retention and garbage collectionThis chapter assumes you know how path copying and structural sharing work, and that you know what a reference is in Python or JavaScript. It covers one consequence of sharing: a node stays in memory as long as any version still reaches it.3 min read
12Chapter 12: Where persistent structures pay off, and pitfallsThis chapter assumes you know path copying, structural sharing, and the cost of persistent lists, trees, vectors, and hash maps. It covers where those structures help in practice and where they cause trouble. The target length is about 650 words.3 min read
13Chapter 13: Beyond path copying: the fat node methodThis chapter assumes you know path copying and structural sharing from the earlier chapters, and that you are comfortable with binary search and Big-O notation.3 min read