This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-08
Channels
- # aleph (5)
- # announcements (3)
- # aws-lambda (24)
- # babashka (17)
- # beginners (59)
- # calva (168)
- # clerk (4)
- # clj-kondo (62)
- # clojure (77)
- # clojure-belgium (4)
- # clojure-brasil (10)
- # clojure-ecuador (3)
- # clojure-europe (41)
- # clojure-losangeles (2)
- # clojure-nl (2)
- # clojure-norway (24)
- # clojure-uk (2)
- # clojurescript (44)
- # clr (21)
- # community-development (7)
- # conjure (1)
- # cursive (6)
- # datalevin (15)
- # datomic (1)
- # deps-new (12)
- # emacs (45)
- # events (1)
- # fulcro (8)
- # funcool (7)
- # graphql (5)
- # hugsql (15)
- # jobs (2)
- # matcher-combinators (17)
- # meander (14)
- # membrane (31)
- # pathom (28)
- # pedestal (8)
- # practicalli (6)
- # re-frame (12)
- # releases (1)
- # remote-jobs (1)
- # shadow-cljs (32)
- # tools-deps (8)
- # vim (16)
i've just got all tests green in promisespromises using promesa-CSP (public CI is broken, because there is no new promesa release yet)- so that's a cross-platform manifold-like (plus error-propagation, plus chunking) streams API, with promesa-CSP underlying
i'm really quite excited now ... the funcool/promesa
+ prpr/stream
+ prpr/a-frame
(an async port of the event/cofx/fx bits of re-frame - much easier to grok than effects from freer monads 😬) stack gives a straightforward foundation for writing portable (clj/cljs) concurrent code with strict separation between pure/impure parts
i've already been using this approach on the backend, with manifold as the transport, but now i can use it on cljs too, which opens up some possibilities for a local-first app i'm working on - re-frame like events, but with cofx and fx hitting sqlite or indexeddb
I'm working hard on bring CLJS part of promesa with compliant promise implementation that work the identical way as CompletableFuture, and I'm almost done, fixing tests and so... I guess, soon I will have it ready to prepare a new release
On the end, my decision is going without the flag. Promesa has two API styles, one adapted for ->
and other adaped to ->>
. The first one, is base don then
and catch
and handle
and finally
and this will continue work as it working right now. The second one, is based on fmap
, mcat
, hmap
, hcat
and fnly
, they were already stricter and performance oriented (in the same way as then'
variant), so the posible breakage only will affect that API, not very common and not very well documented.