首页> 外文期刊>Science of Computer Programming >Asynchronous sessions with implicit functions and messages
【24h】

Asynchronous sessions with implicit functions and messages

机译:具有隐式函数和消息的异步会话

获取原文
获取原文并翻译 | 示例

摘要

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 pi-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. (C) 2019 Elsevier B.V. All tights reserved.
机译:会话类型是一种行之有效的方法,可以确保协议一致性以及在消息传递系统中不存在通信错误(例如死锁)。 Haskell引入了隐式参数,Scala推广了此功能,并在最近为隐式类型提供了一流的地位,从而产生了一种以类型安全但简洁的方式处理上下文依赖关系的表达工具。我们问:可以将类型安全的隐式函数从Scala的顺序设置推广到消息传递计算吗?我们通过将隐式函数的概念推广到隐式消息(其并发模拟)来肯定地回答这个问题。我们给出两个计算,每个计算都有隐式消息传递。第一种是IM,是一种并发函数式语言,它扩展了Gay和Vasconcelos的用于异步会话(LAST)的线性类型演算与隐式函数和消息。第二个是MPIM,是具有隐式消息的pi演算,它扩展了Coppo,Dezani-Ciancaglini,Padovani和Yoshida的多方异步会话(MPST)演算。我们通过示例证明,这些新的语言功能为程序员提供了实用程序,并通过转换为各自的基本演算来证明每个系统的声音。 (C)2019 Elsevier B.V.保留所有紧身衣。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号