This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-18
Channels
- # announcements (19)
- # babashka (30)
- # beginners (51)
- # biff (12)
- # calva (20)
- # cider (27)
- # clara (20)
- # clj-kondo (19)
- # clojure (128)
- # clojure-canada (1)
- # clojure-dev (5)
- # clojure-europe (29)
- # clojure-nl (1)
- # clojure-norway (48)
- # clojure-uk (5)
- # clojurescript (6)
- # clr (37)
- # core-async (17)
- # cursive (2)
- # data-oriented-programming (2)
- # datahike (1)
- # datomic (5)
- # emacs (22)
- # exercism (1)
- # funcool (17)
- # humbleui (15)
- # jobs (1)
- # malli (44)
- # off-topic (11)
- # podcasts-discuss (1)
- # pomegranate (1)
- # react (1)
- # remote-jobs (1)
- # shadow-cljs (25)
- # tools-build (12)
- # tools-deps (70)
- # xtdb (24)
morning
Egunon! (that's Basque for good morning) So this happened, for the first time in a couple of years (it used to snow several times a year around here, northern Spain)
Buongiorno
Morning!
moorning
anyone had any thoughts on dealing with errors during a transduce ? the particular problem i'm encountering is when using the transducer that manifold.stream and core.async let you provide to a stream/chan constructor ... my naive approach isn't working very well, and is leading to non-deterministic outputs - and i can see a better approach, but it will be a bit inefficient (an extra layer of stream/chan) ... but maybe i'm missing something ?
perhaps model errors as data too? Rather than either returning 5
or crashing, you could return {:ok 5}
or {:error "DivideBy0Error"}
.
yeah @U3X7174KS - that's roughly my next approach - the only difficulty is that i'll need to add another layer of stream/chan to unwrap and then maybe close the downstream stream/chan... but i can't currently see any alternative
modeling failure right in a concurrent context is a challenge! I don't feel like I have a good answer for that. But I often feel like starting from "it's just data" pushes me in the right direction.
it's just data™
i've been working on bringing the cold-source async stuff i've been doing for ages on manifold to ClojureScript land ... and i'm getting there : https://github.com/yapsterapp/promisespromises
Did I ever try and sell you on clip? I built the manifold executor with you in mind.
no @U09LZR36F - i don't remember any sales pitch!
It's async, manifold, cljs, edn, compatible. All the things. It should support everything you might need ;)
I definitely built it with you in mind based on conversations we must have had many years ago now
where's the repo @U09LZR36F? can't find it on your gh...
ohhhhh, yes you did sell me on that! i didn't remember it was called clip - but i was actually looking for it a few weeks ago, 'cos it would allow me to delete some code
well that's good - thanks @U09LZR36F - i can delete that code now 😁 (it's actually still in the promisespromises repo, commented out... i was going to rewrite it to ditch the monad transformer in favor of an interceptor chain)
@U0509NKGK i am rubbish at project naming - this might be the single instance ever where i've come up with a good name!