Webinar: C++ with Python for Algorithmic Trading

Webinar: C++ with Python for Algorithmic Trading

It’s a surprising fact that C++ and Python are often and effectively used together. They are different and tend to be used, on their own, in very different ways. Why should they be associated more than most pairs of languages? 

The answer is history. The originator of Python, Guido van Rossum, was making his name at the time when C++ was the new cool language. C++ was the tool with which most people implemented object-oriented software designs. You can see the influence in the similarities between the OO aspects of the two languages (classes, multiple inheritances, etc.). However, initially, most people saw Python as just "a better Perl" (which is why we still call Python programs “scripts”).

Fast forward 10 - 15 years and everyone’s using Python - including C++ programmers. Due to its ease of development, there are now many more libraries for Python than for C++. But: some of these are too slow in pure Python. Library writers have needed to cross the language divide from the beginning. Thus, packages like ctypes, SWIG, Boost.Python and PyBind11 (amongst others) have been developed.

At the same time, in a large system with many types of users and developers, the availability of C++ to Python projects is very convenient. Processing-intensive functionality can be written in efficient C++ and then exposed to Python. This has, in fact, yielded many real-world use cases. In finance, for example, complex quant libraries can be provided for rapid experimentation in Python by structures and others.

The vast array of Python packages has also led to the reverse arrangement. By embedding a Python interpreter in C++ code, you get access to all that functionality. This is useful, for instance, for regular expression parsing. In another use, Python can be used as a scripting language within a C++ application and executed by the embedded interpreter on the fly.

No alt text provided for this image

In our webinar, Antony Peacock, a professional financial programmer and a voting member of the International ISO C++ Committee, will discuss some of the ways Python is used with C++ in practice. He will talk through some ways large trading houses and investment banks where he’s worked combine these languages.

Rainer Grimm himself will present specific Python/C++ uses and techniques. He will look at both C++ incorporated into Python and with the Python interpreter embedded in C++.

Finally, Richard Hickling will show us the code. He will step through the exposure of a simple C++ financial use case in Python and demo it for us.

 

Here are the details:

Very interesting, I used python for gradient descent in our c++ automaton in my previous job. Do you plan to share a Replay/slides ?

Like
Reply

To view or add a comment, sign in

More articles by Rainer Grimm

  • Charity run for ALS

    Tomorrow, on the 28th, there will be a charity run for ALS in Rottenburg. The course is exactly 1 km long.

    2 Comments
  • Small Safety Improvements in the C++ 26 Core Language

    Safety is an important concern in C++26. Contracts are probably the most important feature for safety.

    1 Comment
  • My ALS Journey (30/n): Cippi at the CppCon

    This week was very exciting for Cippi. She visited CppCon in Aurora, near Denver.

    2 Comments
  • Contracts: Evaluation Semantic

    After briefly presenting the details of contracts in my last article, “Contracts: A Deep Dive“, I would like to take a…

  • My ALS Journey (29/n): I feel Good

    I often receive messages asking about my health and wishing me well. I am very happy to receive these messages and just…

    5 Comments
  • Contracts: A Deep Dive

    August 25, 2025/in C++26/by Rainer GrimmI already introduced contracts in the article “Contracts in C++26”. In this…

  • My ALS Journey (28/n): Bureaucracy – The German Disease

    Today I want to write about a sad topic. Bureaucracy in the German healthcare system is becoming increasingly absurd.

    2 Comments
  • Data-Parallel Types: Algorithms

    The data-parallel types library has four special algorithms for SIMD vectors. The four special algorithms are min, max,…

  • My ALS Journey (27/n): An Emergency Call

    Firstly, I would like to say that I am doing very well and have made a full recovery from my incident. However, I would…

    8 Comments
  • Data-Parallel Types: Reduction

    In this article, I will discuss reduction and mask reduction for data-parallel types. Reduction A reduction reduces the…

Others also viewed

Explore content categories