News for hackers. Stuff that matters.
Re:The Two Factions of C++ by gpderetta on Monday November 25, 2024 @09:24AM (#42236538)
Google test and mock are quite powerful but are a big hit at both compile time and runtime, which matters for quick edit-compile-fix loops.

I still go back and forth on whether google test and mock are worth it.

Google benchmark is also nice.

Re:The Two Factions of C++ by jimmaswell on Monday November 25, 2024 @12:10PM (#42237951)
Does it not support only running some or no tests? I only run the full test suite rarely, close to releases.
Re:The Two Factions of C++ by rangestransform on Monday November 25, 2024 @02:17PM (#42239234)
> big hit at both compile time and runtime, which matters for quick edit-compile-fix loops

honestly if you write C++ for work, there's no excuse for your company to not give you the beefiest dev machine that money can reasonably buy. given that rust exists, I think "get a faster computer" is a totally valid answer to build times, especially now that skylake malaise era is over and CPUs are getting faster

Re:The Two Factions of C++ by badsectoracula on Monday November 25, 2024 @02:57PM (#42239584)
> given that rust exists, I think "get a faster computer" is a totally valid answer to build times

I find this amusing because one of the main reasons i avoid Rust (in the sense that i prefer to build things written in other languages if possible - i don't mind if someone else uses it and gives me a binary/library i can use - and it never went beyond "i might check this at some point, sometime, maybe" in my mind) is the build times compared to most other compilers :-P.

Also, at least personally, if i get a faster computer i want my workflow to be faster.

Re:The Two Factions of C++ by tmtvl on Tuesday November 26, 2024 @05:10AM (#42244270)
You may want to add a '/s' at the end of your post there, because sarcasm doesn't really translate on the internet. The only way I can tell it's sarcasm is because nobody would really go 'throw away the old stuff, buy new stuff, waste more, pollute the oceans, consume, CONSUME!!!'.
Re:The Two Factions of C++ by rangestransform on Tuesday November 26, 2024 @12:16PM (#42247604)
> 640k should be enough for everyone