Linear type theory for asynchronous session types
Open accessThe DOI matches its Crossref record; 37 of the 37 references it cites were found in a registry or an index.
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Granule supports session types [Yoshida and Vasconcelos 2007] in the style of the GV calculus [Gay and Vasconcelos 2010], leveraging linear types to embed session type primitives.”
From Quantitative program reasoning with graded modal types (2019) · cites this paper as Gay and Vasconcelos 2010
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Types and Programming Languages
Pierce, B. C. (2002) · Cited by 2,226
Imperative functional programming
Peyton Jones, S. L., & Wadler, P. (1993) · Proceedings of the 20th ACM SIGPLAN-SIGACT symposium on Principles of programming languages - POPL '93 · doi:10.1145/158511.158524 · Cited by 1,234
A Syntactic Approach to Type Soundness
Wright, A. K., & Felleisen, M. (1994) · Information and Computation · doi:10.1006/inco.1994.1093 · Cited by 1,136 · cited 3×
“The structure of the proof of type preservation follows the approach of Wright and Felleisen (1994). We omit the proofs of most lemmas, which either are easy structural inductions or follow directly from definitions.”
MethodInfluentialLanguage primitives and type discipline for structured communication-based programming
Honda, K., VASCONCELOS, V. T., & Kubo, M. (1998) · Lecture notes in computer science · doi:10.1007/bfb0053567 · Cited by 1,031 · cited 1×
“The current paper concerns one approach to static analysis of the communication behaviour of agents in a distributed system: session types (Honda 1993; Takeuchi et al. 1994; Honda et al. 1998; Yoshida & Vasconcelos 2007).”
BackgroundSelf-citationMultiparty asynchronous session types
Honda, K., Yoshida, N., & Carbone, M. (2008) · Proceedings of the 35th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/1328438.1328472 · Cited by 646
Enforcing high-level protocols in low-level software
DeLine, R. A., & Fähndrich, M. A. (2001) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/378795.378811 · Cited by 553
Region-based memory management in cyclone
Grossman, D., Morrisett, G., Jim, T., Hicks, M., Wang, Y., & Cheney, J. (2002) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/512529.512563 · Cited by 475 · cited 2×
“Cyclone (Grossman et al. 2002) adds many benefits to C, but its support for protocols is limited to enforcing locking of resources.”
BackgroundAn interaction-based language and its typing system
Takeuchi, K., Honda, K., & Kubo, M. (1994) · Lecture notes in computer science · doi:10.1007/3-540-58184-7_118 · Cited by 411 · cited 2×
“The current paper concerns one approach to static analysis of the communication behaviour of agents in a distributed system: session types (Honda 1993; Takeuchi et al. 1994; Honda et al. 1998; Yoshida & Vasconcelos 2007).”
BackgroundHonda, K. (1993) · Lecture Notes in Computer Science · doi:10.1007/3-540-57208-2_35 · Cited by 396 · cited 2×
“The current paper concerns one approach to static analysis of the communication behaviour of agents in a distributed system: session types (Honda 1993; Takeuchi et al. 1994; Honda et al. 1998; Yoshida & Vasconcelos 2007).”
BackgroundSubtyping for session types in the pi calculus
Gay, S., & Hole, M. (2005) · Acta Informatica · doi:10.1007/s00236-005-0177-z · Cited by 373 · cited 15×
“Like Gay and Hole (2005), they referred to the endpoints of channel c as c + and c − .”
BackgroundMethodInfluentialSelf-citationAdvanced Topics in Types and Programming Languages
(2004) · The MIT Press eBooks · doi:10.7551/mitpress/1104.001.0001 · Cited by 348
Adoption and focus: practical linear types for imperative programming
Fähndrich, M. A., & DeLine, R. A. (2002) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/512529.512532 · Cited by 333 · cited 2×
“In the Vault system (DeLine & Fähndrich 2001) and its extension ‘adoption and focus’ (Fähndrich & DeLine 2002) annotations are added to C programs, in order to describe protocols that a compiler can statically enforce.”
BackgroundLanguage support for fast and reliable message-based communication in singularity OS
Fähndrich, M., Aiken, M., Hawblitzel, C., Hodson, O., Hunt, G., Larus, J. R., & Levi, S. (2006) · Proceedings of the 1st ACM SIGOPS/EuroSys European Conference on Computer Systems 2006 · doi:10.1145/1217935.1217953 · Cited by 289 · cited 6×
“Early work on session types used network protocols as a source of examples, but more recently the application domain has been extended to business protocols arising in Web services (W3C 2005) and operating system services (Fähndrich et al. 2006).”
BackgroundInfluentialSession Types for Object-Oriented Languages
Dezani-Ciancaglini, M., Mostrous, D., Yoshida, N., & Drossopoulou, S. (2006) · Lecture notes in computer science · doi:10.1007/11785477_20 · Cited by 168 · cited 9×
“The main idea, distinct from the work of Dezani-Ciancaglini et al. (2005, 2006), Coppo et al. (2007) and Capecchi et al. (2009), is to use session types to control the sequence of method calls on objects and to check that the session type of an object is consistent with the session types of the…”
BackgroundMethodResultInfluentialType-safe multithreading in cyclone
Grossman, D. (2003) · Types In Languages Design And Implementation · doi:10.1145/604174.604177 · Cited by 159 · cited 2×
“Cyclone (Grossman et al. 2002; Grossman 2003), Vault (DeLine & F¨ahndrich 2001) and adoption and focus (F¨ahndrich & DeLine 2002) are systems based on the C programming language that allow protocols to be statically enforced by a compiler.”
BackgroundYoshida, N., & Vasconcelos, V. T. (2007) · Electronic Notes in Theoretical Computer Science · doi:10.1016/j.entcs.2007.02.056 · Cited by 135 · cited 13×
“Our own previous work (Vasconcelos et al. 2006) avoided the re-binding by using two-sided typing judgements such as x : !”
BackgroundResultInfluentialSelf-citationHonda, K. (1993) · International Conference on Concurrency Theory · Cited by 132
Type checking a multithreaded functional language with session types
VASCONCELOS, V. T., Gay, S. J., & Ravara, A. (2006) · Theoretical Computer Science · doi:10.1016/j.tcs.2006.06.028 · Cited by 114
Self-citationModular session types for distributed object-oriented programming
Gay, S. J., VASCONCELOS, V. T., Ravara, A., Gesbert, N., & Caldeira, A. Z. (2010) · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · doi:10.1145/1706299.1706335 · Cited by 101 · cited 2×
“Apart from our own previous work (Vasconcelos et al., 2006, 2004), the main formal studies of session types in mainstream language paradigms are by Dezani-Ciancaglini et al. (2005, 2006), Coppo et al. (2007), Capecchi et al. (2009) and ourselves (Vasconcelos et al., 2009; Gay et al., 2009 ), all for object-oriented la…”
BackgroundResultSelf-citationAn Implementation of Session Types
Neubauer, M., & Thiemann, P. J. (2004) · Lecture notes in computer science · doi:10.1007/978-3-540-24836-1_5 · Cited by 98 · cited 5×
“Neubauer and Thiemann (2004a) used a monad in their Haskell implementation of session types.”
BackgroundMethodResultInfluentialDisciplining Orchestration and Conversation in Service-Oriented Computing
Lanese, I., Martins, F., VASCONCELOS, V. T., & Ravara, A. (2007) · IEEE International Conference on Software Engineering and Formal Methods (SEFM) · doi:10.1109/sefm.2007.13 · Cited by 84
Self-citationA Distributed Object-Oriented Language with Session Types
Dezani-Ciancaglini, M., Yoshida, N., Ahern, A., & Drossopoulou, S. (2005) · Lecture notes in computer science · doi:10.1007/11580850_16 · Cited by 65 · cited 4×
“Apart from our own previous work (Vasconcelos et al. 2004, 2006), the main formal studies of session types in mainstream language paradigms are by Dezani-Ciancaglini et al. (2005, 2006), Coppo et al. (2007), Capecchi et al. (2009) and ourselves (Gay et al. 2010), all for object-oriented languages.”
BackgroundMethodResultInfluentialFrom sequential programs to multi-tier applications by program transformation
Neubauer, M., & Thiemann, P. J. (2005) · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · doi:10.1145/1040305.1040324 · Cited by 59 · cited 3×
“…modelled software components as concurrent functional processes and used session types to extract the smallest protocol required by each process; in addition, they addressed the problem of program transformation, from sequential to multi-tier, guided by session types (Neubauer and Thiemann 2005).”
BackgroundMethodSession Types for Functional Multithreading
VASCONCELOS, V. T., Ravara, A., & Gay, S. J. (2004) · Lecture notes in computer science · doi:10.1007/978-3-540-28644-8_32 · Cited by 59 · cited 9×
“Apart from our own previous work (Vasconcelos et al. 2004, 2006), the main formal studies of session types in mainstream language paradigms are by Dezani-Ciancaglini et al. (2005, 2006), Coppo et al. (2007), Capecchi et al. (2009) and ourselves (Gay et al. 2010), all for object-oriented languages.”
InfluentialSelf-citationCorrespondence assertions for process synchronization in concurrent communications
Bonelli, E., Compagnoni, A. B., & Gunter, E. L. (2005) · Journal of Functional Programming · doi:10.1017/s095679680400543x · Cited by 58 · cited 1×
“By incorporating correspondence assertions, the behavioural guarantees o ff ered by session types have been strengthened and applied to security analysis (Bonelli et al. 2005).”
Type and Effect Systems: Behaviours for Concurrency
Amtoft, T., Nielson, F., & Nielson, H. R. (1999) · doi:10.1142/p132#t=toc · Cited by 58
Typing the Behavior of Software Components using Session Types
Vallecillo, A., VASCONCELOS, V. T., & Ravara, A. (2006) · Fundamenta Informaticae · Cited by 53
Self-citationAsynchronous Session Types and Progress for Object Oriented Languages
Coppo, M., Dezani-Ciancaglini, M., & Yoshida, N. (2007) · Lecture notes in computer science · doi:10.1007/978-3-540-72952-5_1 · Cited by 53
Bounded polymorphism in session types
Gay, S. J. (2008) · Mathematical Structures in Computer Science · doi:10.1017/s0960129508006944 · Cited by 50 · cited 7×
“Previous work by Gay & Hole (2005); Vallecillo et al. (2006) defined a duality relation coinductively.”
BackgroundMethodInfluentialSelf-citationSession Types for Inter-Process Communication
VASCONCELOS, V. T., & Ravara, A. (2003) · Cited by 48
Self-citationAmalgamating sessions and methods in object-oriented languages with generics
Capecchi, S., Coppo, M., Dezani-Ciancaglini, M., Drossopoulou, S., & Giachino, E. (2008) · Theoretical Computer Science · doi:10.1016/j.tcs.2008.09.016 · Cited by 36 · cited 4×
“Apart from our own previous work (Vasconcelos et al. 2004, 2006), the main formal studies of session types in mainstream language paradigms are by DezaniCiancaglini et al. (2005, 2006), Coppo et al. (2007), Capecchi et al. (2009) and ourselves (Gay et al. 2010), all for object-oriented languages.”
BackgroundMethodResultInfluentialType and Effect Systems: Behaviours for Concurrency
Amtoft, T., Nielson, F., & Nielson, H. R. (1999) · IMPERIAL COLLEGE PRESS eBooks · doi:10.1142/p132 · Cited by 28 · cited 2×
“We should also investigate the relationship with other forms of static analysis, including type and effect systems [1].”
From sequential programs to multi-tier applications by program transformation
Neubauer, M., & Thiemann, P. J. (2005) · ACM SIGPLAN Notices · doi:10.1145/1047659.1040324 · Cited by 7
Neubauer, M., & Thiemann, P. J. (2004) · Lecture notes in computer science · doi:10.1007/978-3-540-30477-7_17 · Cited by 3 · cited 5×
“Neubauer and Thiemann (2004a) used a monad in their Haskell implementation of session types.”
BackgroundMethodResultInfluentialAsynchronous functional session types
Gay, S., & Vasconcelos, V. (n.d.) · Cited by 2
Self-citation
Cited by
Multiparty Asynchronous Session Types
Honda, K., Yoshida, N., & Carbone, M. (2016) · Journal of the ACM · doi:10.1145/2827695 · Cited by 283
Foundations of Session Types and Behavioural Contracts
Hüttel, H., Lanese, I., Vasconcelos, V. T., Caires, L., Carbone, M., Deniélou, P.-M., Mostrous, D., Padovani, L., Ravara, A., Tuosto, E., et al. (2017) · ACM Computing Surveys · doi:10.1145/2873052 · Cited by 207
Self-citationWadler, P. L. (2014) · Journal of Functional Programming · doi:10.1017/s095679681400001x · Cited by 193
VASCONCELOS, V. T. (2012) · Information and Computation · doi:10.1016/j.ic.2012.05.002 · Cited by 173
Self-citationWadler, P. (2012) · Proceedings of the 17th ACM SIGPLAN international conference on Functional programming · doi:10.1145/2364527.2364568 · Cited by 162
Metadata
- Authors
- GAY, S. J., & VASCONCELOS, V. T.
- Venue
- Journal of Functional Programming
- Publisher
- Cambridge University Press (CUP)
- Published
- 2009-12-08
- Volume
- 20
- Issue
- 1
- Pages
- 19-50
- ISSN
- 0956-7968 (ISSN-L)
- 1469-7653
- OpenAlex
- W2124126159
- Cited by
- 203
- References
- 37
- FWCI
- 9.04
- Type
- journal article
- Language
- en
- Open access
- bronze
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.