说明Mezzo程序设计语言
Illustrating the Mezzo programming language
摘要:
当程序员想要证明强程序不变量时,他们通常面临着使用定理证明器和使用传统程序设计语言之间的选择。前者要求他们提供程序证明,这对于许多应用程序来说被认为是一个沉重的负担。后者提供的保证较少,程序员通常不得不编写运行时断言来弥补类型系统中缺乏合适的可表达不变量。我们介绍Mezzo,一种ML传统的程序设计语言,其中通常的类型概念被更精确的权限概念所取代。用Mezzo编写的程序通常比用纯ML编写的程序享有更强的保证。但是,由于Mezzo基于类型系统,因此推理不需要用户输入。在本文中,我们阐述了Mezzo的关键概念,突出了我们的语言提供的静态保证。
英文摘要:
When programmers want to prove strong program invariants, they are usually faced with a choice between using theorem provers and using traditional programming languages. The former requires them to provide program proofs, which, for many applications, is considered a heavy burden. The latter provides less guarantees and the programmer usually has to write run-time assertions to compensate for the lack of suitable invariants expressible in the type system. We introduce Mezzo, a programming language in the tradition of ML, in which the usual concept of a type is replaced by a more precise notion of a permission. Programs written in Mezzo usually enjoy stronger guarantees than programs written in pure ML. However, because Mezzo is based on a type system, the reasoning requires no user input. In this paper, we illustrate the key concepts of Mezzo, highlighting the static guarantees our language provides.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。