• 検索結果がありません。

ファーストクラス継続を持つオブジェクト計算

N/A
N/A
Protected

Academic year: 2021

シェア "ファーストクラス継続を持つオブジェクト計算"

Copied!
1
0
0

読み込み中.... (全文を見る)

全文

(1)Vol. 44. No. SIG 13(PRO 18). Oct. 2003. 情報処理学会論文誌:プログラミング. 発表概要. ファースト クラス継続を持つオブジェクト 計算 西. 崎. 真. 也†. 小. 田. 崇. 史††. Abadi と Cardelli により提唱されたオブジェクト計算は,大変簡潔な構文と意味論により定義さ れるにもかかわらず,セルフパラメータの遅延束縛などオブジェクト指向言語の主要な計算機構をモ デル化することに成功している.継続とは,計算のある時点における計算の残りの部分を表現する概 念であり,実行系の内部状態の 1 つである.ファーストクラス継続は,ある時点の継続をデータとし て保存したり,データとして保存した継続をしたりすることを可能とするものである.ファーストク ラス継続は,プログラミング言語 Scheme で実現され,コルーチンやバックトラックなどを表現でき ることが知られている.本研究では,オブジェクト計算にファーストクラス継続の概念を導入した継 続オブジェクト計算を提唱する,この体系において,意味論は評価文脈を用いて定義される弱簡約関 係により与えられる.ファーストクラス継続は,評価文脈をフィールドに保存する継続オブジェクト として形式化される.最初に型なし継続オブジェクト計算を紹介する.次に,継続オブジェクト計算 の 1 階型体系を与え,主部簡約定理を示す.さらに,部分型体系を与え,主部簡約定理のほか,基本 的性質を示す.. Object Calculus with First-class Continuations Shin-ya Nishizaki† and Takafumi Oda†† The Object calculus is a compuational system, proposed by Abadi and Cardelli, which formalizes object-oriented features, e.g., lazy binding of self parameters, with simple syntax and semantics. Continuations are compuational states in execution systems, which represent rests of compuation in execution time. The mechanism of first-class continuation enables us to treat continuations as first-class entities; we can save the current continuation as a data, and inversely, we can use the saved data as the current continuation. We implements advanced control features with the mechanism, like coroutines and backtracks. In this paper, we introduce the first-class continuation into the object calculus and propose continuation object calculus. In the calculus, semantcs is given as weak reduction by using evaluation contexts; first-class continuations are formalized as continuation objects which have evaluation eontexts at their fields. First, we proposes untyped continuation object calculus. Then, we give first-order type system to the calculus and show its subject rreduction theorem. Next, the subtyping of the calclus is introduced and shows its fundamental properties like subject reduction theorem.. ( 平成 15 年 1 月 24 日発表). † 東京工業大学大学院情報理工学研究科計算工学専攻 Department of Computer Science, Tokyo Institute of Technology †† 東京工業大学工学部情報工学科 Department of Computer Science, Tokyo Institute of Technology. 116.

(2)

参照

関連したドキュメント

The object of the present paper is to give applications of the Nunokawa Theorem [Proc.. Our results have some interesting examples as

Arnold This paper deals with recent applications of fractional calculus to dynamical sys- tems in control theory, electrical circuits with fractance, generalized voltage di-

Arnold This paper deals with recent applications of fractional calculus to dynamical sys- tems in control theory, electrical circuits with fractance, generalized voltage di-

We shall prove the completeness of the operational semantics with respect to Lq, which will establish a tight correspondence between logic (Lq sequent calculus) and computation

The proof uses a set up of Seiberg Witten theory that replaces generic metrics by the construction of a localised Euler class of an infinite dimensional bundle with a Fredholm

Our main theorem suggests a sharp distinction between λla and the polytime functional systems based on safe recursion [13, 11, 7], because normalization in the latter systems is at

Let us denote by hΣ n b| ♮,⊕ the smallest subcategory of Ho(M) which contains the object Σ n b and which is stable under taking desuspensions, fibers of morphisms, direct factors,

We develop applications of the results obtained and some other techniques in variational analysis to generalized differential calculus involving normal cones to nonsmooth and