TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Clojure's concurrent agents in action

39 pointsby spoon16almost 13 years ago

2 comments

dreishalmost 13 years ago
send should never be used in a function that will not keep the CPU busy, such as one that calls Thread/sleep. send-off, which will allocate a new thread rather than taking up a slot in Clojure's fixed-size agent thread pool, should be used instead.
评论 #4309270 未加载
dkhenryalmost 13 years ago
Another great tool in the Programmer tool kit. If you wanted this same concept on Scala or Java I recommend Akka2<p><a href="http://doc.akka.io/docs/akka/2.0.2/scala/agents.html" rel="nofollow">http://doc.akka.io/docs/akka/2.0.2/scala/agents.html</a>