This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-15
Channels
- # beginners (6)
- # cider (13)
- # cljs-dev (45)
- # cljsrn (1)
- # clojure (11)
- # clojure-france (1)
- # clojurescript (13)
- # cursive (19)
- # data-science (10)
- # datascript (1)
- # datomic (2)
- # docs (8)
- # fulcro (26)
- # graphql (1)
- # hoplon (2)
- # jobs (1)
- # off-topic (5)
- # parinfer (21)
- # re-frame (2)
- # reagent (22)
- # shadow-cljs (3)
- # spacemacs (8)
- # unrepl (1)
Hi everyone, why the author in this video https://youtu.be/-SMHkPAEGIk?t=547 compose core.async pipeline
's like that instead of composing the transducer? @pri
I don’t know if I can answer to specifics there but one reason to do so is that pipelines let you separate stages and give each a concurrent, possibly different sized pool of threads. Depending on the chunkiness of each stage and whether you need to tee or tap between that can be useful
Transducers inside a channel occur in a single thread at a time and happen under the channel lock which has blocking consequences as well
Both are useful but they have trade offs
How do I take a vector of maps and turn it into a new vector of maps based on the maps in the first vector?
thanks @joelsanchez