Safe systems programming in Rust: The promise and the challenge

Ralf Jung, Jacques-Henri Jourdan, Robbert Krebbers, Derek Dreyer
[Google Scholar] [DBLP] [Citeseer] [url]
Read: 05 March 2021

Communications of the ACM
Association for Computing Machinery
2021
Note(s): Rust language, Rust unsafe code
Papers: jung:popl:2017, jung:popl:2020, tofte:inco:1997, grossman:pldi:2002

This is a good introduction for PL researchers of the Rust language, it’s type system and its approach to safety. It reuses explanations from the authors’ earlier works (jung:popl:2017, jung:popl:2020) but with more space dedicated to explanation making this the best place to start in exploring their work as well as a good way for PL people to map Rust concepts onto their existing concepts.

The bulk of the paper explains how Rust’s type system controls aliasing in order to make mutation, memory management and concurrency safe based on ideas from region-based memory allocation in tofte:inco:1997 and grossman:pldi:2002.

The really interesting thing about Rust is that, alongside that decidable, explainable type system, it allows “unsafe code” that may break the rules internally but is expected to provide a safe API to the rest of Rust. (See jung:popl:2020.)

[Note that this summary is based on the PDF submitted to CACM for publication – the final version has a slightly different title, etc.]