4 ms·
I find the "slow compile time" complaint of D interesting; overall I find ldc2 to be one of the faster compilers out there. I suppose the combination of feature
by chromatin 4y ago
I find the "slow compile time" complaint of D interesting; overall I find ldc2 to be one of the faster compilers out there. I suppose the combination of features and metaprogramming used by the author is responsible for the 3-minute compile times in debug mode. While jai is evidently expected to be substantially faster (author estimates 5 sec for this codebase???), other choices like Rust would be far, far slower than D.
- dmitriid 4y ago> author estimates 5 sec for this codebase??? This expectation comes from jai compile times for the game Jonathan Blow is developing: https://www.twitch.tv/j_blow https://www.twitch.tv/j_blow It takes about 2.5 seconds to compile and link over 168k lines of code in debug mode. See e.g. https://www.twitch.tv/videos/1659970118 https://www.twitch.tv/videos/1659970118 at around 30 seconds in
- Kukumber 4y agoMy game+engine wich is composed of 37k lines of D + 22k of C code (with D's ImportC), fully recompiles in 1.2 seconds with DMD https://bpa.st/raw/WCVQ https://bpa.st/raw/WCVQ
- p0nce 4y agoTo get best compile times with D it's important not go over board with CTFE and templates.