Post

Relax: Rust without the wait

Relax is an experimental Rust compiler and JIT aimed at a faster edit–run loop: it compiles functions on first use, optimizes hot code, and can patch changed function bodies into a running process while preserving state.

The Makepad project implements its own frontend, borrow checker, code generator and runtime rather than wrapping rustc or LLVM. Its authors report a large application’s first frame in 11 seconds from a clean checkout on an M4 MacBook, versus about three minutes for the compared build. They also report slower optimized code, higher memory use and unsupported crates; changes to layouts and other interfaces require a restart.

Importantly, a normal run borrow-checks in the background rather than waiting for the check to finish; --check-first waits. The authors recommend standard Rust release builds for shipping.