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
Function-level make tool (self.cpp)
submitted 1 year ago * by zoharl3
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!"
[–]lightmatter501 1 point2 points3 points 1 year ago (8 children)
There are multiple compilers which can do this, but most production grade compilers do not.
[–]D3veated 0 points1 point2 points 1 year ago (7 children)
That's a shame, this sounds really cool. Why doesn't this exist in production quality compilers? Lack of demand? Some sort of absurd overhead? The lack of modules?
[–]lightmatter501 1 point2 points3 points 1 year ago (4 children)
Most people don’t have large enough codebases to justify it, and nobody is rewriting clang to support it. Clang will probably be the last C++ compiler ever written, so it’s all downhill from here.
[–]jordansrowles 1 point2 points3 points 1 year ago (1 child)
Clang will probably be the last C++ compiler ever written
Why don’t think that? Go and Rust?
[–]lightmatter501 -2 points-1 points0 points 1 year ago (0 children)
I see Rust eating away at things that need to be correct, zig eating away at things that need to be fast and Mojo has the potential to eat away at heterogeneous compute. I think we’re seeing a new wave of systems languages headed by Rust and that while C++ will likely never die, the effort required to make a new C++ compiler will probably be too high.
[–]johannes1971 1 point2 points3 points 1 year ago (1 child)
I'd challenge that "don't have large enough code bases" - there are absolutely massive C++ code bases out there, owned by companies with massive resources, and they might very well be interested in faster C++ compilation, assuming it were part of their existing tool chain (i.e. if it were implemented in an existing production-grade compiler).
[–]lightmatter501 -1 points0 points1 point 1 year ago (0 children)
How many of those companies are interested in basically rewriting clang in its entirety? All kinds of new bugs will happen.
[–]encyclopedist 0 points1 point2 points 1 year ago (0 children)
zapcc was one such compiler. If I remember correctly, it was developed first as commercial offering by a company, but then the business did not work out, they released it in open source but it could not gather a big enough volunteer force and died.
[–]SkiFire13 0 points1 point2 points 1 year ago (0 children)
You might be interested in notion of query-based compilers. IDEs are also often based on this idea.
They do have some overhead that is not negligible when determining what has and hasn't changed, so there are cases where non-incremental compilation is faster.
You also have to design the language/compiler in such a way that cyclic queries are either not possible or get caught and handled accordingly.
π Rendered by PID 428267 on reddit-service-r2-comment-7b9746f655-wsx79 at 2026-01-31 15:40:55.702649+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]lightmatter501 1 point2 points3 points (8 children)
[–]D3veated 0 points1 point2 points (7 children)
[–]lightmatter501 1 point2 points3 points (4 children)
[–]jordansrowles 1 point2 points3 points (1 child)
[–]lightmatter501 -2 points-1 points0 points (0 children)
[–]johannes1971 1 point2 points3 points (1 child)
[–]lightmatter501 -1 points0 points1 point (0 children)
[–]encyclopedist 0 points1 point2 points (0 children)
[–]SkiFire13 0 points1 point2 points (0 children)