8โ€“12 Sept 2025
Hamburg, Germany
Europe/Berlin timezone

Static compilation of Julia packages for integration with exisitng HEP codebases: a case study with JetReconstruction.jl

8 Sept 2025, 17:20
20m
ESA M

ESA M

Oral Track 1: Computing Technology for Physics Research Track 1: Computing Technology for Physics Research

Speaker

Mateusz Jakub Fila (CERN)

Description

The Julia programming language is considered a strong contender as a future language for high-energy physics (HEP) computing. However, transitioning to the Julia ecosystem will be a long process and interoperability between Julia and C++ is required. So far several successful attempts have been made to wrap HEP C++ packages for use in Julia. It is also important to explore the reverse direction, allowing Julia code to be called from existing HEP codebases, written primarily in C++ and Python, which would significantly improve potential adoption of Julia code. With recent developments in Julia enabling it to produce statically compiled code, this approach is becoming increasingly feasible, and investigating this potential for the benefit of HEP community is the focus of this work.

This work presents a case study of statically compiling the JetReconstruction.jl package - a highly performant, native Julia implementation of sequential jet reconstruction algorithms. Two different backends for Julia code compilation are compared: the existing PackageCompiler.jl and the new static compilation feature of Julia language, which is one of the major improvements in the upcoming Julia 1.12 release. The performance of the statically compiled JetReconstruction.jl is compared with both native Julia code and C++ FastJet.

Significance

This is a novel work not only within the HEP context but represents one of the first studies using Julia static compilation also outside of HEP. The updates on status JetReconstruction.jl were given on several conferences and workshops but static compilation, which is the main focus of this work, was not previously presented.

Authors

Presentation materials