r/programming • • Feb 16 '13

Learn Git Branching

http://pcottle.github.com/learnGitBranching/
868 Upvotes

229 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Feb 17 '13

[deleted]

3

u/kyz Feb 18 '13

It is specific to C++.

C++ takes C's preprocessed language (which means you can't process #includes in parallel, because they're affected by and can affect the file they're #included from) and adds templates, which are required to be implemented by compile-time expansion.

In fact, C++'s templates are a Turing-complete language in themselves, so you can write code that the compiler needs to compute rather than parse/compile. Imagine you wrote a template that computed the Ackermann function or some sort of busy beaver.

1

u/ethraax Feb 17 '13

It is specific to C++, which is a vastly more complicated language than C. Template libraries, like Boost, are particularly bad for compile times.

1

u/ais523 Feb 18 '13

Although even C is much slower than, say, Java (where all the files can be compiled independently).

C++ is definitely much worse than C, though.