Abstract
AbstractThe astrophysics community uses different tools for computational tasks such as complex systems simulations, radiative transfer calculations or big data. Programming languages like Fortran, C or C++ are commonly present in these tools and, generally, the language choice was made based on the need for performance. However, this comes at a cost: safety. For instance, a common source of error is the access to invalid memory regions, which produces random execution behaviors and affects the scientific interpretation of the results.In 2015, Mozilla Research released the first stable version of a new programming language named Rust. Many features make this new language attractive for the scientific community, it is open source and it guarantees memory safety while offering zero-cost abstraction.We explore the advantages and drawbacks of Rust for astrophysics by re-implementing the fundamental parts of Mercury-T, a Fortran code that simulates the dynamical and tidal evolution of multi-planet systems.
Publisher
Cambridge University Press (CUP)
Subject
Astronomy and Astrophysics,Space and Planetary Science
Reference5 articles.
1. Anderson B. , Herman D. , Matthews J. , McAllister K. , Goregaokar M. , Moffitt J. , & Sapin S. 2015, arXiv, 1505.07383
2. Rust-Bio: a fast and safe bioinformatics library
3. Poss R. 2014, arXiv, 1407.5670
4. whfast: a fast and unbiased implementation of a symplectic Wisdom–Holman integrator for long-term gravitational simulations
Cited by
6 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献