Relax: JIT compiler for Rust to reduce build times
adamnemecek
180 points
117 comments
November 11, 2026
Related Discussions
Found 5 related stories in 40.7ms across 3,874 title embeddings via pgvector HNSW
- Benchfmt.rs: Bringing Go's benchmarking and benchstat workflow to Rust witcher · 29 pts · November 04, 2026 · 57% similar
- Fast-Anything: Don't rewrite it in Rust. Rewrite the 5% that's slow BaselAshraf81 · 182 pts · November 22, 2026 · 56% similar
- Porting my Electron app to Rust: 675 MB to 91 MB mohakbajaj · 43 pts · November 12, 2026 · 56% similar
- An incremental approach to JIT construction andsoitis · 49 pts · October 24, 2026 · 55% similar
- Rust 1.100 mbStavola · 557 pts · November 12, 2026 · 54% similar
Discussion Highlights (20 comments)
kennykartman
I knew that makepad devs were focused on build times, but didn't imagine this much!
tontinton
The world really needs something like this, but why such a slop UI website. Just tell Opus 5.5 to "redesign the UI to not look like AI slop, design it like a human expert designer would" at bare minimum.
Sytten
We have had good experience with kache so far to speedup builds in CI and local
faresahmed
Somehow always, someone somewhere rediscovers that cutting down the time between coding and code execution makes our lives easier and to a degree be able to write better programs. Perhaps the earliest and best attempt was Lisp's computational model. Since then, the idea manifested itself again[1], again[2], and again[3] in different forms. [1]: Inventing on Principle, Bret Victor: https://www.youtube.com/watch?v=PUv66718DII [2]: REPL-Driven Development, Stuart Halloway: https://vimeo.com/223309989 [3]: LIVE, Live Programming workshop: https://liveprog.org/
Surac
moving errors from compile time to runtime is good?
jonstewart
I've been using "mr boxington" (mbx) the past several weeks and it's been a big help. https://mr-boxington.jdx.dev/
ridiculous_fish
This is preposterously ambitious - a complete Rust re-implementation. Looks like it's mostly claude?
jkelleyrtp
I built something similar - tbd on maintaining it - but I got Rust Analyzer emitting code and as well as running in the web. This new concept of rust compile daemon is pretty sick. Can build and iterate on Rust in the browser! https://dioxuslabs.github.io/rustd/
scottmas
Anyone know what effect it has on targets/ bloat and dev disk usage?
baq
Common Lisp lurks in the shadows, watching its own reinvention comfortably, yet another time
ricardobeat
> 0 crates.io dependencies, in 438k lines of Rust It's great to have zero deps, but that's a lot of code to maintain.
_cart
Pretty wild to me that AI has enabled the commoditization of one of the gnarliest engineering problems. Over the course of just a month, we now have three "viable" AI-driven iteration-focused Rust compilers: - https://github.com/makepad/relax - https://github.com/DioxusLabs/rustd/ - https://github.com/indexable-inc/blaze
cedws
Rust is a nice language but it’s so heavy. Since our company switched from Go I’ve had to become used to my laptop being burning hot and stuttering whilst trying to do anything during compilation.
measurablefunc
Nice project.
ben-schaaf
I did a quick test on various of my rust projects. Most of them it failed to run, on one it miscompiles(?) causing a test case to fail. The only project I got it to run without issue is a basic actix-web website. It takes a whole 14 seconds to actually start the web server. A clean compile is only 24s for all dependencies, and a regular incremental debug build is 2.3s. The hot patching is unusable. It takes 11s to compile the patch after a simple change: (Some("hi") -> None), and then relax gets a compiler error when refreshing the page. The project where it miscompiles only has a few very basic dependencies; a clean compile takes 1.3s, incremental just 0.25s and tests take ~0.1s. Relax takes a whole 1.4s to run the tests (unsuccessfully).
samblob1
Every commit is vibed lol. absolutely no way.
ylisav
Are we inventing python from first principles?
rfgplk
I'd genuinely suggest most people get into the business of writing custom compilers. You have no idea how poor the common implementations are. My from scratch Rust compiler outright outperforms rustc by lowering comptimes by around 80%, while maintaining bitexact binaries (verified on millions of LoC && formally verified).
knuckleheads
After working on https://github.com/PowderworksCode/headstart and some good conversations with the compiler team, I've been working on finding a way to make big changes to speed up rust while also respecting their wishes around the usage of LLM's. I don't really want to support a vibe slopped fork of rustc/cargo that is full of patches that are pretty much immediately out of date, and I don't think anyone else does either, at least not in a long term dependable way. I also don't feel like recreating daemons from the ground up, I would rather build on top of what already exists and make that compile faster and have better performance. https://breakneck.powderworks.dev/ It's not done yet nor do I have enticing numbers to show, but I think in a few weeks Breckneck Rust will be someplace nice. For big changes such as getting all crates in the same process, I've been having Claude develop and use a mass static code rewriting tool. So instead of having an agent go and found all the places where LOCAL_CRATE_ID is defined and used, a query finds it and then rewrites can target it and it's surroundings. My hope is that mass code rewrites are more acceptable to the compiler team, in that they can author, review and debate the rewrites ahead of time without any time pressure. Listening to the team, there were things they might want to do/try (dropping memory, all crates in one process), but the changes are so comprehensive that to do them by hand is effectively a stop the world process. With mass code rewriting tools, it should be possible to rerun the rewrite on main whenever, and as well, any work that others have going on in pr's can likewise be transformed without any impact. This way takes a bit of coordination, but not years and years of it. Similarly, it's not clear that any of the big changes are actually worth it yet. Maybe dropping memory is a meh, or compiling all the crates at once is not that big a win. I can run this on nightly and keep up to date with what's going on there while experimenting with weird stuff, without wandering out into the wilderness with a hard fork. Maybe there's a way to 100x perf on the other side, and if a pathway can be shown to get there in theory via agents, then the team can find their own path there that fits their attitudes around use or none use of agents and we all benefit. Exciting times!
fukaiall
Coauthored with AI? Skip.