Sat 29 Aug 2026 14:45 - 15:30 at IP139 Kelley - Afternoon Session Chair(s): Jeffrey Young

We investigate the effects on code quality of the design patterns typestate and newtype in the language Rust, by conducting three case studies from production code, evaluated through expert interviews, static code analysis and benchmarks. The findings indicate that: (1) Typestate improves code faultlessness and testability, but comes at the cost of more boilerplate code and can degrade readability. Code with extensive branching logic and many invariants likely benefits most from the pattern. (2) Newtype combined with the “Parse, don’t validate” principle improves code quality at a low cost and prevents invalid states at runtime.

Sat 29 Aug

Displayed time zone: Eastern Time (US & Canada) change

14:00 - 15:30
Afternoon SessionFUNARCH at IP139 Kelley
Chair(s): Jeffrey Young Canonical
14:00
45m
Talk
From Lambda to Ledger: An Architectural Comparison of Plinth and Plutarch
FUNARCH
Seungheon Oh Input Output, Ziyang Liu Input Output, USA, Philip Wadler IOG; University of Edinburgh
DOI
14:45
45m
Talk
Functional State Machines in Rust: Typestate and Newtype Patterns (Experience Report)
FUNARCH
Leon Heuer NORDAKADEMIE gAG Hochschule der Wirtschaft, Falk Woldmann Lu Otto GmbH & Co. KGaA, Jan Haase NORDAKADEMIE gAG Hochschule der Wirtschaft
DOI