Duplication and Partial Evaluation | for a Better Understanding of Re Blockinective Languages |

نویسندگان

  • KENICHI ASAI
  • Akinori Yonezawa
چکیده

This paper presents a general implementation framework for re ective languages. It allows us to systematically build re ective languages which have the following favorable properties: (1) user programs are allowed to access and change (parts of) metalevel interpreters, (2) re ective facilities are available at every level, (hence there exists conceptually an in nite tower of interpreters), and (3) the interpreter runs as e ciently as the conventional (directly implemented) metacircular interpreter when re ection is not used. Our scheme is divided into three stages. First, we de ne interpreters which give the operational semantics of each level, and conceptually construct the in nite tower of these interpreters. They are then duplicated to obtain directly executed interpreters, while introducing double interpretation to maintain rede nability of interpreters. Finally, partial evaluation is employed to collapse the double interpretation into single interpretation. We illustrate our scheme by implementing a particular re ective language called Black in Scheme, but it is general enough to be applied to other re ective languages. The paper gives the complete Scheme implementation of Black and demonstrates some examples. We also show how a system with the delta abstraction introduced by Blond can be constructed in our framework.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Reasoning-conscious Meta-object Design of a Re Blockinective Concurrent Language

Computational re ection gives programming languages high exibility, which is useful for parallel/distributed programming. On the other hand, its interpreter based execution model makes e cient implementation di cult. Especially, meta-objects in concurrent languages are described with explicit state transition, which makes program reasoning|such as partial evaluation|di cult. In this paper, we p...

متن کامل

Design and Partial Evaluation of Meta-objects for a Concurrent Re Blockinective Language

In concurrent object-oriented languages, customizable meta-objects are powerful abstraction for extending and optimizing crucial implementation mechanisms such as method dispatch and mutual exclusion. However, interpretive execution of meta-objects causes severe performance penalty. Our previous study shows that applying partial evaluation to meta-interpreters is useful for alleviating the prob...

متن کامل

I-34: NRY Haplotype Analysis: towards A Better Understanding of The Genetic Basis of Spermatogenic Failure

It has been established that the Y chromosome carries genes required for spermatogenesis and male fertility. For many decades worldwide screening for gene identification has been conducted in research laboratories. However, it has been a difficult process in identifying such genes (i.e. causative mutations) which could explain the phenotypic variation and could be potentially used as markers fo...

متن کامل

Object-oriented Concurrent Re Blockinective Languages Can Be Implemented Eciently

Computational re ection is bene cial in concurrent computing in o ering a linguisticmechanism for incorporating user-speci c policies. New challenges are (1) how to implement them, and (2) how to do so e ciently. We present e cient implementation schemes for object-oriented concurrent reective languages using our language ABCL/R2 as an example. The schemes include: e cient lazy creation of meta...

متن کامل

Duplication and Partial Evaluation For a Better Understanding of Reflective Languages

This paper presents a general implementation framework for reflective languages. It allows us to systematically build reflective languages which have the following favorable properties: (1) user programs are allowed to access and change (parts of) metalevel interpreters, (2) reflective facilities are available at every level, (hence there exists conceptually an infinite tower of interpreters), ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1996