gpt4 book ai didi

lisp - Common Lisp 存在哪些后台作业处理解决方案?

转载 作者:太空宇宙 更新时间:2023-11-03 18:51:37 25 4
gpt4 key购买 nike

我需要一个后台作业处理的解决方案。一个任务队列,其中工作人员可以是不同机器上的远程进程。

我在互联网上搜索过,但只找到了 Psychiq这是在 alfa 中,不推荐用于生产。

我不相信像 Common Lisp 这样成熟的语言没有其他解决方案。

他们在哪里?

更新:

可能的解决方案:

  • lfarm (由@coredump 建议)。
  • Gearman 与客户/工作人员一起使用 cl-gearman (我自己在另一个谷歌 session 中找到的)。

最佳答案

我不确定这是否正是您所追求的,但是 LFARM可能是一个不错的候选人:

lfarm is a distributed version of lparallel which replaces worker threads with remote processes. For example lfarm:pmap will subdivide the input sequence(s), send the parts to remote machines for mapping, and then combine the results. Likewise lfarm:future wraps remote task execution in the metaphor of promises. Most of the lparallel kernel API is retained with minor variations.

github repository有一些例子。

另见 Erlangen用于基于 native 线程的分布式类 Erlang 方法。

Erlangen brings distributed, asynchronous message passing to Clozure Common Lisp. It orchestrates Clozure CL processes (native threads) using message passing, and encourages fault tolerant software architectures using supervison trees. It is also transparently distributed, all its features work seamlessly across IP networks. Thus, it can be used to build applications across multiple Clozure CL instances on different hosts. Erlangen borrows many ideas from Erlang/OTP, hence the name. (Its a town!)

关于lisp - Common Lisp 存在哪些后台作业处理解决方案?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40988989/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com