News for hackers. Stuff that matters.
Re:Rust in Linux kernel is just a beginning by gnull on Tuesday October 25, 2022 @06:12AM (#33328506)
It's a fair remark, but your requirement is very niche. There's very few people who will value compilation time over runtime speed, safety, good abstractions, expressiveness.
Re:Rust in Linux kernel is just a beginning by pclmulqdq on Tuesday October 25, 2022 @08:30AM (#33329607)
This ethos played out in the C++ community 5-ish years ago. It turned into a compiler with quadratic behavior, and eventually many people who didn't care at all about compiler performance cared a lot.

It turns out that compiler speed makes development faster, keeps people interested in the language, and ultimately allows more iterations before release (which can be better for speed and safety than throwing in a bunch of extra compile steps).

Re:Rust in Linux kernel is just a beginning by gnull on Tuesday October 25, 2022 @11:50AM (#33332215)
You misread my comment. I didn't say it was useless, I said there are things with higher priority. And well… unlike Rust, C++ sucked at some of those things too, this I think makes them different.

Rust offers a better trade-off between compilation time and other parameters, than C++.

Re:Rust in Linux kernel is just a beginning by pclmulqdq on Tuesday October 25, 2022 @03:28PM (#33335048)
They didn't say it was useless either; they also said it wasn't a high priority. Developer velocity and ergonomics should always be a high priority for compiler writers.
Re:Rust in Linux kernel is just a beginning by gnull on Wednesday October 26, 2022 @11:59AM (#33345668)
"High" as in "higher than runtime speed, safety, abstractions, plugin system"? Where would you put it if you had to rank compilation speed with other criteria?

And let's admit even though Rust compilation speed could use some improvement, it's not terrible.

Re:Rust in Linux kernel is just a beginning by gnull on Wednesday October 26, 2022 @12:02PM (#33345709)
I re-read it. Yes, they're not saying it's useless, but then what are they objecting to?
Re:Rust in Linux kernel is just a beginning by cardanome on Tuesday October 25, 2022 @08:41AM (#33329696)
Rust could have been designed for faster compilation without sacrificing runtime speed, safety, good abstractions, expressiveness and whatnot in any regard. The people designing Rust just either did not care or did not have the experience to do so. And it can not be fixed anymore because that would require too much breaking changes.

And yes, a substantial time is also spent for things like the borrow checker but no all of it.

An no, it is not a niche requirement. Short compile times are absolutely critical for developer productivity. One main reason Golang exists and got popular is that people got fed up with how slow C++ is to compile. Not to mention that most people on this earth are not as privileged as to have a beefy machine.

Re:Rust in Linux kernel is just a beginning by howinteresting on Tuesday October 25, 2022 @11:41AM (#33332093)
cargo check is pretty fast.
Re:Rust in Linux kernel is just a beginning by gnull on Tuesday October 25, 2022 @12:00PM (#33332383)
> Rust could have been designed for faster compilation without sacrificing runtime speed, safety, good abstractions, expressiveness

Can you back this up? I'm not a programming language expert, so if there's some common knowledge you're referring to, I'm not aware of it.

> most people on this earth are not as privileged

There's very little "privilege" you need to compile Rust. In my spare time, I develop mainly in Haskell on my ThinkPad X270 and it goes just fine. Building libraries takes time, yes, but you need to do it just once. And while it's building you can think with a piece of paper more — also privilege in a way.