This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (2)
- # babashka (145)
- # beginners (260)
- # calva (17)
- # chlorine-clover (7)
- # clj-kondo (9)
- # cljsrn (1)
- # clojure (88)
- # clojure-dev (65)
- # clojure-europe (31)
- # clojure-france (4)
- # clojure-nl (4)
- # clojure-uk (61)
- # clojuredesign-podcast (1)
- # clojurescript (31)
- # code-reviews (1)
- # cursive (32)
- # data-science (2)
- # datascript (9)
- # datomic (39)
- # docker (3)
- # events (1)
- # figwheel (95)
- # figwheel-main (4)
- # fulcro (17)
- # kaocha (2)
- # keechma (1)
- # malli (1)
- # meander (35)
- # nrepl (4)
- # off-topic (1)
- # pathom (8)
- # re-frame (4)
- # reagent (8)
- # reitit (3)
- # releases (1)
- # remote-jobs (2)
- # shadow-cljs (182)
- # sql (30)
- # tools-deps (89)
- # xtdb (31)
Hi there, I am using Datomic Cloud. I would like to compile the code in my CI pipeline before deploying it, to save time and money. Can anyone tell me how Datomic Cloud invokes the compiler, and if it's reproducible?
If you compile your code before deploying it to an ion, it will load into the cluster node faster, but I am not sure that will save you a visible amount of time or money.
@stuarthalloway I have deployed code that has had Java compiler errors, which costs time and money. I am just try to pre-compile the code to make sure that it will pass.
Do you mean Clojure compiler errors? The cluster node does not compile Java for you.
If you are already going to the trouble of running the compiler locally, then you deploy make a jar with the compiled code instead of with source. Then there is no compilation on the cluster node, and no possibility of (that class of) error.
In that case the cluster node will also start faster after an ion deploy, although the difference may not matter much.
How would I indicate to the Ion deployment that I have already compiled my code into a jar? I can figure our that part...
This leads to a two-project structure, where your code is in one project, and your ion has deps on that code and probably just ion-config.edn.
I do this all the time. As soon as code is nontrivial I want to use it from more than one ion.
To get the compilation benefit, you still need to do whatever maven/leiningen/boot magic you need to compile all your Clojure code in the code project.
This space is evolving https://github.com/clojure/tools.deps.alpha/wiki/Tools#packaging
is the dev-local client compatible with on-premise client? (ignoring the features that on-premise support that cloud doesn't)
What's the idiomatic way to model something like a link table but against multiple other entities? in old datalog/prolog you'd do something like
attrName(entity1, other1, other2, other3). assuming entity1, other1, etc are either scalar values or entity ids.
but in datomic's datalog, if vecs are allowed as a value in a datom, you might be able to do something like this
or if not, you could... maybe this is how you'd do it?
[entity1 :attrName [other1, other2, other3]]
[entity1 :attrName1 other1] [entity1 :attrName2 other2] [entity1 :attrName3 other3]
attrNameis meant to be something that must join entity1 with 3 other entities, rather than it representing an unordered collection of linked entities, like the
:movie/castattr in http://learndatalogtoday.org
boughtHouse(buyer, seller, house, notary). maybe? i don't actually know how houses are sold haha
why is this different from having separate ref attributes? each assertion has a different meaning
maybe the orientation of what an entity is can be reversed?
[house-sale-eid :housesale/buyer buyer-eid] [house-sale-eid :housesale/seller seller-eid] [house-sale-eid :housesale/house house-eid] [house-sale-eid :housesale/notary notary-eid]
i don't know if it's different - i'm totally new to this and only have a background in dimensional modelling, datavault, and datalog
I think you’re getting at something though. Is it maybe a constraint you’re trying to enforce?
i definitely know that i want some constraints to be enforced, but i don't know what the term means in datomic's context yet 😬