Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Rust Remove topic Rust Clear all 37 posts RSS

2025

2024

Zed

Why the big rewrite?

Case study 21 min +210 XP

Zed rewrote its Rust UI framework from GPUI 1 to GPUI 2 because the original design blocked fast UI work: a Flutter-style constraints-down/sizes-up layout model, styles split between Rust element code and TypeScript-generated JSON "themes" loaded at runtime, model code entangled with presentation (a legacy of an early Electron/JSON architecture), and weakly typed geometry (raw f32s and usizes).

2023

Zed

Zed Weekly: #28

Article 5 min +50 XP

Zed is rewriting its editor as Zed2 in three phases (runnable core editing, productivity features like collaboration, terminal and Vim mode, then flagship features like Assistant, Copilot and Chat), aiming for a preview by end of 2023 and open-sourcing shortly after Zed2 supersedes Zed1.

Zed

Zed Weekly: #27

Article 4 min +40 XP

GPUI, Zed's UI framework, settled on its core view traits: `Render` builds a view from a mutable reference each frame, `RenderOnce` builds composable elements by consuming them, and `#[derive(IntoElement)]` lets custom components be passed straight to `div().child(...)`. gpui2 now sizes UI in `rem` units tied to a new `ui_font_size` setting (default 16px, on a 4px grid), so the interface scales independently of buffer font size, though sub-pixel sizes remain unresolved.

Zed

This Week at Zed Industries: #12

Article 7 min +70 XP

Zed 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.

Zed

Leveraging Rust and the GPU to render user interfaces at 120 FPS

Deep dive 16 min +160 XP

Zed's GPUI framework hits 120 FPS by rendering the editor UI like a video game: rather than a general-purpose 2D vector renderer (Pathfinder proved too slow), it uses dedicated GPU shaders for a small set of primitives such as rectangles, shadows, text, icons and images, all described as data on the CPU and drawn with instanced rendering.

2022

The quest for software engineering knowledge.

Look:
Layout: