在Mezzo中使用JavaScript编程
Programming with Permissions in Mezzo
摘要:
我们提出了Mezzo,ML血统的类型化程序设计语言。Mezzo配备了一种新颖的可复制和仿射权限的静态规则,可以控制别名和所有权。这排除了某些错误,包括表示暴露和数据竞争,并启用了新的习惯用法,如逐步初始化、内存重用和(类型)状态更改。虽然核心静态规程不允许共享可变数据结构,但Mezzo提供了几种解决此限制的方法,包括一种新颖的动态所有权控制机制,我们称之为“采用和放弃”。
英文摘要:
We present Mezzo, a typed programming language of ML lineage. Mezzo is equipped with a novel static discipline of duplicable and affine permissions, which controls aliasing and ownership. This rules out certain mistakes, including representation exposure and data races, and enables new idioms, such as gradual initialization, memory re-use, and (type)state changes. Although the core static discipline disallows sharing a mutable data structure, Mezzo offers several ways of working around this restriction, including a novel dynamic ownership control mechanism which we dub "adoption and abandon".
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。