首页> 外文期刊>Journal of Functional Programming >FUNCTIONAL PEARL A poor man's concurrency monad
【24h】

FUNCTIONAL PEARL A poor man's concurrency monad

机译:功能珍珠穷人的并发单子

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

摘要

Without adding any primitives to the language, we define a concurrency monad transformer in Haskell. This allows us to add a limited form of concurrency to any existing monad. The atomic actions of the new monad are lifted actions of the underlying monad. Some extra operations, such as fork, to initiate new processes, are provided. We discuss the implementation, and use some examples to illustrate the usefulness of this construction.
机译:在不向语言添加任何原语的情况下,我们在Haskell中定义了并发monad转换器。这允许我们向任何现有的monad添加有限形式的并发。新单子的原子动作是基础单子的提升动作。提供了一些额外的操作(例如fork)来启动新进程。我们讨论实现,并使用一些示例来说明此构造的有用性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号