News for hackers. Stuff that matters.
Re:Why should I have written ZeroMQ in C, not C++ (2012) by the_why_of_y on Thursday May 21, 2015 @07:21PM (#9585940)
The super-slow compilation speed is mostly because C++ encourages massive all-inline template libraries like the standard C++ library and boost, which need to be parsed and have the used templates instantiated for every compilation unit.

Here's idiomatic hello world, with <iostream> vs. <stdio.h>

> g++ -E hello.cc | wc -l

17906

> gcc -E hello.c | wc -l

842

There are no comments on this comment yet.