Re: Idiomatic pmap for side-effects ?

2011-12-09 Thread Thomas
Stuart Any idea when the Fork/Join frame work will be included in Clojure proper? I have seen the presentation somewhere on the web and it looks very promising. Thomas On Dec 8, 9:37 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote: doall + pmap will work, but be aware that pmap is not

Re: Idiomatic pmap for side-effects ?

2011-12-09 Thread Stuart Sierra
I don't think the fork/join branch is currently active, but the work is there waiting for someone to pick it up again. -S -- 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 Note that posts

Idiomatic pmap for side-effects ?

2011-12-08 Thread Leonel Gayard
Hi, What's the most idiomatic way to execute a function in parallel, if we're only interested in the side effects of the function ? Here's an analogy: a newbie could try to use function f in a for, and it's possible he would not see the side effects of f because of the lazyness of for; in

Re: Idiomatic pmap for side-effects ?

2011-12-08 Thread Stuart Sierra
doall + pmap will work, but be aware that pmap is not particularly clever about allocating CPU usage. Fork/Join is a better approach, not yet integrated into Clojure proper but there are experimental branches. Also look at `pcalls`. -S -- You received this message because you are subscribed