Hacker News new | ask | show | jobs
by glouwbug 360 days ago
I think the main appeal is subset lock-down and compile times. ~5000 lines in C gets me sub second iteration times, while ~5000 lines in C++ hits the 10 second mark. Including both iostream and format in C++ gets any project up into the ~1.5 second mark which kills my iteration interests.

Second to that I'd say the appeal is just watching something you've known for a long time grow slowly and steadily.

2 comments

This, and the two pages of incomprehensible compiler spam you get when you make a typo in C++.
Depends pretty much on where you do such typo.

If you mean templates, a kind of solved problem since C++17 with static_assert and enable_if, moreso in C++20 with concepts.

Use binary libraries and modules, alongside incremental compilation and linking.
I can't really afford the link time optimization losses
It is called link time optimization for a reason.
Which kills my iteration interests ;)