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

Scala ActorライブラリによるSafe Ambientsフレームワークの実装

N/A
N/A
Protected

Academic year: 2021

シェア "Scala ActorライブラリによるSafe Ambientsフレームワークの実装"

Copied!
1
0
0

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

全文

(1)情報処理学会論文誌. プログラミング. Vol.5 No.3 61 (Aug. 2012). 発表概要. Scala Actor ライブラリによる Safe Ambients フレームワークの実装 岡田 翔太1,a). 馬谷 誠二1. 林 奉行1. 八杉 昌宏1. 湯淺 太一1. 2012年1月23日発表. アンビエント計算はプロセス代数の一種であり,並行プロセス間の協調動作や計算機間のコード移動は, アンビエントの移動動作として表現される.アンビエントの階層を用いることで,LAN,PC クラスタ, マルチコアプロセッサ,モバイルエージェントなどを統一的に表現可能な点が特徴である.本発表では, アンビエント計算の一種である Safe アンビエントに基づく,並列・分散計算のための Scala フレームワー クを提案する.本フレームワークを用いると,分散環境の構成要素をアンビエントとして統一的に記述し, アンビエントの形で実行できる.アンビエントは通常のオブジェクトとして記述されるため,各アンビエ ントにインスタンス変数やメソッドを持たせることができ,分かりやすく簡潔なプログラムを記述するこ とができる.Scala を用いることで,従来の Java によるフレームワークに比べ,アンビエントの定義をよ り簡潔に記述できるようになっている.異なる計算機間のアンビエントの移動は,Scala のクロージャオブ ジェクトを受け渡すことにより実現している.Safe アンビエントでは,アンビエント全体を 1 つの Scala アクタとして実行するのが望ましい場合と,それに含まれるプロセスを別々のアクタとして実行するのが 望ましい場合がある.本フレームワークでは,アンビエントの型を用いて,どちらの方法により実行する かを適切に選択する.. Implementation of the Safe Ambients Framework Using Scala Actor Library Shota Okada1,a) Seiji Umatani1 Tomoyuki Hayashi1 Masahiro Yasugi1 Taiichi Yuasa1 Presented: January 23, 2012. The Ambient calculus is a kind of process calculi. Code migration among computers and synchronized movement among parallel processes are represented as movements of ambients. LANs, PC clusters, multicore processors and mobile agents are uniformly represented as components of the hierarchy of ambients. In our presentation, we propose a Scala framework for parallel and distributed computing, based on Safe Ambients. Each component of distributed environments is uniformly represented and executed as an ambient. Since each ambient is a normal Scala object, it can contain instance variables and instance methods so that we can write programs in a practical manner. By implementing the framework in Scala, we can write definitions of ambients easier than the previous framework implemented in Java. Movements of ambients among different computers are achieved by delivering Scala’s closure objects. From the study of Safe Ambients, we find that there are two ways for executing ambients using Scala actors; each ambient should be executed using only a single actor, or multiple processes included in one ambient should be executed using different actors. Our framework chooses the suitable way for executing each ambient using its type information.. 1. a). 京都大学大学院情報学研究科 Graduate School of Informatics, Kyoto University, Kyoto 606–8501, Japan [email protected]. c 2012 Information Processing Society of Japan . 61.

(2)

参照

関連したドキュメント

By using the averaging theory of the first and second orders, we show that under any small cubic homogeneous perturbation, at most two limit cycles bifurcate from the period annulus

We argue inductively for a tree node that the graph constructed by processing each of the child nodes of that node contains two root vertices and that these roots are available for

Using this characterization, we prove that two covering blocks (which in the distributive case are maximal Boolean intervals) of a free bounded distributive lattice intersect in

This problem becomes more interesting in the case of a fractional differential equation where it closely resembles a boundary value problem, in the sense that the initial value

We give a methodology to create three different discrete parametrizations of the bioreactor geometry and obtain the optimized shapes with the help of a Genetic Multi-layer

Note that, by Proposition 5.1, if the shaded area belongs to the safe region, we can include all the branches (of the branched surface on the left) in Figure 5.1 into the safe

The matrices of the received classes can be further classified according to the number of black columns before the deciding column: the possible values of this number are 0, 1,.. ,

It is worth noting that Theorem 2 can also be formulated for skew-symmetric operators by using the correspondence of Proposition 1(v), but the author feels that there are two