On Wednesday, 3 June 2015 at 07:50:53 UTC, Paulo Pinto wrote:
On Wednesday, 3 June 2015 at 07:05:37 UTC, Dicebot wrote:
Project size is irrelevant here. I had 500 line C++ project
that took 10 minutes to compile (hello boost::spirit). It is
impossible for C++ to compile faster than D by design. Any
time it seems so you either aren't comparing same thing or get
misinformed. Or do straightforward separate compilation.
Even C.
Now really? C was designed at a time where you couldn't even hold
the source file in memory, so there is not even a need for an
explicit AST.
C can essentially be "streamed" in separate passes:
cpp->cc->asm->linking
If compiling C is slow, it is just the compiler or the build
system, not the language.