This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-23
Channels
- # babashka (22)
- # beginners (8)
- # calva (7)
- # clj-kondo (65)
- # cljdoc (9)
- # cljsrn (1)
- # clojure (53)
- # clojure-australia (4)
- # clojure-europe (49)
- # clojure-gamedev (2)
- # clojure-italy (13)
- # clojure-nl (1)
- # clojure-spec (19)
- # clojure-uk (4)
- # clojurescript (48)
- # clojureverse-ops (1)
- # core-async (3)
- # css (2)
- # cursive (15)
- # datomic (6)
- # degree9 (2)
- # depstar (4)
- # emacs (2)
- # find-my-lib (1)
- # fulcro (16)
- # graalvm (11)
- # gratitude (1)
- # honeysql (9)
- # introduce-yourself (2)
- # jobs (1)
- # joker (2)
- # livestream (2)
- # malli (16)
- # nbb (4)
- # news-and-articles (2)
- # off-topic (1)
- # pathom (7)
- # polylith (10)
- # practicalli (1)
- # re-frame (7)
- # reitit (1)
- # releases (3)
- # remote-jobs (1)
- # rewrite-clj (19)
- # shadow-cljs (10)
- # tools-build (1)
- # tools-deps (9)
- # uncomplicate (1)
- # vim (3)
- # xtdb (44)
I'm seeing some weird behavior that may (or may not) be related to the intersection of using defprotocol
m/=>
and malli.dev/start!
where I'm getting a StackOverflow exception when running an instrumented function. If I comment out the m/=>
everything works fine. Before I go down a rabbit hole of trying to come up with a minimal repro, does this sound familiar to someone?
@mrdalloca, I see up above that you're exploring using malli to generate typescript definitions! I'm just starting to look into that as well, are you open to sharing what you've learned so far? I'm happy to help
sure! I've progressed quite a bit actually
I'm working with a draft of it by now
so I'm not happy with the code organization and naming in general
very early stages
I'm already generating type definitions
Fantastic! I've got to hop off for other life things in a minute, but do you mind if I message you later? I'd love to try the basics
I don't have time left for today, but we can go into details about this tomorrow :))
I wake up at 09:00 UTC
I'm hitting a wall trying to write a schema walker that recursively transforms :altn
to :alt
, :catn
to :cat
, etc. The implementation is straightforward for simple schemas, but I encounter failures when I use :refs
and try to transform the registry along with the values - the registry doesn't get passed down when the walker descends into the :ref
schemas.
I'm not sure about the best way to proceed. Rebinding mr/*registry*
with a dynamic registry that contains the top-level schema registry seems expedient, but I don't really understand the registry code that well yet which seems perilous.
Here's what I've got so far. It fails on the call to mu/to-map-syntax
in the inner forms because of an invalid :ref
error.