Questions tagged [agents]
113 questions
2
votes
1 answer
Unable to use the value returned by Agent in a loop in elixir
So I have elixir program which runs in a loop and perform certain operations. I have declared an Agent to create a single zookeeper connection instance and then use the same in the loop. Following is my code:-
mix.exs
def application do
[
…

Shubham Sharma
- 175
- 2
- 16
2
votes
3 answers
Twitter Streaming API recording and Processing using Windows Azure and F#
A month ago I tried to use F# agents to process and record Twitter StreamingAPI Data here. As a little exercise I am trying to transfer the code to Windows Azure.
So far I have two roles:
One worker role (Publisher) that puts messages (a message…

jlezard
- 1,417
- 2
- 15
- 32
2
votes
1 answer
Twitter stream api with agents in F#
From Don Syme blog (http://blogs.msdn.com/b/dsyme/archive/2010/01/10/async-and-parallel-design-patterns-in-f-reporting-progress-with-events-plus-twitter-sample.aspx) I tried to implement a twitter stream listener. My goal is to follow the guidance…

jlezard
- 1,417
- 2
- 15
- 32
2
votes
1 answer
Create multiple agents with Java JADE
I am kind of new with JADE platform in eclipse. I want to create multiple agents, I have put a for loop and incremented the counter to create the agents, It used to work well but when I added the ThiefAgent, it didn't work. It only creates one…

Rii933
- 69
- 8
2
votes
2 answers
Clojure concurrency: Let an agent act on a java object / deftype
working my way up learning Clojure I arrived at the following problem:
setup: A class for a graph data structure, created with deftype and definterface which has a addNode [id data] member function. Works as expected when called directly, like…

waechtertroll
- 607
- 3
- 17
2
votes
1 answer
ask one agent set to get a value from another agent set
My sellers set trade_Price with this code:
ask buyers [ ask sellers [if any? buyers-here [ if seller_Price <= [buyer_Price] of myself
[ set trade_Price seller_Price + random ([buyer_Price] of myself - seller_Price) ]]]]
I want that my…

runle
- 149
- 8
2
votes
1 answer
How do you use an agent and core.async to properly log asynchronously in Clojure?
In the following code, I am using a go loop that listens in on a channel and writes the values it reads to an agent. Then, in the same loop, the log-to-file function is supposed to write each item on the agent to a file. The output to the file is…

kurofune
- 1,055
- 12
- 26
2
votes
1 answer
Clojure - Using agents slows down execution too much
I am writing a benchmark for a program in Clojure. I have n threads accessing a cache at the same time. Each thread will access the cache x times. Each request should be logged inside a file.
To this end I created an agent that holds the path to the…

Christophe De Troyer
- 2,852
- 3
- 30
- 47
2
votes
1 answer
If I call an agent with runOnServer from an xPage application does it release control back to the xPage?
I know calling agents from the web can have performance issues. I don't want to block the end user while the agent is running. When you call an agent with runonserver does it block the xPage from continuing to process or will it run the agent…

Bitwyse1
- 339
- 3
- 18
2
votes
3 answers
Most suitable database package for use with JADE
I'm using JADE (Java Agent DEvelopment Framework) and need to set up a database back end.
Does anyone have any recommendations for which database system would work well with the framework?

Viral Shah
- 2,888
- 2
- 22
- 25
2
votes
0 answers
Clojure agents append to excel file
I've been using docjure to write to excel files. Mostly I want to append rows to already existing files, usually one at a time. When I do this without agents/future, I load the file, use add-rows to add the data, and then rewrite the file like…

jimmyc
- 115
- 4
2
votes
1 answer
building Agents in c#
Is there anything like JADEX or JADE in C# or C++? I am doing a project on agents and so far I can't find anything like JADEX for building BDI agents in C#. Anything in C# that I have found is for doing Agent simulations rather than building agents.

pie154
- 603
- 3
- 10
- 28
2
votes
3 answers
Create 10k+ agents in clojure
As I tested, a separate thread is used for each new agent, when I create them.
Could several agents be run in one thread?
My idea is to create 10K+ light-weight agents (like actors in erlang), so is it a challenge for Clojure?
Thanks

Alex
- 1,210
- 8
- 15
2
votes
2 answers
Asynchronous Agent Library and data share
I am trying to invoke two independent threads by using Asynchronous Agent Library (AAL) as included in in C++ (refer also to here for AAL description http://msdn.microsoft.com/en-us/library/dd492627.aspx). The Agents Library provides alternatives…

Maschina
- 755
- 7
- 30
2
votes
2 answers
Clojure agents: rate limiting?
Okay, so I have this small procedural SVG editor in Clojure.
It has a code pane where the user creates code that generates a SVG document, and a preview pane. The preview pane is updated whenever the code changes.
Right now, on a text change event,…

Rom1
- 3,167
- 2
- 22
- 39