Hi,
I was thinking about how our society incentivizes behaviors by a collection of free individuals, so that the work of those individuals fulfils the requirements of the society as a whole. For example, people contribute by working, earn money, and use that money to gain a fair share of the contributions of others. It works for the mos...
The Clojure API describes these two functions as:
(send a f & args) - Dispatch an action to an agent. Returns the agent immediately. Subsequently, in a thread from a thread pool, the state of the agent will be set to the value of: (apply action-fn state-of-agent args)
and
(send-off a f & args) - Dispatch a potentially blocking...
I have a website at the back end of which I have a JADE main container running. Multiple machines can register with this main container. So, I want to know if the JADE API supports getting the IP addresses of all the agents currently registered with the Main container? I have to eventually display this information on the website.
Thanks...
I wrote a simulation of the Ring network topology in Scala (source here) (Scala 2.8 RC7) and Clojure (source here) (Clojure 1.1) for a comparison of Actors and Agents.
While the Scala version shows almost constant message exchange rate as I increase the number of nodes in network from 100 to 1000000, the Clojure version shows message r...
Below is my current script:
<script type="text/javascript">
if (navigator.userAgent.indexOf('BlackBerry')!= -1){
document.write('<link rel="stylesheet" href="/m/css/mobile.css" type="text/css" />');
} else if (navigator.userAgent.indexOf('iPhone')!= -1) {
document.write('<link rel="stylesheet" href="/m/css/smartmobile.css" type=...
I am trying to use one of the new features - asynchronous agents library. I just added a
unbounded_buffer m_myDataBuffer;
to my C++ class, nothing more - no agent running yet.
To enable memory leak detection in my application, I am using:
#ifdef _DEBUG
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
#endif
But a...
Hello,
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 of the twitter api documentation which says "that tweets should often be saved or q...
Hello,
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 being the json of a tweet) to a queue.
One worker role (Processor) that reads mes...