Open timotheecour opened 6 years ago
Note that the example in the NIM article was only with 1 source file. Because Nim compiles to C, it suffers from the same scalability compile-time issues that C suffers from. The core issue being that every source file is compiled in its own universe, where everything that is referenced needs to be redefined for every source file. I believe Nim tries to mitigate this by only defining whatever is being used by the file, which helps, but can't compete with a solution where analyzed code is "reused" instead of "redefined" with every source file.
(ported from https://github.com/timotheecour/D_vs_nim/issues/11#issue-308258917)
Faster Command Line Tool in <insert language>
benchmark that was started by the D community, Nim also replicated it, TL;DR D and Nim had the same speed and same compilation time.EDIT