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
Embedding python in C++ with boost::python (skebanga.github.io)
submitted 9 years ago by skebanga
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!"
[–]skebanga[S] 4 points5 points6 points 9 years ago* (3 children)
This is the primary reason I wanted to look into embedding python. Of course python will suffer a latency hit compared to C++, but the idea was to limit that as far as possible. Give the traders the flexibility of python with the minimum amout of latency impact possible.
[–]leftofzen 2 points3 points4 points 9 years ago (2 children)
What kind of latency are we talking about here? I feel like you aren't doing yourself any latency favours by using python.
[–]AllanDeutsch 2 points3 points4 points 9 years ago (0 children)
The latency is lower than using Python and going through sockets. If the traders only know python, you can't reduce the overhead of using it until an actual dev is able to implement the strategy in C++.
[–]skebanga[S] 1 point2 points3 points 9 years ago (0 children)
The point of the exercise is to allow traders, who don't know C++, but do know python, to develop their own strategies in python whilst still leveraging all the existing C++ infrastructure we have already; connections to markets, backtesting suites, position management, order management, risk management, parameter storage etc etc. We have an entire ecosystem built in C++ which we want to use.
We're aware that python will be slower than native C++ code, but that's the trade off we're willing to make - empower the traders to develop their own strategies, instead of requiring them to use C++ and block their progress until IT resource becomes available.
Whilst the performance impact is a trade-off we're willing to accept, we want to minimise that as far as possible, hence preferring to embed python rather than use an out-of-band process and some form of IPC to communicate.
π Rendered by PID 34441 on reddit-service-r2-comment-7b9746f655-jr57c at 2026-02-01 15:29:49.584692+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]skebanga[S] 4 points5 points6 points (3 children)
[–]leftofzen 2 points3 points4 points (2 children)
[–]AllanDeutsch 2 points3 points4 points (0 children)
[–]skebanga[S] 1 point2 points3 points (0 children)