Thread and Memory-Safe Programming with CLASS
Abstract
CLASS is a proof-of-concept general purpose linear programming language, flexibly supporting realistic concurrent programming idioms, and featuring an expressive linear type system ensuring that programs (1) never misuse or leak stateful resources or memory, (2) never deadlock, and (3) always terminate. The design of CLASS and the strong static guarantees of its type system originates in its Linear Logic and proposition-as-types foundations. However, instead of focusing on its theoretical foundations, this paper briefly illustrates, in a tutorial form, an identifiable CLASS session-based programming style where strong correctness properties are automatically ensured by type-checking. Our more challenging examples include concurrent thread and memory-safe mutable ADTs, lazy stream programming, and manipulation of linear digital assets as used in smart contracts.
Cite
@article{arxiv.2505.20848,
title = {Thread and Memory-Safe Programming with CLASS},
author = {Luís Caires},
journal= {arXiv preprint arXiv:2505.20848},
year = {2025}
}
Comments
In Proceedings PLACES 2025, arXiv:2505.19078