Title: On action permutation and progress for a type system with partially commutative asynchronous binary sessions

Authors: Zhenguo Yang; Farong Zhong; Jinfang Zhang; Tiantian Song

Addresses: Department of Computer Science, Zhejiang Normal University, Jinhua 321004, Zhejiang Province, China ' Department of Computer Science, Zhejiang Normal University, Jinhua 321004, Zhejiang Province, China ' Department of Computer Science, Zhejiang Normal University, Jinhua 321004, Zhejiang Province, China ' Department of Computer Science, Zhejiang Normal University, Jinhua 321004, Zhejiang Province, China

Abstract: A type system with asynchronous binary sessions is generalised by asynchronous communication subtyping, which actually permutes and optimises the actions on each participant. With the types of messages being distinguished between dependent and independent types, a series of action asynchronous subtyping rules for the two kinds of message types are proposed, respectively. To make such action permutations automatic, an algorithmic asynchronous subtyping is introduced, associating the subtyping for session types with asynchronous communication subtyping. However, action permutation and optimisation will change the sequence and structure of messages sent and received. To ensure runtime safety, the cases of communication errors that may occur in asynchronous sessions are revealed by examples. In addition, the type compliance we defined assures the progress property, i.e., once a communication has been established, well-formed programmes will never starve at communication points. Finally, the soundness and communication safety of the type system are proved, and some possible future work in this field is discussed.

Keywords: communication-centred programming; subtyping; bounded polymorphism; partial commutativity; session types; action permutation; action progress; asynchronous binary sessions; runtime safety.

DOI: 10.1504/IJCSE.2015.068834

International Journal of Computational Science and Engineering, 2015 Vol.10 No.3, pp.253 - 262

Received: 06 Nov 2012
Accepted: 12 Nov 2012

Published online: 15 Apr 2015 *

Full-text access for editors Full-text access for subscribers Purchase this article Comment on this article