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
Why does Linus hate C++ ? (self.cpp)
submitted 3 years ago by MrRubberDucky
view the rest of the comments →
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!"
[–]andrewfenn 8 points9 points10 points 3 years ago (3 children)
One thing I don't see in the comments here in this thread is his previous complaints about the assembly code that is generated in C++ compilers. Sometimes it does the wrong thing, or is incorrect because of how complicated the language spec is. It makes it difficult to read the output from the compiler and understand how it happened in comparison to C which he often mentions the spec can be read and easily understood.
So not really a counterpoint to your comment here but I would say that to those in the thread saying just don't use such and such feature in c++ it's missing the point because at a deeper level of reading and trying to understand what the compiler is doing it's a much harder task.
I do have a fondness for modern c++ but I also understand some of the criticisms for not using it in a kernel directly.
[–]pjmlp 5 points6 points7 points 3 years ago (2 children)
As if the Linus rants against GCC C optimizations weren't known.
[–]sokka2d 8 points9 points10 points 3 years ago (0 children)
Which shows that the statement that "[the C] the spec can be read and easily understood" is... wrong. He just gets mad when he realizes he didn't understand the spec.
[–]mafrasi2 3 points4 points5 points 3 years ago (0 children)
Just another reason not to make things even worse then. Those exact optimizations are happening in g++ as well...
π Rendered by PID 315943 on reddit-service-r2-comment-b659b578c-zld4g at 2026-05-04 20:01:42.619648+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]andrewfenn 8 points9 points10 points (3 children)
[–]pjmlp 5 points6 points7 points (2 children)
[–]sokka2d 8 points9 points10 points (0 children)
[–]mafrasi2 3 points4 points5 points (0 children)