Semantic soundness for language interoperability
Semantic soundness for language interoperability
复制标题
语言互操作性的语义健全性
DOI:
10.1145/3519939.3523703
复制
发表时间:
2022
期刊:
影响因子:
--
通讯作者:
Ahmed, Amal
中科院分区:
文献类型:
--
作者:
Patterson, Daniel;Mushtak, Noble;Wagner, Andrew;Ahmed, Amal
Programs are rarely implemented in a single language, and thus questions of type soundness should address not only the semantics of a single language, but how it interacts with others. Even between type-safe languages, disparate features can frustrate interoperability, as invariants from one language can easily be violated in the other. In their seminal 2007 paper, Matthews and Findler proposed a multi-language construction that augments the interoperating languages with a pair ofboundariesthat allow code from one language to be embedded in the other. While this technique has been widely applied, their syntactic source-level interoperability doesn’t reflect practical implementations, where the behavior of interaction is only defined after compilation to a common target, and any safety must be ensured by target invariants or inserted target-level “glue code.”In this paper, we present a novel framework for the design and verification of sound language interoperability that follows an interoperation-after-compilation strategy. Language designers specify what data can be converted between types of the two languages via a convertibility relation τA∼ τB(“τAis convertible to τB”) and specify target-level glue code implementing the conversions. Then, by giving a semantic model of source-language types as sets of target-language terms, they can establish not only the meaning of the source types, but alsosoundness of conversions: i.e., whenever τA∼ τB, the corresponding pair of conversions (glue code) convert target terms that behave like τAto target terms that behave like τB, and vice versa. With this, they can prove semantic type soundness for the entire system. We illustrate our framework via a series of case studies that demonstrate how our semantic interoperation-after-compilation approach allows us both to account for complex differences in language semantics and make efficiency trade-offs based on particularities of compilers or targets.
登录
查看更多内容
影响因子:
0.6
作者:
Matthias Blume
通讯作者:
Matthias Blume
DOI:
--
发表时间:
2015
期刊:
arXiv.org
影响因子:
--
作者:
Edd Barrett;Carl Friedrich Bolz;Lukas Diekmann;L. Tratt
通讯作者:
L. Tratt
影响因子:
1.3
作者:
J. Yallop;David Sheets;Anil Madhavapeddy
通讯作者:
Anil Madhavapeddy
DOI:
--
发表时间:
--
期刊:
影响因子:
--
作者:
Robert Kleffner
通讯作者:
Robert Kleffner
DOI:
--
发表时间:
2020
期刊:
Proc. ACM Program. Lang.
影响因子:
--
作者:
R. Hickey
通讯作者:
R. Hickey