Actors 编程模型中的规范模式参考
是否有一个来源,我可以用它来学习有关面向参与者/代理的编程的一些最常用和流行的实践?我主要关心的是仅限于上述方案的并行性和分布 - Actor、消息传递。
我应该从 Erlang 文档开始,或者可能有任何类型的书描述了面向 Actor 编程时最重要的构建块?
(最有用的示例是 Scala 或 F#)
Is there a source, which I could use to learn some of the most used and popular practices regarding Actor-/Agent-oriented programming? My primary concern is about parallelism and distribution limited to the mentioned scheme - Actors, message passing.
Should I begin with Erlang documentation or maybe there is any kind of book that describes the most important building blocks when programming Actor-oriented?
(Most useful examples would be in Scala or F#)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Erlang 和 Scala 的 Akka 最受欢迎,并且拥有庞大的社区。如果您想了解基于 ML 的风格,可以使用 JoCaml。他们有简单的介绍文本和更正式的论文集。我在研究工作中使用 JoCaml 大约两年了,对此非常满意。此外,您还可以找到许多使用 F# 邮箱来实现 actor 式消息传递的示例。
The Erlang and Scala's Akka are most popular and have large community. In case you want to know ML-based style there is JoCaml. They have simple intro text and collection of more formal papers. I'm using JoCaml about two years in my research work and very happy with it. Also, you can find many examples of the F# mailboxes usage to implement actor-style message passing.
要获得丰富多彩且有趣的解释,我建议阅读此 博客 上的一些条目
除此之外,我们欢迎您来到 Akka 邮件列表!
For a colorful and interesting explanation I'd recommend to read some entries on this blog
Other than that, we welcome you to the Akka mailinglist!
关于 Scala 中 Actor 的使用,您可能需要查看 Akka 框架。它有很好的文档,这里提供了包含许多示例的文章和演示文稿列表。
With regards to the usage of Actors in Scala, you might want to look into the Akka framework. It has good documentation, and here they have a list of articles and presentations with many examples.
在 Erlang 文档中你找不到太多明确讨论 Actor 的内容。文档和最近的 Erlang 书籍解释了如何在 Erlang 上下文中使用并发/分发/消息传递。顺便说一句,当我们开发 Erlang 时,我们实际上并没有听说过 Actor。
You won't find much in the Erlang documentation that explicitly talks about Actors. The documentation and recent Erlang books explain how to use concurrency/distribution/message passing in the Erlang context. As an aside we hadn't actually heard of Actors when we developed Erlang.