6–9 Nov 2023
ECAP (Erlangen Centre for Astroparticle Physics)
Europe/Zurich timezone

Automatic generation of Julia bindings to libraries written C++

7 Nov 2023, 09:30
15m
ECAP (Erlangen Centre for Astroparticle Physics)

ECAP (Erlangen Centre for Astroparticle Physics)

Nikolaus-Fiebiger-Straße 2 91058 Erlangen Germany
Open talk - 30min

Speaker

Philippe Gras (Université Paris-Saclay (FR))

Description

HEP has a large legacy of code written in C++. Access to this code from Julia can be done using the CxxWrap.jl package. It requires to write some piece of C++ code that specifies the classes and methods to bind. Despite its simplicity, writing this code and maintaining it can be time-consuming for large libraries. We will present the WrapIt! tool that automatizes the generation of the code. The tool has been designed to allow adding Julia binding to a C++ library with minimal effort and code maintenance. The list of methods and classes to bind are extracted from the library header file and the configuration required by the tool is minimal. We will present how the automation is implemented, how the tool is used and its current limitations. The development to foresee to remove these limitations will be also presented.

Author

Philippe Gras (Université Paris-Saclay (FR))

Presentation materials