Fork me on GitHub
#clojure
<
2020-12-04
>
coby02:12:20

Getting Docker hub permissions issues when I try to build FROM graalvm:afdbbd5 per this article - https://www.innoq.com/en/blog/native-clojure-and-graalvm/ anyone know if there's a new canonical name for GraalVM's docker images? I also tried graalvm/graalvm and just graalvm...

C-Squirrel13:12:13

Hi. I have a newbie question around plumatic.schema. Given this simple schema, how would I indicate either foo or bar must be provided? (one or the other must be there, but not both)

[{
:id s/Int
:name s/Str
:foo s/Str
:bar s/Int
}]

coby17:12:34

looks like you can pass an arbitrary function to s/pred https://github.com/plumatic/schema#other-schema-types

plexus15:12:29

does anyone have a good link that I can share with people regarding best practices for naming maven artifacts and namespaces?

plexus15:12:47

this is apropos of a conversation happening in #kaocha https://clojurians.slack.com/archives/CCY2V0U6A/p1607095244238600

Alex Miller (Clojure team)15:12:37

https://clojure.org/guides/deps_and_cli has a little about groupIds: "When artifacts are deployed in a Maven repository, it’s a best practice to use a groupId (the first part of the name) that is something you control (usually via DNS or trademark). In the case where you have neither, you can instead combine the name of a site that establishes identities (like GitHub) with your identity on that site, here github-yourname."

plexus16:12:44

thanks! I knew I had seen it somewhere but couldn't find it.

Lennart Buit20:12:31

Is there a predicate that tests true for all values that support sequence functions. Like — I can call first on a java.util.HashSet, but (seq? (java.util.HashSet.)) is false

👀 3
Lennart Buit20:12:44

Ah, epic, how did I miss that

Lennart Buit20:12:09

Haha, I was already wondering whether I was doing it wrong

seancorfield20:12:53

To be fair, seqable? was only added in Clojure 1.9... 🙂