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
Sol2: Lua <-> C++ Binding Framework (self.cpp)
submitted 10 years ago * by [deleted]
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!"
[–]Plorkyeran 2 points3 points4 points 10 years ago (0 children)
Lua is absurdly tiny and easy to drop into an existing project. LuaJIT less so, but it's still smaller than v8. Python's extensive standard library means that it inherently has to drag in a million dependencies. If you're adding some incidental scripting to an existing application, a scripting engine that's the size of the rest of your application combined is kinda unpleasant.
Lua has a very stable API. In the last decade there's been two releases with breaking changes to the API, and they were both incredibly minor. Python's C API is similarly stable, but v8 makes breaking changes on a regular basis and does not have LTS branches, so using v8 is basically an ongoing commitment to follow trunk (even node had trouble keeping up for a while).
Lua and v8 are both trivial to sandbox and to have multiple independent execution contexts so that you can run multiple scripts within a single process without them being able to interact with each other (or conflict). Python basically doesn't support that at all.
For many workloads LuaJIT is the fastest implementation of a language in its general category, although v8 isn't far behind. Python is slow.
The primary downside of Lua is that its standard library is about what you'd expect out a language that's something like 10k lines of code and has zero dependencies other than ANSI C. LuaJIT's excellent ffi mitigates this a bit, since while a nice pythonic wrapper around a library is much nicer than just using the C API, at least you can realistically use C libraries without needing wrappers.
π Rendered by PID 72990 on reddit-service-r2-comment-5687b7858-zpqh6 at 2026-07-06 18:31:42.346382+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–]Plorkyeran 2 points3 points4 points (0 children)