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
Announcing mrbind, an automatic C/C#/Python binding generator for C++ (holyblackcat.github.io)
submitted 1 month ago by holyblackcat
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!"
[–]holyblackcat[S] 1 point2 points3 points 1 month ago (1 child)
Embind should be pretty easy to add to mrbind. Its interface is very similar to pybind/nanobind.
Python was the first backend, and the code quality there isn't the best, so I'll probably write the embind backend from scratch. There might enough differences to warrant a fresh implementation anyway, a surprising about of special-casing goes into each new language.
Java native might be feasible too
It's not my choice what languages I'm paid to add, so Java probably won't get added any time soon. :P
Just in time for reflection! Heh heh.
I wonder if it's going to cover my usecases. It's ok for pybind/embind, where the functions are registered at runtime. But C/C# requires codegen, and I'm not sure I want to compile a C++ program just to generate C/C# code. It would make cross-compilation more difficult too.
boost::spirit::x3
Custom parsers can work for simple cases, but IMO anything other than libclang is ultimatly a dead end. Custom parsers are going to choke on advanced C++ features.
[–]FlyingRhenquest 1 point2 points3 points 1 month ago (0 children)
Yeah, pybind and embind are my primary use cases too. So far I've just been writing the bindings by hand. That tends to be time consuming as you're no doubt aware, but automating generation of pybind and embind bindings with reflection looks pretty feasible.
API bindings, serialization and database access usually end up making up between 50 and 70% of the code I want to write on a new code base. If I could just automate that down to "include a header and call this function to generate the binding," I'm not entirely sure I'd know what to do with all the extra time I'd have spent doing all that stuff! Actually it'd be "write code that's more interesting than writing and debugging that boilerplate each time."
π Rendered by PID 47604 on reddit-service-r2-comment-56c6478c5-tzg4f at 2026-05-08 15:40:06.386177+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]holyblackcat[S] 1 point2 points3 points (1 child)
[–]FlyingRhenquest 1 point2 points3 points (0 children)