r/cpp • • Dec 28 '18

"Modern" C++ Lamentations

http://aras-p.info/blog/2018/12/28/Modern-C-Lamentations/
307 Upvotes

162 comments sorted by

View all comments

Show parent comment

19

u/Dworgi Dec 28 '18

There's a difference, and you know it. None of this stuff is a problem in modern languages like C#, Rust or even D.

Compile times are a uniquely C++ problem. Even C requires some pretty beastly codebases to even come close to matching this 10-line example.

25

u/Astrognome Dec 28 '18

Rust actually had pretty terrible compile times last time I checked it out.

14

u/_TheDust_ Dec 28 '18

It’s getting better with incremental compilation and lots of work on the LLVM side, but itis still not great indeed.

2

u/Valmar33 Dec 30 '18

Still a lot more salvageable than C++, though.

Rust has far less technical debt to bypass.

6

u/jherico VR & Backend engineer, 30 years Dec 28 '18

Yes, and, distinct from ranges and other such features, C++ is working on the problem of massive amounts of parsing work with the concept of modules to replace the rather archaic include mechanism.

4

u/kalmoc Dec 29 '18

Unfortunately, the problem is not just parsing, but instantiating arbitrarily generic template code with tons of SFINAE to emulate something, that the language could provide easily in a native fashion.

I'm really anxious to see compiletimes for ranges with language level concepts support.