This Week at Zed Industries: #14
Zed's weekly update covers a reworked search UI with semantic search, the start of WebAssembly extensions for custom language servers, and near-complete collaboration channels. The most technical section describes CRDB repository sync without vector timestamps. Client and server find a shared prefix of a Lamport-ordered operation log by comparing Bromberg associative-hash digests over ranges, computed in O(log n) via a B-tree, trading extra round trips against sending redundant operations. Channels are modeled as a DAG whose permissions cascade downward, and GPUI layout is expressed with chained Rust builder calls instead of a macro DSL.
Related posts
- This Week at Zed Industries: #12
Zed mediumAdeptZed publicly launched its preview channel and reports progress across the editor: Vim search commands, macOS ctrl-click remapped to right click in the platform layer, terminal Cmd+hover navigation, a semantic index that collapses nested tree-sitter symbols to cut embedding tokens, and a lock-contention bug where slow git status in huge repos serializes file scanning. The most substantive section covers CRDB, Zed's planned collaboration backbone. It uses serde-bare instead of Protocol Buffers so message types live entirely in Rust, routes messages by TypeId, and syncs replicas with vector clocks as a distributed set union. Operations are applied by reconstructing revisions from a DAG of operations with cached snapshots and copy-on-write B-trees.
- How CRDTs make multiplayer text editing part of Zed's DNA
Zed mediumAdeptZed builds collaborative editing into its core using CRDTs rather than Operational Transformation, making concurrent edits commutative by addressing text through stable logical anchors (insertion id plus offset) instead of absolute offsets. Each insertion gets a unique id from a centrally assigned replica id and a sequence number. Deletions are tombstones tagged with version vectors so concurrent insertions inside a deleted range stay visible, and concurrent inserts at the same spot are ordered by descending Lamport timestamp with replica id as tiebreaker to respect causality. Per-user undo/redo is also covered, and a copy-on-write B-tree avoids linear scans when resolving anchors.
- This Week at Zed Industries: #1
Zed mediumAdeptZed grew out of Xray, the experimental editor Nathan Sobo and Antonio worked on at GitHub in 2018, and this weekly update recaps the path from there to a company and a private alpha. It also describes the team's first "quality week" of bug fixing, which they plan to repeat every six weeks. Multibuffer performance in project-wide search got much faster after two fixes. Rope fingerprints, computed with the monoid-homomorphic bromberg_sl2 hash and aggregated through a B-tree, are now stored as HashMatrix values instead of allocated Strings. Excerpts are also built on a background thread and streamed into the multibuffer so the main thread no longer blocks.
- Text Coordinate Systems
Zed mediumAdeptZed represents text positions with several coordinate types, each suited to a different job. `Point` (row/column) makes vertical movement easy but follows "typewriter" addition semantics, and `Offset` counts bytes from the start of the document, which suits multi-line ranges. `OffsetUtf16` and `PointUtf16` exist for the Language Server Protocol and are indexed directly in the Rope's SumTree, so conversions are fast. `DisplayPoint` maps positions onto the rendered view, accounting for soft wraps, folds, inlay hints, tabs and blocks. `Anchor` is a logical position tied to a Lamport-timestamped immutable insertion in Zed's CRDT, so it stays valid across concurrent edits and background work such as language-server requests.
- Evolving our real-time timeseries storage again: Built in Rust for performance at scale
Datadog Engineering hardMasterDatadog's sixth-generation real-time timeseries database (RTDB) is a Rust rewrite that unifies two earlier engines, one for scalar metrics and one for DDSketch distributions, after earlier generations built on Cassandra, Redis, MDBM, a Go B+ tree and RocksDB. Its storage engine, Monocle, is an LSM tree with a worker-per-shard, thread-per-core design. Kafka intake tasks route data over per-shard MPSC channels to single-threaded Tokio shards, which keeps locks off the write path. Permit-based throttling and CoDel-based cost scheduling keep the system stable under load, and snapshots provide recovery. Datadog reports 60x higher ingestion throughput and 5x faster queries at peak scale.