Everything old is new again: Quoted Domain Specific Languages

Shayan Najd, Samuel Lindley, Josef Svenningsson, Philip Wadler

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

We describe a new approach to domain specific languages (DSLs), called Quoted DSLs (QDSLs), that resurrects two old ideas: quotation, from McCarthy’s Lisp of 1960, and the subformula property, from Gentzen’s natural deduction of 1935. Quoted terms allow the DSL to share the syntax and type system of the host language. Normalising quoted terms ensures the subformula property, which guarantees that one can use higher-order types in the source while guaranteeing first-order types in the target, and enables using types to guide fusion. We test our ideas by re-implementing Feldspar, which was originally implemented as an Embedded DSL (EDSL), as a QDSL; and we compare the QDSL and EDSL variants.
Original languageEnglish
Title of host publicationPEPM 2016 Proceedings of the 2016 ACM SIGPLAN Workshop on Partial Evaluation and Program Manipulation
PublisherACM
Pages25-36
Number of pages12
ISBN (Print)978-1-4503-4097-7
DOIs
Publication statusPublished - 2016
Event43rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages - St. Petersburg, FL, United States
Duration: 20 Jan 201622 Jan 2016
https://popl16.sigplan.org/home

Conference

Conference43rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages
Abbreviated titlePOPL 2016
CountryUnited States
CitySt. Petersburg, FL
Period20/01/1622/01/16
Internet address

Fingerprint Dive into the research topics of 'Everything old is new again: Quoted Domain Specific Languages'. Together they form a unique fingerprint.

Cite this