clojure

New to Clojure? Try the #beginners channel. Official docs: https://clojure.org/ Searchable message archives: https://clojurians-log.clojureverse.org/
2020-12-04T00:00:35.041700Z

true true, I've found in general, I've rarely encountered deal breaker issues, and slow and steady can be better then too fast, though sometimes I'm not sure about the "steady" when it come to core libraries πŸ˜›

2020-12-04T00:37:49.042200Z

Makes sense. I added a comment to the ticket. It would be a slightly-more-than-trivial change to the TransientVector class to avoid the need to do this copying of the empty root node, I think, unless there is an approach I'm not thinking of yet that is a smaller change.

alexmiller 2020-12-04T00:48:05.042800Z

I think you have to do that

coby 2020-12-04T02:32:20.046300Z

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...

2020-12-04T10:51:36.048200Z

https://hub.docker.com/r/oracle/graalvm-ce

1
2020-12-04T04:35:16.046800Z

Ah, I bet it is locals clearing that mostly handles avoids the leaks, so I need to make a more complicated test case to avoid locals clearing

2020-12-04T05:38:41.047200Z

yeah, a simple go-loop doesn't do it either because of locals clearing / the way the go blocks re-use slots in the array of locals, but change it from a loop/recur to actual recursive function calls, and throw in some exception catching to extend the life time, and it leaks

βœ… 1
C-Squirrel 2020-12-04T13:52:13.048700Z

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
}]

plexus 2020-12-04T15:24:29.049600Z

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

plexus 2020-12-04T15:24:47.049900Z

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

alexmiller 2020-12-04T15:28:37.050200Z

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."

plexus 2020-12-04T16:52:44.050800Z

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

coby 2020-12-04T17:17:34.051100Z

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

2020-12-04T20:14:31.053500Z

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

πŸ‘€ 1
phronmophobic 2020-12-04T20:15:22.053600Z

seqable??

2020-12-04T20:15:44.053800Z

Ah, epic, how did I miss that

2020-12-04T20:18:09.054100Z

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

seancorfield 2020-12-04T20:29:53.054500Z

To be fair, seqable? was only added in Clojure 1.9... πŸ™‚