首页    期刊浏览 2024年12月13日 星期五
登录注册

文章基本信息

  • 标题:Fine-grained Language Composition: A Case Study
  • 本地全文:下载
  • 作者:Edd Barrett ; Carl Friedrich Bolz ; Lukas Diekmann
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2016
  • 卷号:56
  • 页码:3:1-3:27
  • DOI:10.4230/LIPIcs.ECOOP.2016.3
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要: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, 2.6x.
  • 关键词:JIT; tracing; language composition
国家哲学社会科学文献中心版权所有