News for hackers. Stuff that matters.
Re:C++ at the End of 2022 by DrBazza on Monday January 02, 2023 @03:36AM (#34215725)
Low numbers in the 649 people that found and answered that survey, and are in the intersection of "people that answer online surveys" and "probably aren't beginners at C++".

It would of course be helpful if all the many, many, many, build systems for C++ have 'integrating sanitizers' in their "hello world" tutorials, rather than buried in some arcane man page.

Re:C++ at the End of 2022 by pjmlp on Monday January 02, 2023 @03:42AM (#34215770)
That is why it was so relevant that clang introduced static analysis as part of the compiler, instead of having to get hold of lint.

However it isn't for it being there (VC++ can even do analysis per build), that people are rushing to adopt them after all these decades (lint was born in 1979).

So the social aspect matters a lot, and we keep losing there.

Re:C++ at the End of 2022 by DrBazza on Monday January 02, 2023 @05:15AM (#34216288)
Had I answered that survey, I would have added a 0.1% or so to the sanitizers. Everywhere I've worked (now) runs sanitizers over the build.

> So the social aspect matters a lot, and we keep losing there.

Unfortunately.

For example, there's a "cmake" starter on github, that is everything including santizers, but it is, frankly, inaccessible to newbies that just want to learn C++ "from scratch". Compare that to... Rust. You create a new crate from the cli in one command, and then you never have to mess around with the build system. Or even java/kotlin... `gradle init`... and you're mostly done. C++? "Spends 15 minutes reading "build system X" docs...".

Re:C++ at the End of 2022 by damidekronik on Monday January 02, 2023 @06:19AM (#34216716)
I wish it was only 15 minutes.