Re: [FRIAM] Charging agents for the computations they do

2011-03-08 Thread Dale Schumacher
One thread that has run through much of Carl Hewitt's writing on Actors is the concept of a sponsor for a computation. This can be used to control things like execution of multiple independent solutions to the same problem so that alternatives can be terminated when any one of them finds a

Re: [FRIAM] Charging agents for the computations they do

2011-03-08 Thread Rikus Combrinck
The Linux C library (probably most *nixes) has a time() function that can return, amongst others, the actual time that the CPU dedicated to the calling process, as opposed to simple elapsed time. Unfortunately, I don't think it can be made to report on thread level, which is probably what you'd

Re: [FRIAM] Charging agents for the computations they do

2011-03-08 Thread Owen Densmore
Russ: could you say more about the ABM? Is it distributed? Cloud (AWS or GAE)? What language? GIS/Location Aware? Browser capable? Graphically intense (i.e. openGL/GLES/webgl or vanilla 2D)? GPU based? Scale (single system or cluster; how many agents)? .. and about another billion

Re: [FRIAM] Charging agents for the computations they do

2011-03-08 Thread Russell Standish
On Tue, Mar 08, 2011 at 06:40:16PM +0200, Rikus Combrinck wrote: The Linux C library (probably most *nixes) has a time() function that can return, amongst others, the actual time that the CPU dedicated to the calling process, as opposed to simple elapsed time. Unfortunately, I don't think it

Re: [FRIAM] Charging agents for the computations they do

2011-03-08 Thread Rikus Combrinck
Thanks, that's good to know! --Rikus On Tue, Mar 8, 2011 at 23:22, Russell Standish r.stand...@unsw.edu.auwrote: Yes it does, although in typical Microsoft fashion, the details differ: http://msdn.microsoft.com/en-us/library/ms683223(v=vs.85).aspx (I had cause to look into this recently

[FRIAM] Charging agents for the computations they do

2011-03-07 Thread Russ Abbott
I'm considering the development of an ABM in which the agents are charged for the computations they do. But I can't think of a language that facilitates that. I know that in most languages one can look at the real-time clock, but I can't think of a language in which one can look at a dynamic

Re: [FRIAM] Charging agents for the computations they do

2011-03-07 Thread Gary Schiltz
Interesting idea. Most Common Lisp implementations compile to native machine code, so it might not be too hard to instrument the generated code to do some kind of bookeeping. There are quite a few open source implementations out there, e.g. Steel Bank Common Lisp (www.sbcl.org) or Clozure

Re: [FRIAM] Charging agents for the computations they do

2011-03-07 Thread Stephen Guerin
Hey Russ, You might look at how Google App Engine tries to get a handle on this when charging for CPU: http://code.google.com/appengine/docs/billing.html Josh has pointed out that there's some weird interpretations. For instance, they quote $0.10 per cpu hour but don't specify the CPU. Is it

Re: [FRIAM] Charging agents for the computations they do

2011-03-07 Thread Russ Abbott
Thanks, Stephen. How come you only post announcements to Friam? About Google, they have an advantage over my situation. They can start and stop the clock when they start and stop the application. I don't know that I can do that for agents. Also, I have no control over whether something else runs