| Issue |
EPJ Web Conf.
Volume 337, 2025
27th International Conference on Computing in High Energy and Nuclear Physics (CHEP 2024)
|
|
|---|---|---|
| Article Number | 01165 | |
| Number of page(s) | 8 | |
| DOI | https://doi.org/10.1051/epjconf/202533701165 | |
| Published online | 07 October 2025 | |
https://doi.org/10.1051/epjconf/202533701165
CppInterOp: Advancing Interactive C++ for High Energy Physics
1 Department of Physics, Princeton University, Princeton, New Jersey 08544, USA
2 European Council for Nuclear Research, Espl. des Particules 1, 1211 Meyrin, Switzerland
3 ETH Zurich
4 LBNL, MS 50B-6222, 1 Cyclotron Road, Berkeley CA 94720-8147, USA
5 Paisii Hilendarski University of Plovdiv
* e-mail: aaron.jomy@cern.ch
** e-mail: wlavrijsen@lbl.gov
*** e-mail: vassil.vassilev@cern.ch
Published online: 7 October 2025
The Cling C++ interpreter has transformed language bindings by enabling incremental compilation at runtime. This allows Python to interact with C++ on demand and lazily construct bindings between the two. The emergence of Clang-Repl, within the LLVM compiler framework, as a potential alternative to Cling highlights the need for a unified framework for interactive C++ technologies.
We present CppInterOp, a C++ interoperability library that leverages Cling and LLVM’s Clang-Repl to provide a minimalist and backward-compatible API facilitating seamless language interoperability. This provides downstream interactive C++ tools with the compiler as a service by embedding Clang and LLVM as libraries in their codebases. By enabling dynamic Python interactions with static C++ codebases, CppInterOp enhances computational efficiency and rapid development in high-energy physics. The library offers reflection and ondemand JIT compilation APIs enabling cppyy, an automatic, run-time, Python- C++ bindings generator. We also demonstrate CppInterOp’s utility in diverse computing environments through its adoption as the runtime engine for xeuscpp, a Jupyter kernel designed for C++.
CppInterOp is a general-purpose library inspired by the developments in the ROOT framework, which pushed the frontiers of interactive C++. It aims to extend this approach and serve as an integral component of ROOT, enhancing performance and resilience. This article introduces CppInterOp to the HEP community and showcases how it optimizes cross-language execution and computational tasks in high-energy physics, making it a valuable tool for researchers and developers.
© The Authors, published by EDP Sciences, 2025
This is an Open Access article distributed under the terms of the Creative Commons Attribution License 4.0, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.

