arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2307.05557cs.PL
收藏

基于类的语言的类型保持编译

Type-Preserving Compilation of Class-Based Languages

Guillaume Martres

AI总结:

本文针对 Scala 基于类与 DOT 结构化子类型之间的阻抗失配问题,提出一系列复杂度递增的演算及从这些演算到 DOT 的类型保持编译方案,并为 DOT 开发必要扩展,从而为 Scala 子集的健全性提供系统性保障。

摘要:

依赖对象类型(DOT)演算旨在为 Scala 奠定可靠的基础,但 DOT 依赖结构化子类型,而 Scala 本质上是一种基于类的语言。这种阻抗失配意味着仅凭 DOT 健全性的证明本身不足以声明该语言的某个特定子集是健全的。虽然已有少量 Scala 代码片段被手动翻译为 DOT,但迄今为止尚未提出系统化的编译方案。在本论文中,我们开发了一系列复杂度递增的演算来建模 Scala,并提出了从这些演算中的每一个到 DOT 的类型保持编译方案。在此过程中,我们为 DOT 开发了一些必要的扩展。

英文摘要:

The Dependent Object Type (DOT) calculus was designed to put Scala on a sound basis, but while DOT relies on structural subtyping, Scala is a fundamentally class-based language. This impedance mismatch means that a proof of DOT soundness by itself is not enough to declare a particular subset of the language as sound. While a few examples of Scala snippets have been manually translated into DOT, no systematic compilation scheme has been presented so far. In this thesis we develop a series of calculi of increasing complexity to model Scala and present a type-preserving compilation scheme from each of these calculus into DOT. Along the way, we develop some necessary extensions to DOT.

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

↑