vix.ing · top · new · best · stats · spec

What can the programming language Rust do for astrophysics?

2016/10/01 by Sergi Blanco-Cuaresma, S. Blanco-Cuaresma, Emeline Bolmont +1 · 2 voices
Computer Science · Physics and Astronomy · #Abstraction #Advanced Data Storage Technologies #Computer science #Fortran #Parallel Computing and Optimization Techniques #Programming language #Rust (programming language) #Scientific Research and Discoveries #Source code #astro-ph.IM #cs.PL

paper · pdf · doi:10.1017/s1743921316013168

To appear in the proceedings of the IAU Symposium 325 on Astroinformatics

openalex publication_date 2016/10/01 · arxiv created 2017/02/09 · arxiv updated 2017/06/14 · openalex created_date 2025/10/10 · openalex updated_date 2026/08/05

Abstract

The 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.

Discussions

Related