Staging beyond terms: prospects and challenges
Staging beyond terms: prospects and challenges
复制标题
超越条款:前景与挑战
DOI:
10.1145/2847538.2847548
复制
发表时间:
2016
期刊:
影响因子:
--
通讯作者:
Yukiyoshi Kameyama
中科院分区:
文献类型:
--
作者:
Jun Inoue;Oleg Kiselyov;Yukiyoshi Kameyama
Staging is a program generation paradigm with a clean, well-investigated semantics which statically ensures that the generated code is always well-typed and well-scoped. Staging is often used for specializing programs to the known properties or parts of data to improve efficiency, but so far it has been limited to generating terms. This short paper describes our ongoing work on extending staging, with its strong safety guarantees, to generation of non-terms, focusing on ML-style modules. The purpose is to map out the promises and challenges, then to pose a question to solicit the community's expertise in evaluating how essential our extensions are for the purpose of applying staging beyond the realm of terms. We demonstrate our extensions' use in specializing functor applications to eliminate its (currently large) overhead in OCaml. We explain the challenges that those extensions bring in and identify a promising line of attack. Unexpectedly, however, it turns out that we can avoid module generation altogether by representing modules, possibly containing abstract types, as polymorphic records. With the help of first-class modules, module specialization reduces to ordinary term specialization, which can be done with conventional staging. The extent to which this hack generalizes is unclear. Thus we have a question to the community: is there a compelling use case for module generation? With these insights and questions, we offer a starting point for a long-term program in the next stage of staging research.
登录
查看更多内容
DOI:
10.1145/1244381.1244400
发表时间:
2007
期刊:
--
影响因子:
--
作者:
Seth Fogarty;E. Pasalic;Jeremy G. Siek;Walid Taha
通讯作者:
Walid Taha
影响因子:
7.4
作者:
Jennifer Gillenwater;G. Malecha;Cherif R. Salama;A. Zhu;Walid M. Taha;J. Grundy;J. O'Leary
通讯作者:
J. O'Leary
影响因子:
--
作者:
Chapman J
通讯作者:
Chapman J
DOI:
10.1145/1159876.1159877
发表时间:
2006
期刊:
Higher-Order and Symbolic Computation
影响因子:
--
作者:
Stephen Weeks
通讯作者:
Stephen Weeks
影响因子:
1.3
作者:
Yukiyoshi Kameyama;Oleg Kiselyov;Chung-chieh Shan
通讯作者:
Chung-chieh Shan