HOPE: Just-in-time Python compiler for astrophysical computations
Abstract
HOPE is a specialized 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++ while performing numerical optimization on mathematical expressions at runtime. To enable the JIT compilation, the user only needs to add a decorator to the function definition. By using HOPE, the user benefits from being able to write common numerical code in Python while getting the performance of compiled implementation.
- Publication:
-
Astrophysics Source Code Library
- Pub Date:
- November 2014
- Bibcode:
- 2014ascl.soft11005A
- Keywords:
-
- Software