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

带版本的程序设计语言的编译语义

Compilation Semantics for a Programming Language with Versions

Yudai Tanabe, Luthfan Anshar Lubis, Tomoyuki Aotani, Hidehiko Masuhara

AI总结:

本文提出VL语言及其编译方法,通过Girard变换将表面语言翻译为核心演算,推断一致版本并生成多版本接口,支持实际软件演化场景。

摘要:

带版本的程序设计是一种范式,它允许程序使用一个模块的多个版本,从而使程序员能够有选择地使用单个模块的旧版本和新版本中的函数。先前的工作形式化了λ_VL,一种用于带版本程序设计的核心演算,但它尚未被集成到实际编程语言中。在本文中,我们提出了VL,一种针对λ_VL的Haskell子集表面语言及其编译方法。我们正式描述了VL编译器的核心部分,该部分利用Girard变换将表面语言翻译为核心语言,可靠地推断表达式的一致版本及其类型,并通过捆绑特定版本的接口生成多版本接口。我们进行了一个案例研究,以展示VL如何支持实际的软件演化场景,并讨论了该方法的可扩展性。

英文摘要:

Programming with versions is a paradigm that allows a program to use multiple versions of a module so that the programmer can selectively use functions from both older and newer versions of a single module. Previous work formalized $λ_{\mathrm{VL}}$, a core calculus for programming with versions, but it has not been integrated into practical programming languages. In this paper, we propose VL, a Haskell-subset surface language for $λ_{\mathrm{VL}}$ along with its compilation method. We formally describe the core part of the VL compiler, which translates from the surface language to the core language by leveraging Girard's translation, soundly infers the consistent version of expressions along with their types, and generates a multi-version interface by bundling specific-version interfaces. We conduct a case study to show how VL supports practical software evolution scenarios and discuss the method's scalability.

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

↑