首页> 外文OA文献 >Mixing Metaphors: Actors as Channels and Channels as Actors
【2h】

Mixing Metaphors: Actors as Channels and Channels as Actors

机译:混合隐喻:演员作为频道和频道作为演员

摘要

Channel- and actor-based programming languages are both used inpractice, but the two are often confused. Languages such as Goprovide anonymous processes which communicate using buffers or rendezvous points---known as channels---while languages such as Erlang provide addressable processes---known as actors---each with a single incoming message queue.The lack of a common representation makes it difficult to reason abouttranslations that exist in the folklore. We define a calculuslambda-ch for typed asynchronous channels, and a calculus lambda-act fortyped actors. We define translations from lambda-act into lambda-ch andlambda-ch into lambda-act and prove that both are type- andsemantics-preserving.We show that our approach accounts for synchronisation and selectivereceive in actor systems and discuss future extensions to support guardedchoice and behavioural types.
机译:基于通道和基于参与者的编程语言都是不切实际的使用,但是两者经常混淆。诸如Goprovide匿名进程之类的语言使用缓冲区或集合点进行通信(称为通道),而诸如Erlang之类的语言则提供可寻址的进程(称为参与者),每个进程都具有单个传入消息队列。常见的表达方式很难推理民俗中存在的译文。我们为类型化的异步通道定义了calculuslambda-ch,为类型化的参与者定义了calculus lambda-act。我们定义了从lambda-act到lambda-ch和lambda-ch到lambda-act的转换,并证明它们都是类型和语义保留的。我们证明了我们的方法考虑了参与者系统中的同步和选择性接收,并讨论了将来的扩展以支持守卫选择和行为类型。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号