灵活恢复唯一性和不变性(扩展版)
Flexible recovery of uniqueness and immutability (Extended Version)
摘要:
我们提出了一个强制性的对象演算类型注释与别名和突变控制的限定符。类似的提案有两个关键的创新之处。首先,类型系统非常有表现力。值得注意的是,它采用了“恢复”方法,即使用类型上下文来证明加强类型的合理性,通过允许即使在存在其他引用的情况下也恢复唯一性和不变性属性,大大提高了它的能力。这是通过限制在被恢复的代码部分中使用这样的其他引用的规则来实现的。第二,执行是由一个非标准的操作模型,其中的属性的限定符可以直接表示在源项,而不是作为一个辅助结构,模仿物理内存的不变量。从形式上讲,这是通过块构造来实现的,它引入了局部变量声明,在计算时,这些声明扮演了存储的角色。
英文摘要:
We present an imperative object calculus where types are annotated with qualifiers for aliasing and mutation control. There are two key novelties with respect to similar proposals. First, the type system is very expressive. Notably, it adopts the "recovery" approach, that is, using the type context to justify strengthening types, greatly improving its power by permitting to recover uniqueness and immutability properties even in presence of other references. This is achieved by rules which restrict the use of such other references in the portion of code which is recovered. Second, execution is modeled by a non standard operational model, where properties of qualifiers can be directly expressed on source terms, rather than as invariants on an auxiliary structure which mimics physical memory. Formally, this is achieved by the block construct, introducing local variable declarations, which, when evaluated, play the role of store.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。