PythonCpp

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? 

 

 PythonCpp

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.

three

 

 

Rainer D 6 P2 500x500Modernes C++ Mentoring

  • "Fundamentals for C++ Professionals" (open)
  • "Design Patterns and Architectural Patterns with C++" (open)
  • "C++20: Get the Details" (open)
  • "Concurrency with Modern C++" (open)
  • "Generic Programming (Templates) with C++": October 2024
  • "Embedded Programming with Modern C++": October 2024
  • "Clean Code: Best Practices for Modern C++": March 2025
  • Do you want to stay informed: Subscribe.

     

     

     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:

     

     

     

     

     

     

     

    Thanks a lot to my Patreon Supporters: Matt Braun, Roman Postanciuc, Tobias Zindl, G Prvulovic, Reinhold Dröge, Abernitzke, Frank Grimm, Sakib, Broeserl, António Pina, Sergey Agafyin, Андрей Бурмистров, Jake, GS, Lawton Shoemake, Jozo Leko, John Breland, Venkat Nandam, Jose Francisco, Douglas Tinkham, Kuchlong Kuchlong, Robert Blanch, Truels Wissneth, Mario Luoni, Friedrich Huber, lennonli, Pramod Tikare Muralidhara, Peter Ware, Daniel Hufschläger, Alessandro Pezzato, Bob Perry, Satish Vangipuram, Andi Ireland, Richard Ohnemus, Michael Dunsky, Leo Goodstadt, John Wiederhirn, Yacob Cohen-Arazi, Florian Tischler, Robin Furness, Michael Young, Holger Detering, Bernd Mühlhaus, Stephen Kelley, Kyle Dean, Tusar Palauri, Juan Dent, George Liao, Daniel Ceperley, Jon T Hess, Stephen Totten, Wolfgang Fütterer, Matthias Grün, Phillip Diekmann, Ben Atakora, Ann Shatoff, Rob North, Bhavith C Achar, Marco Parri Empoli, Philipp Lenk, Charles-Jianye Chen, Keith Jeffery, Matt Godbolt, and Honey Sukesan.

    Thanks, in particular, to Jon Hess, Lakshman, Christian Wittenhorst, Sherhy Pyton, Dendi Suhubdy, Sudhakar Belagurusamy, Richard Sargeant, Rusty Fleming, John Nebel, Mipko, Alicja Kaminska, Slavko Radman, and David Poole.

    My special thanks to Embarcadero
    My special thanks to PVS-Studio
    My special thanks to Tipi.build 
    My special thanks to Take Up Code
    My special thanks to SHAVEDYAKS

    Modernes C++ GmbH

    Modernes C++ Mentoring (English)

    Do you want to stay informed about my mentoring programs? Subscribe Here

    Rainer Grimm
    Yalovastraße 20
    72108 Rottenburg

    Mobil: +49 176 5506 5086
    Mail: schulung@ModernesCpp.de
    Mentoring: www.ModernesCpp.org

    Modernes C++ Mentoring,

     

     

    0 replies

    Leave a Reply

    Want to join the discussion?
    Feel free to contribute!

    Leave a Reply

    Your email address will not be published. Required fields are marked *