This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-13
Channels
- # admin-announcements (6)
- # beginners (51)
- # boot (164)
- # braid-chat (49)
- # cider (10)
- # clara (17)
- # cljs-dev (13)
- # cljsjs (51)
- # cljsrn (10)
- # clojars (42)
- # clojure (195)
- # clojure-bangladesh (102)
- # clojure-berlin (8)
- # clojure-canada (1)
- # clojure-chicago (19)
- # clojure-colombia (4)
- # clojure-denmark (6)
- # clojure-russia (15)
- # clojure-ukraine (7)
- # clojurescript (257)
- # code-reviews (10)
- # community-development (292)
- # core-async (13)
- # datomic (26)
- # dirac (4)
- # dunaj (5)
- # dysphemism (5)
- # events (21)
- # funcool (15)
- # hoplon (115)
- # instaparse (31)
- # ldnclj (15)
- # mori-fork (43)
- # mount (5)
- # off-topic (18)
- # om (195)
- # onyx (13)
- # proton (9)
- # re-frame (11)
- # reagent (44)
- # slack-help (14)
- # slackpocalypse (1)
- # spacemacs (10)
- # yada (23)
Anyone able to contrast the use of Observables (as implemented in RxJS/RxJava/React Extensions/etc) with that of core.async in the construction of “event streams” that can be composed (for lack of a better term)?
I take it, core.async is a lower level abstraction than that of the API provided by Observables, so one can theoretically reproduce the API with core.asyc?
@gurdas: sounds about right. I guess the conceptual difference is much about CSP having chan
being an object, while Rx has the Observable as a 'thing'. So you'd have to translate between those concepts, but that's totally doable .
Is any of those models preferable when doing concurrency? Have very little experience with Rx. Enjoying CSP but sometimes wishing it was an Erlang style actor model
@gurdas: one small addition to that - with core.async and transducers you can reuse function easily. With RxJS representing something like (def p (comp (filter f1) (map f2))
so it can be reused across all the app is not that… elegant I say
I’ve been a big fan of RxJS (and still use it for all JS related work - much better than Promises), but core.async is on a lower level and I like that I have more control on that
Good comment btw https://news.ycombinator.com/item?id=10752742. A lot of things depends on a task
Doesn’t RxJS have a function to let you lift normal functions up into observable streams?
(I don’t have any firsthand RxJS experience, but ReactiveCocoa has that)
if i'm dealing with core.async mults, is it more idiomatic to mass around a mult to various functions that need it and tap it within the function, or should i just tap a new chan at a higher level and only deal with actual chans in the lower level functions, or am i just worrying too much about this
not a ton of example code i can find and im trying to get a sense of how i should be structuring these things