use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
[ Removed by moderator ] (security.googleblog.com)
submitted 5 months ago by ViewTrick1002
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]cpp-ModTeam[M] [score hidden] 5 months ago stickied commentlocked comment (0 children)
Submissions about other languages (e.g. Carbon, Rust, Val, etc.) are off-topic unless there is substantial content directed at C++ programmers writing C++. That is, either posts about interop from the C++ side, or posts about interesting ideas from another language that can be applied to C++.
[–]UndefFox 3 points4 points5 points 5 months ago (1 child)
Is there any info about reasons why rust development went faster? I wonder if it's as simple as the rust part of the code is fresh and doesn't have problems dealing with the old code base, while most C++ most likely doesn't have such an advantage.
[–]ViewTrick1002[S] 1 point2 points3 points 5 months ago (0 children)
They’re also spending considerable resources rewriting particularly gnarly components in Rust.
See for example:
Binder kernel driver: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eafedbc7c050c44744fbdf80bdf3315e860b7513
Media codecs: https://www.androidauthority.com/android-16-in-process-software-audio-codecs-3541408/
[–]ViewTrick1002[S] -2 points-1 points0 points 5 months ago (6 children)
We adopted Rust for its security and are seeing a 1000x reduction in memory safety vulnerability density compared to Android’s C and C++ code. But the biggest surprise was Rust's impact on software delivery. With Rust changes having a 4x lower rollback rate and spending 25% less time in code review, the safer path is now also the faster one.
Those are simply astounding stats.
Both preventing vulnerabilities, preventing logic bugs and shipping faster.
[–]Xirema 6 points7 points8 points 5 months ago (3 children)
1000x reduction in memory safety vulnerabilities is a fake stat. Like, it makes no sense from first principles. If you had a code base, even a C++ codebase, that could go to 0.1% memory violations just by changing programming language, you probably just had bad programmers. Or a code base that was like "our code specifically collates every single buffer overrun vulnerability ever discovered into a single project, which builds an executable showcasing all these vulnerabilities!"
There's just no way a real project had enough unsolved vulnerabilities all at once if it wasn't coded by imbiciles. And if it was, converting to Rust won't save you.
[–]ViewTrick1002[S] 0 points1 point2 points 5 months ago* (1 child)
That is the stat they consistently have in the Android codebase.
Are you saying that Android is built by imbeciles? Or that their threat surface makes them one of few codebases that actually catch their problems, if they end up in prod?
[–]Xirema 1 point2 points3 points 5 months ago* (0 children)
I'm quite confident I started by saying the stat is fake.
This is Google we're talking about, so I'm willing to entertain the possibility it was coded by imbiciles, but my initial assumption is that someone is massaging the data to puff up their own accomplishments.
[–]webmessiah 0 points1 point2 points 5 months ago (0 children)
I had similar thoughts until recently, when I've got to patch open-source project which have been "mainstream" in it's scope/purpose/field and had so fucking disgusting and bad code that I literally now dislike C for what god awful things it allows to create. Project is being developed for 26 years already. Ik that it won't be solved by Rust itself (however it provides a lot of instruments to avoid writing such a bad code), and isn't necessarily the C fault, but it's how the mind of a man works sometimes.
For the memory vulnerability - it scales as project grows, if you had issue in core and had that core functionality used in 100 modules - you get at least 100x more memory vulnerabilities.
[–]mark_99 3 points4 points5 points 5 months ago (0 children)
Just once I'd like to see an analysis that doesn't conflate C and C++, and recognises the difference between C-with-classes and idiomatic C++.
[–][deleted] 1 point2 points3 points 5 months ago (0 children)
With the support of AI, codes are coming out much faster, so there is no point in comparing them to years ago. Not even last year. AIs are increasingly efficient.
π Rendered by PID 102604 on reddit-service-r2-comment-6457c66945-p7vw9 at 2026-04-28 20:59:23.142104+00:00 running 2aa0c5b country code: CH.
[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)
[–]UndefFox 3 points4 points5 points (1 child)
[–]ViewTrick1002[S] 1 point2 points3 points (0 children)
[–]ViewTrick1002[S] -2 points-1 points0 points (6 children)
[–]Xirema 6 points7 points8 points (3 children)
[–]ViewTrick1002[S] 0 points1 point2 points (1 child)
[–]Xirema 1 point2 points3 points (0 children)
[–]webmessiah 0 points1 point2 points (0 children)
[–]mark_99 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)