Transition to the memory safe natively compiled programming languages is a major software development trend in recent years, which eliminates memory-related security exploits, enables a fearless concurrency and parallelization, and drastically improves ergonomics and speed of software development. Modern memory-safe programing languages, such as Rust, are currently not used for developing molecular modeling and simulation software despite such obvious benefits as faster development cycle, better performance and smaller amount of bugs. This work introduces MolAR-the first memory-safe library for analysis of MD simulations written in Rust. MolAR is intended to explore the advantages and challenges of implementing molecular analysis software in the memory-safe natively compiled language and to develop specific memory-safe abstractions for this kind of software. MolAR demonstrates an excellent performance in benchmarks outperforming popular molecular analysis libraries and tools, which makes it attractive for implementing computationally intensive analysis tasks. MolAR is freely available under Artistic License 2.0 at https://github.com/yesint/molar.
Read full abstract