3 research outputs found
Fine-grained Language Composition: A Case Study
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.Comment: 27 pages, 4 tables, 5 figure
Fine-grained Language Composition: A Case Study (Artifact)
This artifact is based on: PyHyp, a language composition of PHP and Python
using meta-tracing; and Eco, a language composition editor. The provided
package is designed to support the experiments, case studies, and demos
detailed in the companion paper