arXiv Open Access 2023

Compilation Semantics for a Programming Language with Versions

Yudai Tanabe Luthfan Anshar Lubis Tomoyuki Aotani Hidehiko Masuhara
Lihat Sumber

Abstrak

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.

Topik & Kata Kunci

Penulis (4)

Y

Yudai Tanabe

L

Luthfan Anshar Lubis

T

Tomoyuki Aotani

H

Hidehiko Masuhara

Format Sitasi

Tanabe, Y., Lubis, L.A., Aotani, T., Masuhara, H. (2023). Compilation Semantics for a Programming Language with Versions. https://arxiv.org/abs/2310.00298

Akses Cepat

Lihat di Sumber
Informasi Jurnal
Tahun Terbit
2023
Bahasa
en
Sumber Database
arXiv
Akses
Open Access ✓