Get the latest tech news

Zed Decoded: Async Rust


Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

When GCD then decides it's time to run the next item on the main_queue, it pops it off the queue, and calls trampoline, which takes the raw pointer, turns it back into a Runnable and, to poll the Future behind its Task, calls.run() on it. It pushes as much heavy work as possible onto background threads to ensure Zed stays responsive while searching through tens of thousands of files in your project. But there is a companion video in which Antonio and I did dive into a lot of these areas and talked about async-friendly data structures, copy-on-write buffer snapshots, and other things.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Zed Decoded

Zed Decoded

Photo of Async Rust

Async Rust