News for hackers. Stuff that matters.
Re:"Why is the Rust compiler so slow?" by willtemperley on Friday June 27, 2025 @12:16AM (#44393659)
A lot can be done by the programmer to mitigate slow builds in Swift. Breaking up long expressions into smaller ones and using explicit types where type inference is expensive for example.

I’d like to see tooling for this to pinpoint bottlenecks - it’s not always obvious what’s making builds slow.

Re:"Why is the Rust compiler so slow?" by ykonstant on Friday June 27, 2025 @03:56AM (#44394713)
>I’d like to see tooling for this to pinpoint bottlenecks - it’s not always obvious what’s making builds slow.

I second this enthusiastically.

Re:"Why is the Rust compiler so slow?" by glhaynes on Friday June 27, 2025 @06:27AM (#44395588)
I'll third it. I've started to see more and more cargo culting of "fixes" that I'm extremely suspicious do nothing aside from making the code bulkier.
Re:"Why is the Rust compiler so slow?" by never_inline on Friday June 27, 2025 @08:11AM (#44396157)
> Breaking up long expressions into smaller ones

If it improves compile time, that sounds like a bug in the compiler or the design of the language itself.