1min.

1MIN · RUST

Relax experiments with running Rust while functions compile

Relax is an experimental Rust compiler and runtime that compiles functions when first called, optimizes hot code and patches changed function bodies into a running process. It targets shorter edit-run cycles rather than release builds. Borrow checking normally runs alongside the program; a check-first option waits for it. Structural edits still require a restart, and not every crate works.

Makepad

Why it matters

Keeping application state alive during small code changes could shorten interactive development loops.

More context

Build the runner from its public Rust repository, then try a small Cargo package. The project reports testing fresh checkouts on Linux x86-64 and macOS arm64; Windows is untested. Its page has no verified original publication date, so this is a newly discovered experiment.

Keep in mind

Experimental, with documented compatibility gaps and additional memory use. The author’s optimized-code benchmarks are generally slower than rustc release builds; use the standard compiler for shipping software.

Original read

More engineering ideas, one minute at a time.

Explore more stories