thread-pool scope

2009-07-20 Thread Dan Fichter
I want to set up Executor thread pools spawned by threads in other Executor thread pools and to scope certain variables to these nested pools. I wish something I would call "thread-pool scope" were easily achieved in Clojure. Is it? I'm writing a Web crawler (let's pretend) that has three top-le

Re: thread-pool scope

2009-07-22 Thread Dan Fichter
traditional functional-programming solution to this > problem. It's true the Java equivalent is ugly, but that's because > Java doesn't have real closures. :) > > -SS > > On Jul 20, 3:30 pm, Dan Fichter wrote: > > I want to set up Executor thread pools spawned by th

Re: Lazy Exceptions

2009-08-27 Thread Dan Fichter
Lazy seqs were designed to work that way. See the implementation in clojure.lang.LazySeq. RuntimeExceptions get thrown whenever Exceptions are caught. I guess you find it unhelpful? Dan On Wed, Aug 26, 2009 at 11:47 PM, Tim Snyder wrote: > > I'm trying to understand how laziness affects exce

vs. Python

2009-08-30 Thread Dan Fichter
I'd like to convince some Python developers that Clojure is not foreign and does many things better than Python. I'd appreciate whatever suggestions you have about what I've written. Though I am crazy about STM and Clojure agents, I don't deal with them here. This has to be a gentle introduction