arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.11317cs.PL
收藏

显式可控赋值语义

Explicit and Controllable Assignment Semantics

Dimitri Racordon, Didier Buchs

摘要:

尽管有大量强大的软件可以发现错误,识别性能瓶颈或简单地提高代码的整体质量,但程序设计语言仍然是开发人员的第一个也是最重要的工具。因此,适当的抽象、明确的语法和直观的语义对于简洁有效地传达意图至关重要。计算能力的持续增长使现代编译器和运行时系统能够处理曾经被认为不切实际的功能,如类型推断和反射,使代码更容易编写,更容易阅读。不幸的是,在大多数程序设计语言中,底层内存模型的残余仍然存在,导致了混乱的赋值语义。本文介绍了Anzen,一种程序设计语言,旨在使任务更容易理解和操作。该语言提供了三个赋值运算符,具有明确的语义,可以重现所有常见的命令式赋值策略。它伴随着一个基于类型功能的类型系统,以强制唯一性和不变性。我们提出了Anzen的功能非正式和形式化的手段,一个最小的演算。

英文摘要:

Despite the plethora of powerful software to spot bugs, identify performance bottlenecks or simply improve the overall quality of code, programming languages remain the first and most important tool of a developer. Therefore, appropriate abstractions, unambiguous syntaxes and intuitive semantics are paramount to convey intent concisely and efficiently. The continuing growth in computing power has allowed modern compilers and runtime system to handle once thought unrealistic features, such as type inference and reflection, making code simpler to write and clearer to read. Unfortunately, relics of the underlying memory model still transpire in most programming languages, leading to confusing assignment semantics. This paper introduces Anzen, a programming language that aims to make assignments easier to understand and manipulate. The language offers three assignment operators, with unequivocal semantics, that can reproduce all common imperative assignment strategies. It is accompanied by a type system based on type capabilities to enforce uniqueness and immutability. We present Anzen's features informally and formalize it by the means of a minimal calculus.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑