Fine-grained Language Composition

Fine-grained Language Composition
复制标题

细粒度的语言构成

DOI:
--
复制
发表时间:
2015
期刊:
arXiv.org
影响因子:
--
通讯作者:
L. Tratt
L. Tratt
中科院分区:
--
文献类型:
--
作者:
Edd Barrett;Carl Friedrich Bolz;Lukas Diekmann;L. Tratt

文献摘要

参考文献

被引文献

相似文献

尽管运行时语言组成很常见,但通常采用原油外函数接口(FFI)的形式。尽管有用,但这种组成往往是粗粒且缓慢的。在本文中,我们介绍了一种新颖的PHP和Python的细粒句法组成,该句法允许用户彼此之间嵌入每种语言,包括引用跨语言的变量。这种组成提出了新颖的设计和实施挑战。我们证明可以在设计挑战方面找到良好的解决方案。而且,由此产生的实现最多构成了可接受的性能开销,最多只能超过2倍。
Although run-time language composition is common, it normally takes the form of a crude Foreign Function Interface (FFI). While useful, such compositions tend to be coarse-grained and slow. In this paper we introduce a novel fine-grained syntactic composition of PHP and Python which allows users to embed each language inside the other, including referencing variables across languages. This composition raises novel design and implementation challenges. We show that good solutions can be found to the design challenges; and that the resulting implementation imposes an acceptable performance overhead of, at most, just over 2x.
细粒度语言构成:案例研究
DOI: --
发表时间: 2016
期刊: --
影响因子: --
作者:
Barrett E
通讯作者: Barrett E