We found a match
Your institution may have access to this item. Find your institution then sign in to continue.
- Title
Linear type theory for asynchronous session types.
- Authors
Gay, Simon J.; Vasconcelos, Vasco T.
- Abstract
Session types support a type-theoretic formulation of structured patterns of communication, so that the communication behaviour of agents in a distributed system can be verified by static typechecking. Applications include network protocols, business processes and operating system services. In this paper we define a multithreaded functional language with session types, which unifies, simplifies and extends previous work. There are four main contributions. First is an operational semantics with buffered channels, instead of the synchronous communication of previous work. Second, we prove that the session type of a channel gives an upper bound on the necessary size of the buffer. Third, session types are manipulated by means of the standard structures of a linear type theory, rather than by means of new forms of typing judgement. Fourth, a notion of subtyping, including the standard subtyping relation for session types (imported into the functional setting), and a novel form of subtyping between standard and linear function types, which allows the typechecker to handle linear types conveniently. Our new approach significantly simplifies session types in the functional setting, clarifies their essential features and provides a secure foundation for language developments such as polymorphism and object-orientation.
- Subjects
TYPE theory; ASYNCHRONOUS transfer mode; BUSINESS communication; SESSION Initiation Protocol (Computer network protocol); COMPUTER operating systems; COMPUTER network protocols
- Publication
Journal of Functional Programming, 2010, Vol 20, Issue 1, p19
- ISSN
0956-7968
- Publication type
Article
- DOI
10.1017/S0956796809990268