Papers1 provider · 1 record
May 27, 2025· EPTCS 420, 2025, pp. 22-33
preprint
Open access

Thread and Memory-Safe Programming with CLASS

Authors:Luís Caires

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.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.