logoalt Hacker News

steveklabnikyesterday at 4:56 PM1 replyview on HN

Rust's safety checks have basically nothing to do with its slow compile times. This is something that sounds intuitive but is just completely incorrect.

In particular, Rust made several good design decisions around this stuff that keeps those checks fast, like keeping checks local rather than being global.


Replies

jamiejquinnyesterday at 5:17 PM

That's interesting. Coming from C++ and Zig, the massive time "wasters" are metaprogramming features, i.e. Templates and comptime. Are Rust's macros the compile-time culprits?

show 3 replies