Re: priority queue for scheduling events in the future

2010-11-25 Thread Laurent PETIT
2010/11/25 HiHeelHottie > > Ken, > > Thanks for putting this together. As a newbie, this gives me a lot to > mull over. Can you explain the convention of a * at the end of a > function name? > Hi, it's a common convention when you have both a macro and a function, the macro generally delegatin

Re: priority queue for scheduling events in the future

2010-11-25 Thread HiHeelHottie
Ken, Thanks for putting this together. As a newbie, this gives me a lot to mull over. Can you explain the convention of a * at the end of a function name? On Nov 24, 12:39 am, Ken Wesson wrote: > On Tue, Nov 23, 2010 at 11:45 PM, HiHeelHottie wrote: > > > Does anybody know of an implementati

Re: priority queue for scheduling events in the future

2010-11-24 Thread Mark Engelberg
Thanks! On Wed, Nov 24, 2010 at 8:30 AM, Tom Faulhaber wrote: > OK, I'm doing stuff there now. > > I'll move the comment to the ns doc string, then. > > There are still issues with autodoc and protocols/types, but priority > queues look like they'll be a good sandbox for resolving them. > > Tom >

Re: priority queue for scheduling events in the future

2010-11-24 Thread Tom Faulhaber
OK, I'm doing stuff there now. I'll move the comment to the ns doc string, then. There are still issues with autodoc and protocols/types, but priority queues look like they'll be a good sandbox for resolving them. Tom On Nov 24, 2:51 am, Mark Engelberg wrote: > No reason other than my lack of

Re: priority queue for scheduling events in the future

2010-11-24 Thread Mark Engelberg
No reason other than my lack of knowledge that ns doc strings are picked up by autodoc and comments are not. :) On Wed, Nov 24, 2010 at 12:36 AM, Tom Faulhaber wrote: > Mark, > > Is there a reason that you put the documentation in a comment rather > than as the ns doc string so that autodoc would

Re: priority queue for scheduling events in the future

2010-11-24 Thread Rasmus Svensson
2010/11/24 HiHeelHottie : > > Does anybody know of an implementation for a priority queue that can > be used for scheduling events in the future?  I would like to put a > map associated with a timestamp into the queue and be able to pull out > all maps at or before a given time in order. I would a

Re: priority queue for scheduling events in the future

2010-11-24 Thread Tom Faulhaber
Mark, Is there a reason that you put the documentation in a comment rather than as the ns doc string so that autodoc would pick it up? Currently, priority queues are undiscoverable by autodoc users. Tom On Nov 23, 9:41 pm, Mark Engelberg wrote: > In 1.3, you can use clojure.contrib.priority-map

Re: priority queue for scheduling events in the future

2010-11-23 Thread Ken Wesson
On Wed, Nov 24, 2010 at 12:39 AM, Ken Wesson wrote: > On Tue, Nov 23, 2010 at 11:45 PM, HiHeelHottie wrote: >> >> Does anybody know of an implementation for a priority queue that can >> be used for scheduling events in the future?  I would like to put a >> map associated with a timestamp into the

Re: priority queue for scheduling events in the future

2010-11-23 Thread Mark Engelberg
In 1.3, you can use clojure.contrib.priority-map. Documentation found in comment at top of source: https://github.com/clojure/clojure-contrib/blob/master/modules/priority-map/src/main/clojure/clojure/contrib/priority_map.clj -- You received this message because you are subscribed to the Google Gr

Re: priority queue for scheduling events in the future

2010-11-23 Thread Ken Wesson
On Tue, Nov 23, 2010 at 11:45 PM, HiHeelHottie wrote: > > Does anybody know of an implementation for a priority queue that can > be used for scheduling events in the future?  I would like to put a > map associated with a timestamp into the queue and be able to pull out > all maps at or before a gi

Re: priority queue for scheduling events in the future

2010-11-23 Thread HiHeelHottie
Ulises, thanks for the response. The insertions will be sprinkled out over time and would want insertions/removals to be reasonably efficient. On Nov 23, 11:58 pm, Ulises wrote: > > Does anybody know of an implementation for a priority queue that can > > be used for scheduling events in the fut

Re: priority queue for scheduling events in the future

2010-11-23 Thread Ulises
> Does anybody know of an implementation for a priority queue that can > be used for scheduling events in the future?  I would like to put a > map associated with a timestamp into the queue and be able to pull out > all maps at or before a given time in order. You can do so with a combination of t