Oriel — AI & technology worth noticing, every day.

Relax: JIT compiler for Rust to reduce build times

Web page · https://makepad.github.io/relax

First seen by Oriel on .

AI summary

Relax is a live Rust compiler and JIT runtime that runs Cargo packages directly from source, avoiding rustc, LLVM, and linking while supporting checked hot code replacement.

  • On an M4 MacBook, a large 3D game reaches its first frame in 11 seconds from clean checkout and 1.15 seconds on subsequent runs.
  • Relax type- and borrow-checks every crate before execution, then lazily compiles functions from interpreter to O1 and O3, patching changes while preserving process state.
  • Against LLVM --release for the native CPU, profiled workloads run 1.14–1.26× slower, while an unvectorised Cholesky kernel is 2.29× slower; broader results are being re-measured.
  • The 438k-line Rust library has no crates.io dependencies, emits x86-64 and AArch64 code, and currently passes tests on Linux x86-64 and macOS arm64.
  • With devhub, nine AI-agent lanes process more than 300 build and test jobs hourly, including rerunning 92 tests within 2.2 seconds of a save.

#rust #jit #live coding #ai agents

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 179, latest observation ; +175 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 111, latest observation ; +110 over observed period since

Aliases

SourceExternal IDURL
Hacker News50458849https://makepad.github.io/relax/ Read discussion