King's College London

Research portal

Fine-grained language composition: A case study

Research output: Contribution to journalArticle

Original languageEnglish
Pages (from-to)31-327
JournalLeibniz International Proceedings in Informatics, LIPIcs
Volume56
DOIs
Accepted/In press16 Jun 2016
PublishedJul 2016

Documents

King's Authors

Abstract

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.

Download statistics

No data available

View graph of relations

© 2018 King's College London | Strand | London WC2R 2LS | England | United Kingdom | Tel +44 (0)20 7836 5454