This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-14
Channels
- # announcements (10)
- # babashka (14)
- # beginners (51)
- # calva (2)
- # cider (29)
- # cljs-dev (1)
- # cljsrn (3)
- # clojure (185)
- # clojure-dev (15)
- # clojure-europe (6)
- # clojure-italy (2)
- # clojure-nl (6)
- # clojure-uk (45)
- # clojurescript (4)
- # conjure (12)
- # datomic (37)
- # duct (37)
- # figwheel-main (15)
- # helix (23)
- # interceptors (1)
- # jobs (1)
- # jobs-discuss (11)
- # jvm (5)
- # luminus (3)
- # malli (15)
- # off-topic (69)
- # pathom (8)
- # pedestal (2)
- # re-frame (7)
- # reagent (58)
- # reitit (33)
- # remote-jobs (1)
- # rum (14)
- # sci (7)
- # shadow-cljs (15)
- # spacemacs (9)
- # testing (19)
- # timbre (3)
- # tools-deps (14)
no hurry. the workaround of doing 2 transforms is ok. but it will be good to see the transform composition handling this use case eventually
btw: for fun I might run https://github.com/stevebuik/Stu on my project. it’ll show the extra 200k from sci very clearly
@steveb8n fixed in master: https://github.com/metosin/malli/commit/679ca7780f2e36e427885e2343772369e048598e
@lucio just added a feature to fork at about the same speed. you guys are awesome
it needs a couple of fixes to use properly. let me know if you want to use it. then I’ll go fix them
@shortlyportly related to you question on #reitit, would this help:
(let [path->schema (atom {})]
(mu/find-first
[:and
[:fn '(constantly true)]
[:map
[:name string?]
[:tags [:set [:map [:name string?]]]]
[:address [:and
[:fn '(constantly true)]
[:map [:street string?]]
[:fn '(constantly true)]]]]
[:fn '(constantly true)]]
(fn [s i _]
(swap! path->schema update i (fnil identity s))
nil))
@path->schema)
;{[] [:and
; [:fn (constantly true)]
; [:map
; [:name string?]
; [:tags [:set [:map [:name string?]]]]
; [:address [:and [:fn (constantly true)] [:map [:street string?]] [:fn (constantly true)]]]]
; [:fn (constantly true)]],
; [:name] string?,
; [:tags] [:set [:map [:name string?]]],
; [:tags :malli.core/in] [:map [:name string?]],
; [:tags :malli.core/in :name] string?,
; [:address] [:and [:fn (constantly true)] [:map [:street string?]] [:fn (constantly true)]],
; [:address :street] string?}
Thanks again @ikitommi - I'll take a look. Just wanted to say love your talks and the libraries metosin are putting out. many thanks.