Shallow embedding of DSLs via online partial evaluation
Shallow embedding of DSLs via online partial evaluation
复制标题
DOI:
10.1145/2814204.2814208
复制
发表时间:
2015-10
期刊:
影响因子:
--
通讯作者:
Roland Leißa;Klaas Boesche;Sebastian Hack;Richard Membarth;P. Slusallek
中科院分区:
文献类型:
--
作者:
Roland Leißa;Klaas Boesche;Sebastian Hack;Richard Membarth;P. Slusallek
This paper investigates shallow embedding of DSLs by means of online partial evaluation. To this end, we present a novel online partial evaluator for continuation-passing style languages. We argue that it has, in contrast to prior work, a predictable termination policy that works well in practice. We present our approach formally using a continuation-passing variant of PCF and prove its termination properties. We evaluate our technique experimentally in the field of visual and high-performance computing and show that our evaluator produces highly specialized and efficient code for CPUs as well as GPUs that matches the performance of hand-tuned expert code.