News for hackers. Stuff that matters.
Re:Compiling Rust is NP-hard by swiftcoder on Thursday July 08, 2021 @07:30AM (#27770593)
What on earth did you compile? I can't recall ever having compiled a rust project that took more than 10 minutes from scratch.

I do have memories of the days when compiling Chromium or AOSP was a 4 hour battle, though :)

Re:Compiling Rust is NP-hard by jynelson on Thursday July 08, 2021 @09:02AM (#27771377)
The rust compiler itself can take as long as 2 hours on a modern laptop if you do a full stage 2 build. I don't think that's what the top poster was talking about though, it sounded like they had a rust toolchain already.
Re:Compiling Rust is NP-hard by steveklabnik on Thursday July 08, 2021 @09:13AM (#27771496)
(You know this, but for anyone else reading, don't forget that that doing this compiles LLVM, which is in of itself a massive C++ project, as well as compiling the compiler itself multiple times. That's part of why it would be such an outlier.)
Re:Compiling Rust is NP-hard by swiftcoder on Thursday July 08, 2021 @09:50AM (#27771919)
Right. Nested C/C++ dependencies are the only case I can think of where drastically-long compile times are common.
Re:Compiling Rust is NP-hard by jandrese on Thursday July 08, 2021 @11:56AM (#27773702)
Or maybe someone included Boost?

Sometimes it is just that someone drank the Kool-aid and made everything a template. Then split their code across hundreds of tiny files and did the one big massive include at the top of every file that pulls in everything.