4 ms·
> First, this analysis was done on Arch Linux, a source-based distribution. Since you know at compile time what your environment is, I would expect the benefits
by BeetleB 6y ago
> First, this analysis was done on Arch Linux, a source-based distribution. Since you know at compile time what your environment is, I would expect the benefits to be smaller. And of course, this means you're willing to do a lot of recompiles.
I run Gentoo as my Linux box. It takes a long time to compile stuff as it is (and I have a 22 core machine). Being forced to compile a lot more because everything is linked statically would be a nightmare.
This is definitely not a plus for source based distributions.
- bjourne 6y agoRunning Gentoo and complaining about long compile times is like cutting off your leg and complaining that walking hurts.
- pengaru 6y ago> Running Gentoo and complaining about long compile times is like cutting off your leg and complaining that walking hurts. I fail to see the relevance of this comparison. It's more like wearing fitted clothing and (rationally) objecting to requiring a visit to your tailor every time you change your socks.
- BeetleB 6y agoI'm not complaining, and I can live with the compile times I currently have. I'm pointing out that saying this will benefit source based distributions more is nonsense.
- eikenberry 6y agoIf compilers weren't so pathetically slow this wouldn't be that much of an issue. If this became widespread it might have the positive impact on projects like LLVM and get them to pay some attention to compiling time, not just optimization.
- btilly 6y agoThe problem with compile times is mostly not the compiler's fault. It is with the project setup. See http://www.real-linux.org.uk/recursivemake.pdf http://www.real-linux.org.uk/recursivemake.pdf for a classic explanation.
- eikenberry 6y agoBut we haven't learned from this as modern, non-make based build systems still suffer from terribly slow compiles. Take Rust for example. I don't know a single project that uses make to build (they all use cargo), yet Rust suffers from extremely slow compile times. Much of this (as far as I understand) comes from the LLVM compiler, which is why I was picking on compilers.
- btilly 6y agoI have not used Rust very much. But in https://doc.rust-lang.org/cargo/reference/build-scripts.html https://doc.rust-lang.org/cargo/reference/build-scripts.html I find comments like, It is recommended to carefully consider each dependency you add, weighing against the impact on compile time, licensing, maintenance, etc. Cargo will attempt to reuse a dependency if it is shared between build dependencies and normal dependencies. However, this is not always possible, for example when cross-compiling, so keep that in consideration of the impact on compile time. So it looks like cargo can have the same issue that make does with recursive dependencies.
- steveklabnik 6y agoThis is talking about very different issues than the ones identified in that paper. Most of that paper, if not all, does not directly apply to Cargo.
- btilly 6y agoThank you for the insight. I know you know Rust very well. Do you have an explanation for why compile times would be an issue for Rust?