The implementation of Clojure sequence library predates protocols.
This is, however, the way forward, at least in clojurescript :

https://github.com/clojure/clojurescript/blob/master/src/cljs/cljs/core.cljs#L191

On 28 March 2013 14:49, vemv <v...@vemv.net> wrote:
> I recall from Rich's presentation on reducers (and it's intuitively true
> anyway) that FJ is not well suited to all workloads: uniform ones would do
> just fine with a fixed allocation of tasks to threads. I believe the
> tradeoff in that case is that one has to manage parallelism very explicitly.
>
> Now, is it feasible to provide a reducers implementation backed by a fixed
> thead pool? How well would it perform (provided the workload is suitable)?
>
> Similarly, I'd find tempting (just if a little crazy) to define clj's "seq
> library" (map, filter, reduce...) as a huge protocol, providing e.g.
> simple-lazy, chunked, FJ, and fixed-thread-pool implementations.
>
> --
> --
> 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 from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
-- 
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 from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to