Compilation Semantics for a Programming Language with Versions

被引:0
|
作者
Tanabe, Yudai [1 ]
Lubis, Luthfan Anshar [2 ]
Aotani, Tomoyuki [3 ]
Masuhara, Hidehiko [2 ]
机构
[1] Kyoto Univ, Kyoto, Japan
[2] Tokyo Inst Technol, Tokyo, Japan
[3] Sanyo Onoda City Univ, Yamaguchi, Japan
关键词
Type system; Type inference; Version control system;
D O I
10.1007/978-981-99-8311-7_1
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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(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(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.
引用
收藏
页码:3 / 23
页数:21
相关论文
共 50 条