logoalt Hacker News

rr808yesterday at 3:28 PM3 repliesview on HN

How long does a compile take? Because this was the biggest issue for me. I dont really like Python but the ability to make some changes then run it instantly is wild for me.


Replies

woodruffwyesterday at 3:40 PM

You probably already know this, but I figure it bears repeating: most people should be running `cargo check` during development, not `cargo build`. The latter is only necessary when you actually need the built binary; the former is sufficient for type- and borrow-checking.

(On my local machine, `cargo check` is roughly 2x faster than `cargo build`. It's still slower than hot-reloaded Python, but it's rarely my development bottleneck.)

show 2 replies
embedding-shapeyesterday at 7:29 PM

> I dont really like Python but the ability to make some changes then run it instantly is wild for me.

You'll love Clojure, gets you even closer; you can make changes while your program is running, by changing source code then applying just that function you changed, while your editor is connected to your program and can show what the new results are.

show 1 reply
Aurornisyesterday at 5:11 PM

Initial compilation and incremental compilation are very different.

Large Rust projects are broken up into modules. If you change one module you don’t have recompile the whole project.

Remember we’re talking about compensation time versus LLM turns in this thread. Even a 10 second incremental compile is orders of magnitude faster than an LLM turn.

show 1 reply