简体   繁体   English

是否有相当于Haskell的Scala的CHP?

[英]Is there an equivalent of Haskell's CHP for Scala?

Clojure has this amazing library implementing Tony Hoare's Communicating Sequential Processes called core.async . Clojure拥有这个令人惊叹的库,它实现了Tony Hoare的 通信顺序进程,称为core.async

Haskell appears to have an equivalent called chp . Haskell似乎有一个名为chp的等价物。 ( Not sure if it compiles under GHC 7.8 ). 不确定它是否在GHC 7.8下编译 )。

My question is Is there an equivalent of Haskell's CHP for Scala? 我的问题是, 是否有相当于Haskell的Scala CHP?

You should have a look at this: 你应该看看这个:

https://groups.google.com/forum/#!msg/scala-user/NljrQ4Mc-aI/3ISm68sqLNAJ https://groups.google.com/forum/#!msg/scala-user/NljrQ4Mc-aI/3ISm68sqLNAJ

It provides a really interesting list of alternatives for doing CSP in Scala and doesn't recommend JCSP since it's development apparently stopped in 2011. 它为在Scala中执行CSP提供了一个非常有趣的备选方案列表,并且不建议使用JCSP,因为它的开发显然在2011年停止了。

It also talks about a really interesting paper written by Andrew Bate at Oxford that describes a DSL in Scala for CSP but that whose implementation hasn't been open sourced. 它还谈到了Andrew Bate在牛津大学撰写的一篇非常有趣的论文 ,该论文描述了Scala中针对CSP的DSL,但其实现尚未开源。

It finally describes Quasar that seems the best alternative. 它最终描述了Quasar似乎是最好的选择。 If you're interested in Quasar, this post gives a good description of how Quasar works. 如果你对Quasar感兴趣, 这篇文章很好地描述了Quasar的工作原理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM