Loading...
Please wait, while we are loading the content...
Similar Documents
Online Type-Directed Partial Evaluation for Dynamically-Typed Languages
| Content Provider | Semantic Scholar |
|---|---|
| Author | Sumii, Eijiro Kobayashi, Naoki |
| Copyright Year | 2002 |
| Abstract | This article presents an alternative method of type-directed partial evaluation, which is simpler and more e cient than previous methods. Unlike previous methods, it is straightforwardly applicable to functional languages with various powerful type systems. As an extreme instance, this article mainly deals with a dynamically-typed functional language like Scheme. The key idea is to extend primitive value destructors such as function application and pair destruction (car and cdr), so that they generate residual code when their operands are dynamic. It unnecessitates an operation in type-directed partial evaluation called re ection, which was the major cause of complication and ine ciency in previous methods. We formalize our method as an extension of two-level -calculus, and prove it correct. Furthermore, we show that our type-directed partial evaluator can be derived from a simple online syntax-directed partial evaluator with higher-order abstract syntax, by the same transformation as an o ine program-generatorgenerator (cogen) is derived from an o ine syntax-directed partial evaluator. This clari es why type-directed partial evaluation is faster than ordinary syntax-directed partial evaluation, and implies that we can obtain more powerful partial evaluators by replacing the underlying syntax-directed partial evaluator with more sophisticated ones. |
| File Format | PDF HTM / HTML |
| Alternate Webpage(s) | http://www.kb.ecei.tohoku.ac.jp/~sumii/pub/dynamic-tdpe.pdf |
| Alternate Webpage(s) | http://www.kb.ecei.tohoku.ac.jp/~sumii/pub/dynamic-tdpe.ps.gz |
| Alternate Webpage(s) | http://web.yl.is.s.u-tokyo.ac.jp/~sumii/pub/dynamic-tdpe.pdf |
| Alternate Webpage(s) | http://www.yl.is.s.u-tokyo.ac.jp/~sumii/pub/dynamic-tdpe.ps.gz |
| Alternate Webpage(s) | http://www.yl.is.s.u-tokyo.ac.jp/~sumii/pub/dynamic-tdpe.pdf |
| Alternate Webpage(s) | http://www.kb.ecei.tohoku.ac.jp/~sumii/pub/PPL99.pdf |
| Language | English |
| Access Restriction | Open |
| Content Type | Text |
| Resource Type | Article |