Computer Software
Print ISSN : 0289-6540
Volume 17, Issue 3
Displaying 1-8 of 8 articles from this issue
Guest Editorial
Special Paper
  • Isao Sasano, Zhenjiang Hu, Masato Takeichi
    2000 Volume 17 Issue 3 Pages 194-211
    Published: 2000
    Released on J-STAGE: December 26, 2000
    JOURNAL FREE ACCESS
    Download PDF (954K)
  • Kenichi Asai
    2000 Volume 17 Issue 3 Pages 212-229
    Published: 2000
    Released on J-STAGE: December 26, 2000
    JOURNAL FREE ACCESS
    Download PDF (1012K)
  • Eijiro Sumii, Naoki Kobayashi
    2000 Volume 17 Issue 3 Pages 230-254
    Published: 2000
    Released on J-STAGE: December 26, 2000
    JOURNAL FREE ACCESS
    This article presents an alternative method of type-directed partial evaluation, which is simpler and more efficient 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 reflection, which was the major cause of complication and inefficiency 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 offline programgenerator-generator(cogen)is derived from an offline syntax-directed partial evaluator.This clarifies 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 synthax-directed partial evaluator with more sophisticated ones.
    Download PDF (1094K)
Regular Paper
Short Note
Topics
feedback
Top