Abstract

Session types are a well-established approach to ensuring protocol conformance and the absence of communication errors such as deadlocks in message passing systems. Haskell introduced implicit parameters, Scala popularised this feature and recently gave implicit types first-class status, yielding an expressive tool for handling context dependencies in a type-safe yet terse way. We ask: can type-safe implicit functions be generalised from Scala's sequential setting to message passing computation? We answer this question in the affirmative by generalising the concept of an implicit function to an implicit message , its concurrent analogue. We present two calculi, each with implicit message passing. The first, Im , is a concurrent functional language that extends Gay and Vasconcelos's calculus of linear types for asynchronous sessions ( Last ) with implicit functions and messages. The second, MpIm , is a π -calculus with implicit messages that extends Coppo, Dezani-Ciancaglini, Padovani and Yoshida's calculus of multiparty asynchronous sessions ( Mpst ). We argue, via examples, that these new language features provide utility to the programmer, and prove each system sound by translation into its respective base calculus. • We introduce a new feature for concurrent programming languages: Implicit Messages. • We argue, by examples, that implicit messages provide utility to the programmer. • We prove type soundness for two languages with implicit messages and session types.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call