A colleague of mine has been working with FORTRAN for decades, and currently operates a successful business using a model developed in the FORTRAN 2018 standard. They expressed curiosity regarding Rust, along the lines of "my daughter says it's all the rage".
The model performs a series of intensive calculations over a spatial extent (LiDAR data), and the business model operates by marketing this service to different areas. The model runs rarely, and FORTRAN is already reasonably fast, so while I can confidently claim Rust can be as fast or faster, this fails to disqualify Rust but does not give it a leg up.
"Rust is memory-safe, eliminating whole classes of common memory-related bugs," I add. But my colleague shrugs and says "this program has been pretty stable for 12 years now, I don't spend much time dealing with that."
When it comes to the microservice contribution that I intend to make to the model, the question naturally arises whether it would be better to implement it in FORTRAN, or split off the particular set of functions I am contributing into a Rust library. I am unfamiliar with the build process for FORTRAN, do any of you know if Rust and FORTRAN play nicely together?
Based on the FFI section in the Rust book and this FORTRAN FFI example, it appears that I can create a normal library crate and make the functions of interest available through a FFI. Is it this easy? Should I be reading the Rust FFI guide by @Michael-F-Bryan?