计算机科学 > 程序设计语言
[提交于 2023年9月11日]
标题:Latte: Lightweight Aliasing Tracking for Java
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Many existing systems track aliasing and uniqueness, each with their own trade-off between expressiveness and developer effort. We propose Latte, a new approach that aims to minimize both the amount of annotations and the complexity of invariants necessary for reasoning about aliasing in an object-oriented language with mutation. Our approach only requires annotations for parameters and fields, while annotations for local variables are inferred. Furthermore, it relaxes uniqueness to allow aliasing among local variables, as long as this aliasing can be precisely determined. This enables support for destructive reads without changes to the language or its run-time semantics. Despite this simplicity, we show how this design can still be used for tracking uniqueness and aliasing in a local sequential setting, with practical applications, such as modeling a stack.
提交历史
来自:Catarina Gamboa[v1] 2023年9月11日 星期一 17:28:46 UTC