Rust represents a major advancement in production programming languages because of its success in bridging the gap between high-level application programming and low-level systems programming. At the heart of its design lies a novel approach to ownership that remains highly programmable.
In this talk, we will describe our ongoing work on providing a formal semantics for Rust that captures how programmers can understand ownership and borrowing without trying to grasp the details of lifetime analysis. Our model is close to source-level Rust (but with full type annotations) which differs from the recent RustBelt effort that essentially models MIR, a CPS-style IR used in the Rust compiler. Moreover, while RustBelt’s goal is to verify the unsafe code in Rust’s standard library, ours is much less ambitious. We model Rust’s standard library APIs using primitives, which is entirely sufficient for capturing their expressive power, but yields a simpler model of Rust and its type system that we think PL researchers (you!) will find easier to use as a starting point for investigating extensions to Rust. Unlike RustBelt, we prove type soundness using progress and preservation instead of Kripke logical relation. Finally, our semantics is a family of languages of increasing expressive power—where, following Felleisen, “expressive power of languages” is defined in terms of observational equivalence. Separating the language into different levels of expressive power provides useful information for future work on Rust verification and compiler optimization.
Fri 28 SepDisplayed time zone: Guadalajara, Mexico City, Monterrey change
10:20 - 12:00 | |||
10:20 25mTalk | Safely Mixing OCaml and Rust ML Stephen Dolan University of Cambridge | ||
10:45 25mTalk | Rust Distilled: An Expressive Tower of Languages ML Aaron Weiss Northeastern University, Daniel Patterson Northeastern University, Amal Ahmed Northeastern University, USA Link to publication Pre-print | ||
11:10 25mTalk | Generating Mutually Recursive Definitions ML Pre-print | ||
11:35 25mTalk | Experience Report: Type-Safe Multi-Tier Programming with Standard ML Modules ML Martin Elsman University of Copenhagen, Denmark, Philip Munksgaard Intelligent Alpha AG, Switzerland, Ken Friis Larsen DIKU, University of Copenhagen Link to publication |