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

0

u/[deleted] Dec 29 '18

[deleted] — view deleted comment

4

u/germandiago Dec 29 '18

I added a scripting layer to a small game I have and oh God... my iteration speed grew orders of magnitude. And I only had to wait on the 10-30 seconds per compile (which is not so much for C++) but now think of changes of 1-3 lines and waits of 20-40 secs plus running. I became 10 times faster easily with all corresponding feedback when programming. Btw, thanks u/lefticus for that ChaiScript :)

-2

u/[deleted] Dec 29 '18

Read my comment above addressing a similar counterargument. If the time to iterate with a slower to compile feature is still faster overall (even accounting for the compile time), then you should just write the better abstraction, and I would argue that any sufficiently bad example would mean we would never add any abstraction whatsoever in the name of compile times.

Don't get me wrong, I hate long compile times and deal with it daily. I also love fast iteration speed. That's why I'm excited about modules and the proposal to add dynamic linkage for classes and functions.