Modular session types for distributed object-oriented programming
Modular session types for distributed object-oriented programming
复制标题
用于分布式面向对象编程的模块化会话类型
DOI:
10.1145/1706299.1706335
复制
发表时间:
2010
期刊:
影响因子:
--
通讯作者:
Gay S
中科院分区:
文献类型:
--
作者:
Gay S
Session types allow communication protocols to be specified type-theoretically so that protocol implementations can be verified by static type-checking. We extend previous work on session types for distributed object-oriented languages in three ways. (1) We attach a session type to a class definition, to specify the possible sequences of method calls. (2) We allow a session type (protocol) implementation to bemodularized, i.e. partitioned into separately-callable methods. (3) We treat session-typed communication channels as objects, integrating their session types with the session types of classes. The result is an elegant unification of communication channels and their session types, distributed object-oriented programming, and a form of typestates supporting non-uniform objects, i.e. objects that dynamically change the set of available methods. We define syntax, operational semantics, a sound type system, and a correct and complete type checking algorithm for a small distributed class-based object-oriented language. Static typing guarantees that both sequences of messages on channels, and sequences of method calls on objects, conform to type-theoretic specifications, thus ensuring type-safety. The language includes expected features of session types, such as delegation, and expected features of object-oriented programming, such as encapsulation of local state. We also describe a prototype implementation as an extension of Java.
登录
查看更多内容
DOI:
10.1016/j.tcs.2006.06.028
发表时间:
2006-12
期刊:
Theor. Comput. Sci.
影响因子:
--
作者:
V. Vasconcelos;S. Gay;A. Ravara
通讯作者:
V. Vasconcelos;S. Gay;A. Ravara
影响因子:
0.6
作者:
Ferruccio Damiani;Elena Giachino;P. Giannini;S. Drossopoulou
通讯作者:
S. Drossopoulou
DOI:
10.1145/1328438.1328472
发表时间:
2008-01
期刊:
--
影响因子:
--
作者:
Kohei Honda;N. Yoshida;Marco Carbone
通讯作者:
Kohei Honda;N. Yoshida;Marco Carbone
DOI:
10.1007/bfb0053373
发表时间:
1997
期刊:
Software: Practice and Experience
影响因子:
--
作者:
Paulo Sérgio Almeida
通讯作者:
Paulo Sérgio Almeida
DOI:
--
发表时间:
2008
期刊:
International Conference on Software Technology: Methods and Tools
影响因子:
--
作者:
Johan Östlund;Tobias Wrigstad;D. Clarke;Beatrice Åkerblom
通讯作者:
Beatrice Åkerblom