HOPE: A Python Just-In-Time compiler for astrophysical computations
Joel Akeret, Lukas Gamper, Adam Amara, Alexandre Refregier (ETH, Zurich)

TL;DR
HOPE is a Python JIT compiler tailored for astrophysical computations that significantly boosts performance, often surpassing existing solutions, by translating Python code into optimized C++ at runtime.
Contribution
HOPE introduces a specialized Python JIT compiler for astrophysics that achieves near-C++ speeds without requiring code modifications.
Findings
HOPE improves Python performance by 2 to 120 times.
HOPE achieves speeds comparable or superior to C++.
Benchmark results show HOPE outperforms existing frameworks.
Abstract
The Python programming language is becoming increasingly popular for scientific applications due to its simplicity, versatility, and the broad range of its libraries. A drawback of this dynamic language, however, is its low runtime performance which limits its applicability for large simulations and for the analysis of large data sets, as is common in astrophysics and cosmology. While various frameworks have been developed to address this limitation, most focus on covering the complete language set, and either force the user to alter the code or are not able to reach the full speed of an optimised native compiled language. In order to combine the ease of Python and the speed of C++, we developed HOPE, a specialised Python just-in-time (JIT) compiler designed for numerical astrophysical applications. HOPE focuses on a subset of the language and is able to translate Python code into C++…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
