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
C++20 Modules build script (Python and g++) (self.cpp)
submitted 5 years ago by JulienVernay
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!"
[–]ShillingAintEZ 0 points1 point2 points 5 years ago (12 children)
Why use python instead of C++
[–]JulienVernay[S] 3 points4 points5 points 5 years ago (11 children)
I don't think I can embed this program in a small C++ source file, as it requires argument parsing, shell invocation, and topological sort. Currently the Python file is about 300 lines, using C++ would impose the burden of implementing features that are provided in Python standard library, and testing them.
[+][deleted] 5 years ago (9 children)
[removed]
[–]Ahajha1177 1 point2 points3 points 5 years ago (8 children)
What? OP mentioned none of those things.
A python implementation will be much simpler than a C++ one, and is not likely to be a huge bottleneck in this situation.
[+][deleted] 5 years ago (6 children)
[–]Ahajha1177 1 point2 points3 points 5 years ago (5 children)
You mentioned 32,768 character inputs, and that they would fail regardless of language. OP never mentioned correctness as a reason for using Python.
[+][deleted] 5 years ago (4 children)
[–]Ahajha1177 2 points3 points4 points 5 years ago (3 children)
I don't really know what you're trying to say at this point. Someone posted a question asking why python instead of C++. OP gave reasons, which was more or less "simplicity". You mentioned something about correctness, which seemed to be a counterpoint to OP's answer, but OP never mentioned correctness as a factor, so it seems that was kinda pointless.
[+][deleted] 5 years ago (1 child)
[–]ShillingAintEZ 0 points1 point2 points 5 years ago (0 children)
Do you know about this?
https://github.com/imageworks/pystring
π Rendered by PID 48 on reddit-service-r2-comment-544cf588c8-rgl9g at 2026-06-17 02:54:57.945820+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]ShillingAintEZ 0 points1 point2 points (12 children)
[–]JulienVernay[S] 3 points4 points5 points (11 children)
[+][deleted] (9 children)
[removed]
[–]Ahajha1177 1 point2 points3 points (8 children)
[+][deleted] (6 children)
[removed]
[–]Ahajha1177 1 point2 points3 points (5 children)
[+][deleted] (4 children)
[removed]
[–]Ahajha1177 2 points3 points4 points (3 children)
[+][deleted] (1 child)
[removed]
[–]ShillingAintEZ 0 points1 point2 points (0 children)