This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-22
Channels
- # aatree (2)
- # beginners (14)
- # boot (190)
- # cider (16)
- # cljs-dev (15)
- # cljsjs (6)
- # cljsrn (7)
- # clojure (101)
- # clojure-austin (26)
- # clojure-berlin (2)
- # clojure-estonia (4)
- # clojure-greece (53)
- # clojure-russia (46)
- # clojurescript (44)
- # core-async (12)
- # cursive (57)
- # data-science (49)
- # datomic (5)
- # emacs (8)
- # hoplon (92)
- # ldnclj (20)
- # lein-figwheel (22)
- # leiningen (4)
- # mount (37)
- # om (103)
- # onyx (26)
- # parinfer (70)
- # proton (6)
- # re-frame (32)
- # reagent (1)
- # yada (24)
Hey guys, may be slightly off-topic. I've heard about core.async and want to get into it. But before that I want to get a fundamental idea of sync/async, coroutines, actors, event-based, pub-sub, concurrency (and other related buzzwords) and where they all fit in. Can someone suggest a good place to start?
hey @doodlebug it's a big topic! you might start by poking around at "introduction to concurrency" links. this set of lecture notes is not bad- http://cs.lmu.edu/~ray/notes/introconcurrency/.
@jonahbenton: the introduction looks promising! Thanks
Hey if I have something like this ((comp (partial map inc) (partial filter even?)) [1 2 3 4 5 6]) does that mean it will loop over the list two times? the first time it will filter the even numbers and then the second time it will map increment over the remaining numbers?
or does it somehow merge the two functions so that it only needs to loop over one time?
@adamkowalski: It does run it twice: https://github.com/clojure/clojure/blob/clojure-1.7.0/src/clj/clojure/core.clj#L2426
thanks
How do transducers work? Like not in the sense of how to use them, but what is going on behind the scenes conceptually that they are able to “combine” functions to only perform one loop and still do all of the work
@adamkowalski: I doubt I'll be able to explain that well here. There are great resources out there about them though.
hey @adamkowalski: this is a good overview for getting an intuition: http://ignaciothayer.com/post/Transducers-Are-Fundamental/ timothy baldridge, staff dev at cognitect, has an excellent video series (at $1/video) that goes in depth: https://tbaldridge.pivotshare.com/media/transducers-episode-1/13404.
It's just combining transformations into a single function
There's no real magic involved