Relax: JIT compiler for Rust to reduce build times
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
Makepad's Relax is a JIT runtime for Rust, written in Rust, that runs a Cargo package from source with no rustc, LLVM or linker. On an M4 MacBook a large 3D game reaches its first frame in 11 s (1.15 s on rerun), versus about 3 minutes of building with rustc, and saving a file patches changed functions into the running program. By the authors' own measurements, optimised code is 1.14–1.26× slower than native-CPU --release, 2.3× on dense numeric loops, and a broader run is being re-measured.