←back to thread

302 points Bogdanp | 4 comments | | HN request time: 0.815s | 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 #
1. motorest ◴[] No.44396044[source]
> This seems like a clear case-study that compilation can be incredibly fast (...)

Have you tried troubleshooting a compiler error in a unity build?

Yeah.

replies(1): >>44399102 #
2. moffkalast ◴[] No.44399102[source]
It compiles in 2 seconds! Does it run? No, but it was fast!
replies(1): >>44414730 #
3. Sinidir ◴[] No.44414730[source]
Pipe to dev/null. Fastest database i have ever used.
replies(1): >>44420730 #
4. moffkalast ◴[] No.44420730{3}[source]
/dev/null is web scale