←back to thread

302 points Bogdanp | 1 comments | | HN request time: 0.223s | source
Show context
taylorallred ◴[] No.44390996[source]
So there's this guy you may have heard of called Ryan Fleury who makes the RAD debugger for Epic. The whole thing is made with 278k lines of C and is built as a unity build (all the code is included into one file that is compiled as a single translation unit). On a decent windows machine it takes 1.5 seconds to do a clean compile. This seems like a clear case-study that compilation can be incredibly fast and makes me wonder why other languages like Rust and Swift can't just do something similar to achieve similar speeds.
replies(18): >>44391046 #>>44391066 #>>44391100 #>>44391170 #>>44391214 #>>44391359 #>>44391671 #>>44391740 #>>44393057 #>>44393294 #>>44393629 #>>44394710 #>>44395044 #>>44395135 #>>44395226 #>>44395485 #>>44396044 #>>44401496 #
rowanG077 ◴[] No.44395044[source]
C hardly requires any high effort compile things. No templates, no generics, super simple types, no high level structures.
replies(1): >>44395997 #
dgb23 ◴[] No.44395997[source]
Are we seeing similar compilation speed when a Rust program doesn't use these types of features?
replies(1): >>44406898 #
1. rowanG077 ◴[] No.44406898[source]
You can't disable those features. There is no "no type-checking" mode. Or "no borrow-checking" mode. It's not opt-out.