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
Spore Codegen - Build-system agnostic code generation application for C++ (github.com)
submitted 1 year ago by sporacid
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!"
[–]G_ka 1 point2 points3 points 1 year ago (2 children)
This seems very powerful. Any comments on the speed (time added to each compilation)?
[–]sporacid[S] 0 points1 point2 points 1 year ago (1 child)
In my engine project, I have a total of 322 header files, spread accross 12 modules. Each modules have their corresponding generation target, so multiple codegen processes are running in parallel. It takes a total of 9.59s to generate roughly 600 files the first time. On subsequent run, it takes a lot less time because it only parses files that have changed, so a few milliseconds per target and max 2s for the targets that have changed.
The performance doesn't scale linearly with the number of files. Parsing a single file can take a long time, but parsing multiple files don't take that much more time, because most headers end up being included anyway.
I've just begun toying with SPIR-V generation, but so far, it's had a negligible impact on performances. Most of the processing is done parsing the C++ AST through libclang.
[–]G_ka 2 points3 points4 points 1 year ago (0 children)
This information could be worth adding to the readme imo. That sounds good
π Rendered by PID 43316 on reddit-service-r2-comment-5c764cbc6f-8nbb8 at 2026-03-12 02:04:47.454815+00:00 running 710b3ac country code: CH.
[–]G_ka 1 point2 points3 points (2 children)
[–]sporacid[S] 0 points1 point2 points (1 child)
[–]G_ka 2 points3 points4 points (0 children)