This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-21
Channels
- # announcements (8)
- # beginners (22)
- # calva (42)
- # cider (2)
- # clj-kondo (1)
- # cljdoc (3)
- # clojure (63)
- # clojure-chicago (1)
- # clojure-uk (29)
- # clojurescript (16)
- # clojureverse-ops (2)
- # core-matrix (6)
- # cursive (1)
- # datomic (23)
- # emacs (1)
- # heroku (2)
- # luminus (1)
- # off-topic (47)
- # pathom (1)
- # planck (3)
- # re-frame (4)
- # reitit (1)
- # rewrite-clj (5)
- # shadow-cljs (47)
Anyone up for helping me with a Datalog query? 🙂 Given a collection of "group" entities with references to "item" entities:
[{:label "group1"
:items [{:kind :hat} {:kind :scarf} {:kind :shoe}]}
{:label "group2"
:items [{:kind :shoe}]}
{:label "group3"
:items [{:kind :hat} {:kind :shoe}]}]
Is it possible to bind all group entities, and any related entities of :kind :hat, resulting in something like:
=>
[
["group1" [{:kind :hat}]]
["group2" [nil]]
["group3" [{:kind :hat}]]
]
I can't do :where [?group :items ?items] [?items :kind :hat]
because that excludes groups without :hat items, and I want all groups regardless.
I could use map specifications in the pull syntax and then filter items for just :hats outside of the query, but I'm curious if there's a way to handle the scenario in pure datalog.is anyone running datomic on java 11? i had been resolving the java.xml.bind missing issue with DATOMIC_JAVA_OPTS="--add-modules java.xml.bind"
but that seems to no longer be working. any other workarounds/fixes?
This trick only works up to 10. At 11 that package is removed from the jdk and you need the actual jar
So I need to download the jar, place it on the filesystem and modify the classpath to reference it?
We run peers on java 11 but gave up running the txor on 11. We are sticking to 8 until it’s explicitly supported
Hmm, well the weird part here is I have no idea how my underlying Java was even upgraded. It’s a light sail instance that’s been up for months and I didn’t explicitly reboot or ask it to update java
I suppose Java 8 is somewhere still on the system so I could conceivably explicitly reference it from my cron tab