logoalt Hacker News

Relax: JIT compiler for Rust to reduce build times

101 points • by adamnemecek • last Wednesday at 9:20 PM • 40 comments • view on HN

Comments

_cart • yesterday at 9:49 PM

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

➕ show 1 reply
faresahmed • yesterday at 7:12 PM

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/

➕ show 2 replies
jkelleyrtp • yesterday at 7:57 PM

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/

cedws • yesterday at 11:04 PM

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.

Sytten • yesterday at 7:04 PM

We have had good experience with kache so far to speedup builds in CI and local

➕ show 1 reply
scottmas • yesterday at 8:37 PM

Anyone know what effect it has on targets/ bloat and dev disk usage?

➕ show 1 reply
jonstewart • yesterday at 7:47 PM

I've been using "mr boxington" (mbx) the past several weeks and it's been a big help. https://mr-boxington.jdx.dev/

ricardobeat • yesterday at 9:29 PM

> 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.

➕ show 1 reply
kennykartman • last Wednesday at 10:37 PM

I knew that makepad devs were focused on build times, but didn't imagine this much!

➕ show 1 reply
ridiculous_fish • yesterday at 7:55 PM

This is preposterously ambitious - a complete Rust re-implementation. Looks like it's mostly claude?

➕ show 2 replies
tontinton • yesterday at 6:56 PM

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.

➕ show 3 replies
baq • yesterday at 8:44 PM

Common Lisp lurks in the shadows, watching its own reinvention comfortably, yet another time

Surac • yesterday at 7:21 PM

moving errors from compile time to runtime is good?

➕ show 3 replies
joshsyn • yesterday at 11:56 PM

[dead]