Using a piece tree to implement a lazy-loading text editor, and where this idea comes from originally
noamlewis.com·2d
🗃️Database Storage
Preview
Report Post

December 9, 2025

Fresh uses a piece tree (also called a piece table) for text storage. The piece table originated in the early 1970s - first in J. Strother Moore and Bob Boyer’s "77-Editor" at Edinburgh (1971-1973), where they applied structure-sharing techniques from their theorem proving research to text editing. Moore later brought the idea to Xerox PARC, where Charles Simonyi adopted it for the Bravo editor (1974). Simonyi later brought it to Microsoft Word (1983). The design minimizes memory copying by never modifying original file content - critical for early systems with limited RAM. [VS Code…

Similar Posts

Loading similar posts...