|国家预印本平台
首页|Thread and Memory-Safe Programming with CLASS

Thread and Memory-Safe Programming with CLASS

Thread and Memory-Safe Programming with CLASS

来源:Arxiv_logoArxiv
英文摘要

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.

Luís Caires

Instituto Superior Técnico

10.4204/EPTCS.420.3

计算技术、计算机技术

Luís Caires.Thread and Memory-Safe Programming with CLASS[EB/OL].(2025-05-27)[2025-06-14].https://arxiv.org/abs/2505.20848.点此复制

评论