计算机科学 > 程序设计语言
[提交于 2015年7月26日]
标题:Everything old is new again: Quoted Domain Specific Languages
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Shayan Najd[v1] 2015年7月26日 星期日 23:11:16 UTC