2016 · 46 citations · 40 references
ComputingComputer ScienceProgramming LanguagesSemanticsSyntaxType CheckingType SystemsAbstract SemanticsConcurrency PrimitivesEffect SystemsLambda CalculusLambda Calculus SemanticsPolymorphic Type SystemsPolymorphic TypesSession Types
Effect and session type systems are two expressive behavioural type systems. The former is usually developed in the context of the lambda-calculus and its variants, the latter for the pi-calculus. In this paper we explore their relative expressive power. Firstly, we give an embedding from PCF, augmented with a parameterised effect system, into a session-typed pi-calculus (session calculus), showing that session types are powerful enough to express effects. Secondly, we give a reverse embedding, from the session calculus back into PCF, by instantiating PCF with concurrency primitives and its effect system with a session-like effect algebra; effect systems are powerful enough to express sessions. The embedding of session types into an effect system is leveraged to give a new implementation of session types in Haskell, via an effect system encoding. The correctness of this implementation follows from the second embedding result. We also discuss various extensions to our embeddings.
40
Notions of computation and monads
Eugenio Moggi · Information and Computation · 1991 · 1.7K citations
Multiparty asynchronous session types
Kohei Honda, Nobuko Yoshida, Marco Carbone · 2008 · 659 citations · Full text
On Full Abstraction for PCF: I, II, and III
J. M. E. Hyland, C.-H. Luke Ong · Information and Computation · 2000 · 646 citations · Full text
Robin Milner · Mathematical Structures in Computer Science · 1992 · 530 citations · Full text
Subtyping for session types in the pi calculus
Simon J. Gay, Malcolm Hole · Acta Informatica · 2005 · 377 citations