Cameron DaCamara, a Microsoft C++ compiler engineer, discusses Fred — a custom text editor he built in C++ starting in 2023. Fred features a functional, immutable text buffer (inspired by VS Code's piece tree) that enables a branching undo graph rather than a linear undo stack. Key highlights include first-class multicursor support with Vim motions, a C plugin system using Tiny CC that compiles plugins live inside the editor, Tree-sitter-based syntax highlighting, a multithreaded find-all widget using Boyer-Moore-Horspool search, and sub-2-second compile times for ~100k lines of C++ via Unity builds. Cameron also discusses the state of C++ modules adoption, template instantiation compile-time costs, and why the project system (including go-to-definition) remains unfinished after multiple scrapped iterations.

3h 1m watch time
288 Impressions