This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-20
Channels
- # announcements (3)
- # babashka (7)
- # beginners (43)
- # biff (19)
- # calva (39)
- # cider (16)
- # clerk (2)
- # clj-yaml (32)
- # cljs-dev (37)
- # clojure (129)
- # clojure-australia (1)
- # clojure-china (1)
- # clojure-europe (46)
- # clojure-filipino (1)
- # clojure-gamedev (25)
- # clojure-hk (1)
- # clojure-indonesia (1)
- # clojure-japan (2)
- # clojure-korea (1)
- # clojure-my (1)
- # clojure-nl (5)
- # clojure-norway (8)
- # clojure-sg (1)
- # clojure-sweden (12)
- # clojure-taiwan (1)
- # clojure-uk (9)
- # clojurescript (14)
- # core-typed (136)
- # cursive (18)
- # duct (9)
- # emacs (12)
- # etaoin (7)
- # events (1)
- # graalvm (3)
- # gratitude (2)
- # humbleui (7)
- # hyperfiddle (99)
- # introduce-yourself (5)
- # jobs (2)
- # leiningen (1)
- # missionary (14)
- # nrepl (2)
- # off-topic (12)
- # polylith (21)
- # rdf (29)
- # re-frame (8)
- # releases (1)
- # shadow-cljs (264)
- # spacemacs (21)
- # sql (7)
- # vscode (1)
This is useful if a continuous time variable is defined not in term of successive states, but in term of successive diffs.
Do you have an example ? In terms of electric or else, I have trouble thinking of when I will use that.
e/for implementation as well as rendering streaming events such as streaming chatgpt responses, or Rama subscriptions
what if our reactive UI views were not a function of the current value of a query resultset, but rather reductions over history of changes/updates to that resultset
I’m working on displaying large dataset of spatial data with electric, definitely keen to get more streaming of incremental data.
This delay-flow has unexpected result, what have we done wrong?
it's the initial value (from reductions) that is not doing what i expected
does this exhibit the expected behavior?
(defn delay-flow [>x]
(->> (m/reductions (fn [[_ b] nx] [b nx]) [] >x) (m/eduction (map second))))
yes that produces the expected behavior
(->> (m/eduction (drop 1) >x) (m/reductions {} v0))
and (m/ap (m/amb v0 (m/?> (m/eduction (drop 1) >x))))
are equivalent and produce the same result on my machine
why is the 1 not seen in the second test assertion
oh, i need to put the initial value on the zip, >y