vix.ing · top · new · best · stats · spec

Language embeddings that preserve staging and safety

2005/09/19 by Todd L. Veldhuizen, Veldhuizen, Todd L.
Computer Science · #D.3.4 #FOS: Computer and information sciences #Natural Language Processing Techniques #Programming Languages (cs.PL) #Semantic Web and Ontologies #Topic Modeling #cs.PL

paper · pdf · doi:10.48550/arxiv.cs/0509057

arxiv created 2005/09/19 · openalex publication_date 2005/09/19 · arxiv updated 2009/12/01 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

We study embeddings of programming languages into one another that preserve what reductions take place at compile-time, i.e., staging. A certain condition -- what we call a `Turing complete kernel' -- is sufficient for a language to be stage-universal in the sense that any language may be embedded in it while preserving staging. A similar line of reasoning yields the notion of safety-preserving embeddings, and a useful characterization of safety-universality. Languages universal with respect to staging and safety are good candidates for realizing domain-specific embedded languages (DSELs) and `active libraries' that provide domain-specific optimizations and safety checks.

Citations

Related