Re: Feedback sought on yet another cells implementation!

2009-02-22 Thread Timothy Pratley
Thanks for the details Anand, I understand better now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group,

Re: Feedback sought on yet another cells implementation!

2009-02-22 Thread Anand Patil
Hi Tim, thanks for the feedback! On Feb 21, 11:16 am, Timothy Pratley wrote: > (1) auto-agents by SS in contrib has a more convenient syntax [maybe > you can mimic it] Agreed, it is nicer. At the moment 'def-cell' is already a stretch for me, but maybe someday I'll get there. :) > (2) I can a

Re: Feedback sought on yet another cells implementation!

2009-02-21 Thread Timothy Pratley
Hi Anand, Very interesting! Great to see so much cells activity, and yes for long chains lazy cells are great. My impressions: (1) auto-agents by SS in contrib has a more convenient syntax [maybe you can mimic it] (2) I can add a watcher to one of your cells - it wont do anything unless evaluate

Re: Feedback sought on yet another cells implementation!

2009-02-21 Thread Anand Patil
Hi all, My second attempt is lazy-cells.clj in this group's files. The cells are actual agents rather than ugly maps, and all the information about parents is hidden in watchers. If you change a cell, the cells that depend on it all change their values to {:needs-update true}. You can subsequent

Feedback sought on yet another cells implementation!

2009-02-19 Thread Anand Patil
Hi all, I would really appreciate some comments and criticism on my cells implementation, which I've uploaded to this group's files as dataflow.clj . My goal was to fully exploit the available concurrency, but not do any unnecessary cell evaluations. My solution is lazy rather than push-based;