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
I think that’s what zig team is also doing to allow very fast build times: remove LLVM.
Yes, Zig author commented[0] that a while ago
Nice, I checked a while ago and was no support for macOS aarch64, but seems that now it is supported.
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.
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.
"Wait. You were going to ditch subversion for git because of 16 second branch merge times?"
Performance matters.
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.