This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-05
Channels
- # announcements (1)
- # babashka (61)
- # babashka-sci-dev (1)
- # beginners (54)
- # biff (17)
- # cider (4)
- # circleci (1)
- # clj-commons (39)
- # clj-kondo (26)
- # cljdoc (40)
- # clojure (41)
- # clojure-europe (32)
- # clojure-norway (4)
- # clojure-portugal (1)
- # clojure-uk (2)
- # clojurescript (59)
- # clr (69)
- # conjure (7)
- # cursive (22)
- # data-science (16)
- # datalevin (1)
- # datomic (19)
- # docker (31)
- # funcool (1)
- # honeysql (6)
- # hoplon (1)
- # hyperfiddle (41)
- # introduce-yourself (1)
- # juxt (2)
- # leiningen (5)
- # nbb (14)
- # nextjournal (38)
- # off-topic (47)
- # polylith (2)
- # rdf (5)
- # re-frame (4)
- # reitit (27)
- # releases (6)
- # scittle (10)
- # shadow-cljs (24)
- # sql (11)
- # squint (1)
- # tools-build (33)
- # tree-sitter (4)
- # vim (39)
stupid question, but is "the algorithm" for tools.deps documented explicitly anywhere? I honestly don't remember if ive asked that before
You mean, in English prose as opposed to open source code?
Because I believe the code is open.
Yes, there’s a page for it
> You mean, in English prose as opposed to open source code? > Because I believe the code is open. Yep - been reading this file for a bit today https://github.com/clojure/tools.deps/blob/master/src/main/clojure/clojure/tools/deps.clj
Assuming that’s what you’re asking about
Looking at trace output can be pretty illuminating too in tandem with that page
Alex also talks through the same in this talk. https://youtu.be/7CM7Ef-dPWQ
Anyone here using clj-yaml
?
I'm trying to get non-ordered maps out, but I'm not sure if it's at all possible using the API, or whether I need to do the conversion myself
There's not much mentioning about ordering in the docs, except for this doc-string: https://github.com/clj-commons/clj-yaml/blob/master/src/clojure/clj_yaml/core.clj#L27
Glad you sorted it out, there is also #C042XAQFCCU if you have more clj-yaml questions/thoughts.
Hey all, can anyone recommend a good library that does something similar to https://github.com/awaitility/awaitility does in Java/Scala?
A follow-up to my question about ordered maps would be: Is there a way to get unordered (regular) maps from a nested flatland-ordered map (https://github.com/clj-commons/ordered)?
Seems this does it
(->> (flatland.ordered.map/ordered-map
{:foo 42
:bar (flatland.ordered.map/ordered-map {:baz 43})})
(clojure.walk/prewalk
#(if (map? %) (into {} %) %)))
@U04HK53G7SQ You mean #(cond->> % map? (into {}))
?
I always thought there should be a condp->>
which worked like that, but it'd have to be
#(cond->> % (map? %) (into {}))
i think it's function-if, so "apply the function if predicate is true, else just return input"
would love to show the source, but it's probably copyrighted - it is however 4 lines only 😄
Apparently we’ve had a namespace that required itself with an alias in https://github.com/metabase/metabase/blob/master/test/metabase/test/util.clj#L55 and that somehow wasn’t a problem. Kinda surprising. Apparently someone finally hit an issue with it when trying to reload all namespaces >
Circular dependency between metabase.test.util and metabase.test.util
Surprised this kind of thing makes sense in the first place.clojure's cyclic load checking isn't very complete or very strict, so its not uncommon for it to allow things that it shouldn't
ah ok. i was thinking if the language doesn’t care, a library doesn’t get to complain, but that makes sense
in theory the cyclic load check allows self requiring to support the internals of how aot compilation works, but that loophole is large enough that any self require is allowed