News for hackers. Stuff that matters.
Re:"Why is the Rust compiler so slow?" by kenoath69 on Thursday June 26, 2025 @04:49PM (#44391211)
Where is Cranelift mentioned

My 2c on this is nearly ditching rust for game development due to the compile times, in digging it turned out that LLVM is very slow regardless of opt level. Indeed it's what the Jai devs have been saying.

So Cranelift might be relevant for OP, I will shill it endlessly, took my game from 16 seconds to 4 seconds. Incredible work Cranelift team.

Re:"Why is the Rust compiler so slow?" by BreakfastB0b on Thursday June 26, 2025 @07:35PM (#44392493)
I participated in the most recent Bevy game jam and the community has a new tool that came out of Dioxus called subsecond which as the name suggests provides sub-second hot reloading of systems. It made prototyping very pleasant. Especially when iterating on UI.

https://github.com/TheBevyFlock/bevy_simple_subsecond_system

Re:"Why is the Rust compiler so slow?" by jiehong on Thursday June 26, 2025 @04:54PM (#44391249)
I think that’s what zig team is also doing to allow very fast build times: remove LLVM.
Re:"Why is the Rust compiler so slow?" by norman784 on Thursday June 26, 2025 @04:57PM (#44391281)
Yes, Zig author commented[0] that a while ago

[0] https://news.ycombinator.com/item?id=44390972

Re:"Why is the Rust compiler so slow?" by norman784 on Thursday June 26, 2025 @04:56PM (#44391266)
Nice, I checked a while ago and was no support for macOS aarch64, but seems that now it is supported.
Re:"Why is the Rust compiler so slow?" by lll-o-lll on Thursday June 26, 2025 @06:06PM (#44391956)
Wait. You were going to ditch rust because of 16 second build times?
Re:"Why is the Rust compiler so slow?" by metaltyphoon on Thursday June 26, 2025 @07:05PM (#44392311)
Over time that adds up when your coding consists of REPL like workflow.
Re:"Why is the Rust compiler so slow?" by sarchertech on Thursday June 26, 2025 @07:04PM (#44392305)
16 seconds is infuriating for something that needs to be manually tested, like does this jump feel too floaty.

But it’s also probable that 16 seconds was fairly early in development and it would get much worse from their.

Re:"Why is the Rust compiler so slow?" by kenoath69 on Thursday June 26, 2025 @11:21PM (#44393427)
Pulling out Instagram 100 times in every workday, yes, it's a total disaster
Re:"Why is the Rust compiler so slow?" by johnisgood on Friday June 27, 2025 @07:55AM (#44396056)
It may also contribute to smoking. :D Or (over-)eating... or whatever your vice is.
Re:"Why is the Rust compiler so slow?" by Mawr on Friday June 27, 2025 @03:22AM (#44394485)
"Wait. You were going to ditch subversion for git because of 16 second branch merge times?"

Performance matters.

Re:"Why is the Rust compiler so slow?" by ptspts on Thursday July 10, 2025 @09:59AM (#44521196)
Isn't `gcc -O0` (for both C and C++) even slower than `clang -O0`?