This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-28
Channels
- # aatree (3)
- # alda (8)
- # avi (21)
- # beginners (37)
- # boot (193)
- # cbus (1)
- # cider (29)
- # cljs-dev (8)
- # cljsjs (3)
- # cljsrn (20)
- # clojure (76)
- # clojure-dev (13)
- # clojure-miami (20)
- # clojure-portugal (2)
- # clojure-russia (220)
- # clojure-sg (2)
- # clojurebridge (5)
- # clojurescript (94)
- # community-development (14)
- # conf-proposals (110)
- # core-async (12)
- # cursive (12)
- # datascript (6)
- # datomic (14)
- # dirac (72)
- # emacs (49)
- # hoplon (86)
- # jobs (33)
- # jobs-discuss (1)
- # ldnclj (6)
- # lein-figwheel (1)
- # off-topic (56)
- # om (139)
- # onyx (29)
- # pedestal (17)
- # proton (23)
- # re-frame (45)
- # reagent (35)
- # ring-swagger (4)
- # test-check (1)
- # testing (8)
- # yada (11)
wasn't there talk about promise-chan
s being dereferable? was that dropped or am I completely mistaken?
also found an open issue for it, so question answered: http://dev.clojure.org/jira/browse/ASYNC-102
it was not dropped but it's annoyingly hard to implement cleanly (without introducing namespace cycles)
newbie question: is there a sliding buffer that can drop items based on length of time in the buffer aka time based sliding window?
@raymcdermott: There’s nothing like that built-in. You could try to implement it yourself. However, I would suggest trying to see if you could re-frame the problem in terms of timeout
instead. When you pair channels with timeout
, you can do quite a bit of sophisticated stuff.
@jgdavey: I’m struggling to re-frame it like that to be honest - could be a limit of my imagination!
If you were to implement yourself, you could make a go
that simply pulls from a channel, and adds to another as a [timestamp item]
pair, then finally pushes into an unbounded chan
that has a transducer that filters based on age of that timestamp
@jgdavey: ok, no … I think I see … the channel has the filter so the consumer just sees the result of the transducer …. I’ll have a go (pun not intended)
just wondering if something like this is doable (in ClojureScript version of core.async): https://github.com/binaryage/dirac/issues/3