SELECT 1
Entry 034Fri 2026.11.13
One launch a day. Picked, run, explained.

Fri 2026.11.13

Relax: live edits for Rust programs

Today's pick: Relax

Relax is a product that runs a Rust program without waiting for a build. It also applies your edits while the program runs.

It is today’s pick because you can change Rust code and keep the running state.

exit 0Ran itIt works. An edited function was patched into the running program in 9.4 ms.
Found on
GitHub
Built with
Rust

The problem

The Rust compiler, rustc, compiles the whole program before it runs. So a large program takes minutes to build. Even when you change one function, you rebuild, relink and restart. The program loses its running state. According to the Relax README, a large 3D game built with cargoRust’s build tool and package manager. cargo build builds a program, and cargo run builds it and then runs it. and rustc takes about 3 minutes from a fresh clone to its first frame.

How it solves it

On November 12, 2026, Relax had 243 stars on GitHub. According to the README, it comes from the Makepad project, which builds UI apps in Rust.

Relax runs a Cargo package straight from source, without rustc, LLVMA tool used by many compilers. It optimizes code and produces machine code for each kind of CPU. rustc and Clang use it. or a linkerA program that combines compiled pieces and libraries into one executable.. Each function is compiled on its first call, and frequently called functions are optimized further in the background while the program runs. When you save a file, Relax recompiles only the changed functions and puts them into the running process. Relax also compiles the Rust standard library from source.

What is different

The first difference is when code is compiled. rustc compiles the whole program before it runs. Relax uses JITJust-in-time compilation. A JIT compiler turns code into machine code while the program runs, instead of before it starts. compilation and compiles each function on its first call. So even a large program starts without waiting for a build. According to the README, the 3D game above shows its first frame in 11 seconds from a fresh clone on an M4 MacBook. The tradeoff is speed. According to the README, code under Relax takes 1.12× as long to run as code built with cargo build --release on x64, and 1.24× as long on arm64. Each number is a geometric mean over 21 workloads.

The second difference is how edits are applied. Relax does not restart the process, so the program keeps its running state. Relax never deletes the old machine code. So a call that is still running finishes on the old code, and the next call uses the new code. The tradeoff is memory use. The compiler and its caches run inside the program’s process. The old machine code is never deleted, so memory use keeps growing. According to the README, a change to a struct layout, an import, a traitIn Rust, a set of methods that several types can implement. It is similar to an interface in Java. or impl header, or a macro still waits for a restart.

How it was built

  • According to AGENTS.md, this repository is a mirror of selected paths from the work branch of makepad/makepad.
  • I cloned with depth 200 and got 398 recent commits, including the history that merge commits bring in. Of these, 317 have a Co-Authored-By trailer. The trailers name Claude Opus 5.5 in 298 commits and Claude Fable 5.2 in 13. They name Claude Sonnet 5.5 and Codex in 8 commits each. Some commits name more than one.
  • The repository has 819,000 lines of Rust code. The compiler library, libs/relax, contains 700,000 lines. libs/relax includes the 140,000 lines of standard library source that Relax compiles itself.

Running it

I cloned and built the repository on a 4-core x86-64 Linux machine. Then I made 3 packages with cargo new and ran them under Relax.

  1. Build. cargo build --release -p relax-runner --bin relax took 3 minutes 45 seconds. According to the README, it takes 53 seconds on 16 cores. None of the 37 packages in Cargo.lock came from crates.io.
  2. hello. The first relax run took 0.96 seconds, and the next two runs took 0.11 and 0.08 seconds. cargo run on the same package took 0.20 seconds the first time and 0.06 seconds after that. rustc built the small hello program quickly, so cargo run was faster than Relax. According to the README, Relax keeps its compiled code in target/makepad-run. After 3 runs of hello, that folder was 49 MB. relax test passed 1 test in 1.4 seconds.
  3. Editing while it runs. I used relax run to start a program that prints a counter every 0.5 seconds. After 5 seconds, I changed the string in its print function from v1 to v2 and saved. Relax’s log said the patch took 9.4 ms, and the counter went on from v1 tick 9 to v2 tick 10.
  4. Speed. I ran a sieve of Eratosthenes for 5 rounds in a row. Each round counted the primes up to 30,000,000. I ran it twice with cargo build --release and twice with Relax. With cargo build --release, the last round took 118 to 122 ms. With Relax, the first round took 458 to 520 ms. The last round took 134 to 141 ms, or 1.10 to 1.19× as long. The first round runs before the functions are optimized further.
Terminal, relax run --quiet live
v1 tick 8
v1 tick 9
makepad live: main.rs: patched (1 item(s) changed, 1 fn(s) installed) in 9.4 ms
v2 tick 10
v2 tick 11

Verdict

It works. An edited function was patched into the running program in 9.4 ms. But Relax’s optimized code was slower than code built with cargo build --release. It is worth trying if you often change a large Rust program.

What to take away

  • If you lose the running state every time you change a program, consider swapping code one function at a time. Today Relax swapped one function without a restart, and the counter went on without a break.
  • If your tool cuts build time, say how large a program has to be before it helps. For today’s small hello program, cargo run was faster than Relax.

Getting started

  1. git clone https://github.com/makepad/relax
  2. cargo build --release --manifest-path relax/Cargo.toml -p relax-runner --bin relax
  3. 패키지 폴더에서 relax run --quiet <패키지 이름>
You need
A stable Rust toolchain. Relax has no crates.io dependencies. According to the README, it is tested on Linux x86-64 and macOS arm64, not on Windows.
Cost
Free under MIT.

Relax is experimental. The maker recommends building the program you ship with cargo build --release.

Steps select 1 ran.

Progress

  1. Day 3Active
  2. Day 7Active
  3. Day 15Active
  4. Day 30Upcoming
  5. Day 90Upcoming
  6. Day 180Upcoming
  7. Day 365Upcoming

Latest check Day 15, Fri 2026.11.27

Commits since launch
172 → 1,404
Stars
246 → 673
Last commit
2026.11.26
  • On Linux, the TLS client now checks both the server’s name and its certificate chain.
  • JIT compilation now uses its own thread pool. JIT threads no longer ask for or wait for the app’s CPU tokens.
  • When startup cannot use the JIT cache and compiles the code again from scratch, it now prints the reason in one line.

Full history →