弱线性类型
Weak-Linear Types
AI总结:
本文提出一种新的弱线性类型方案,旨在放宽线性逻辑的严格性限制,同时保持原始系统的简洁与优雅,以改善内存资源静态控制的实用性。
摘要:
线性逻辑的计算解释允许对内存资源进行静态控制:程序产生的数据通过其类型被赋予决定其生命周期的属性,并保证安全释放。线性类型的使用在实践中遇到限制,因为传统意义上的线性数据在实际程序中并不常见。为了放宽线性条件,已有多种替代方案被提出,这些方案向语言中添加强制转换,允许线性对象被临时别名化。在本工作中,我们提出一种新的替代方案,其优点在于保留原始系统的简洁性和优雅性。
英文摘要:
Computational interpretations of linear logic allow static control of memory resources: the data produced by the program are endowed through its type with attributes that determine its life cycle, and guarantee safe deallocation. The use of linear types encounters limitations in practice, since linear data, in the traditional sense, do not so often appear in actual programs. Several alternatives have been proposed in the attempt to relax the condition of linearity, adding coercions to the language to allow linear objects to be temporarily aliased. In this work we propose a new alternative, whose virtue is to preserve the simplicity and elegance of the original system.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。