• Medientyp: E-Artikel
  • Titel: Shallow embedding of DSLs via online partial evaluation
  • Beteiligte: Leißa, Roland; Boesche, Klaas; Hack, Sebastian; Membarth, Richard; Slusallek, Philipp
  • Erschienen: Association for Computing Machinery (ACM), 2016
  • Erschienen in: ACM SIGPLAN Notices, 51 (2016) 3, Seite 11-20
  • Sprache: Englisch
  • DOI: 10.1145/2936314.2814208
  • ISSN: 0362-1340; 1558-1160
  • Schlagwörter: Computer Graphics and Computer-Aided Design ; Software
  • Entstehung:
  • Anmerkungen:
  • Beschreibung: <jats:p>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.</jats:p>