计算机科学 > 程序设计语言
[提交于 2023年9月30日]
标题:Compilation Semantics for a Programming Language with Versions
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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 $\lambda_{\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 $\lambda_{\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.
提交历史
来自:Yudai Tanabe[v1] 2023年9月30日 星期六 08:15:11 UTC