适用于 Ocaml 和其他语言的基于 Actor 的分布式并发库

发布于 2024-12-06 20:10:47 字数 1539 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

杀お生予夺 2024-12-13 20:10:47

虽然它可能与 Erlang 使用的模型不完全相同,但您可能想看看 JoCaml,它基于连接结石。

While it may not be the exact same model that Erlang uses, you might want to take a look at JoCaml, which is based on the join calculus.

十级心震 2024-12-13 20:10:47

您可以查看 parvel —— ocaml 的消息传递库/框架。它尚未完成,但已经包含了一些用于使用 actor 进行编程的原语。

You can take a look at parvel -- message passing library/framework for ocaml. It's not yet complete, but already includes some primitives for programming with actors.

℡寂寞咖啡 2024-12-13 20:10:47

“我正在考虑从 Erlang 迁移到 Scala 或 Ocaml。”

您应该考虑 scalag,它允许您在 Scala 中编程,但使用 Erlang 的 actor。

我最近在 Strange Loop 会议上看到了 @moonpolysoft (Cliff Moon) 关于该语言的演讲。 Cliff Moon 为 https://boundary.com/ 开发了它,并于今年早些时候将其开源。

"I'm considering moving from Erlang to either Scala or Ocaml."

You should consider scalang, which allows you to program in Scala, but use Erlang's actors.

I recently saw a talk on the language by @moonpolysoft (Cliff Moon) at the Strange Loop conference. Cliff Moon developed it for https://boundary.com/ and open-sourced it earlier this year.

时光病人 2024-12-13 20:10:47

您可能会花费大量时间阅读:

Scala 和 F# 有 akka 和 MailboxProcessor正在生产应用程序中使用(注意:Scala Actor 和我认为 akka 与 Hotspot 密切相关;我不确定 MailboxProcessor 是否可以在 MONO 下使用)

Haskell 有用户空间线程和 至少 1 个参与者 对于 ML 和 ocaml,一些可能

没有广泛使用的库:poly/MLoc4mc

网络多核

You'll probably spend a lot of time reading about:

Scala and F# have akka and MailboxProcessor which are being used in production apps (note: Scala actors and, I think, akka, are very tied to Hotspot; I'm not sure if MailboxProcessor can be used under MONO)

Haskell has userspace threads and at least 1 actor implementation which i don't know a lot about

For ML and ocaml, some libs which are probably not widely used: poly/ML and oc4mc

and netmulticore

装纯掩盖桑 2024-12-13 20:10:47

虽然这是一个非常古老的问题,但自提出以来情况已经发生了变化。 C++ 有一个非常健壮的参与者模型实现。它还按照 OP 的要求提供分布式计算功能。主页位于 http://actor-framework.org/

此外,它还可以让我们利用 OpenCL HPC 模块位于 github 存储库之一。

Although, it is a very old question things have changed since it was asked. C++ has an actor model implementation which is quite robust. It also provides distributed computing features as asked by OP. The homepage is at http://actor-framework.org/

Further, it can also make us of OpenCL for HPC the module for which is located at github in one of the repositories.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文