{"title":"Tracing and Preventing Sharing and Mutation","authors":"P. Giannini, M. Servetto, E. Zucca","doi":"10.26686/wgtn.13174931","DOIUrl":null,"url":null,"abstract":"Copyright © 2019 for this paper by its authors. We present a type and effect system for tracing and preventing sharing and mutation in imperative languages. That is, on one hand, the type system traces sharing possibly introduced by the evaluation of an expression, so that uniqueness and immutability properties can be easily detected. On the other hand, sharing and mutation can be prevented by type qualifiers which forbid some actions. Sharing is directly represented at the syntactic level as a relation among free variables, thanks to the fact that in the underlying calculus memory is encoded in terms.","PeriodicalId":212849,"journal":{"name":"Italian Conference on Theoretical Computer Science","volume":"43 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Italian Conference on Theoretical Computer Science","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.26686/wgtn.13174931","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
跟踪和防止共享和突变
本文版权所有©2019。我们提出了一种类型和效果系统来跟踪和防止命令式语言的共享和变异。也就是说,一方面,类型系统跟踪共享可能是由表达式求值引入的,因此可以很容易地检测惟一性和不变性属性。另一方面,可以通过类型限定符禁止某些操作来防止共享和突变。共享在语法级别直接表示为自由变量之间的关系,这是因为在底层演算中,内存是用术语编码的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。