News for hackers. Stuff that matters.
Re:My ideal Rust workflow by justsomeuser on Wednesday October 27, 2021 @09:32AM (#29013067)
This is how I keep feedback loops short:

- IntelliJ tells me any type issues instantly (I find this makes up some of the time for not having a REPL).

- Small tests kind of work like a REPL.

- watch.sh running in a terminal, re-compiles and runs the code I am working on. In your web server example, I would be testing the units rather than the whole composite program. I can click file references to jump to the error.

- Fast machine (M1)

Re:My ideal Rust workflow by ianpurton on Wednesday October 27, 2021 @09:50AM (#29013246)
I was thinking of getting an M1 just for this.

Do you know how much faster it is? i.e. make a small change in code to compiled binary.

As most articles for rust compilation focus on a full build which I don't need to do very often.

Re:My ideal Rust workflow by justsomeuser on Wednesday October 27, 2021 @10:46AM (#29013978)
I upgraded from a 2014 MacBook Pro (dual core), it is at least 2x faster for both full and incremental Rust builds.