Fork me on GitHub
#datomic
<
2017-09-19
>
mkvlr14:09:03

hello 👋 how does datomic licensing work with regards to development and staging? Can we use the same license as in production for these environments?

marshall15:09:21

@mkvlr Yes, all Datomic licenses provide unlimited staging/test/dev environments; you can and should use the same key for those envs

mkvlr15:09:48

@marshall ah great, thanks!

uwo16:09:42

for dev we connect to our staging datomic db (unnecessary context) , and I just started seeing this when attempting to connect

uwo16:09:44

> ActiveMQNotConnectedException AMQ119010: Connection is destroyed org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking (ChannelImpl.java:325)

uwo16:09:14

anyone know right off the bat what might be going on? I can ssh into the datomic server and the service appears to be running

uwo16:09:50

ha! nevermind. critical failure in the datomic log. lol

lukerohde19:09:01

hi there - i was hoping someone could shed some light on what the expression clause ground does

lukerohde19:09:58

when would i use that versus, say, a parameter binding to a value i know before issuing the query

lukerohde19:09:28

what effect does it have on query compilation?

uwo19:09:26

I use ground when dealing with constants. I don’t know effects on compilation. The docs mention that ground enables query optimizations

crink19:09:28

yeah, i think luke might be wondering how is it different than passing constant values in via the :in portion of the query?

uwo19:09:31

yeah, I followed

uwo19:09:55

I guess I mean. If a value is truly constant, why parameterize for it?

uwo19:09:10

sorry. maybe I’m just missing the question entirely.

lukerohde20:09:16

sure, but then why is ground necessary at all?

lukerohde20:09:30

just trying to build intuition

uwo20:09:34

Certainly, I would be curious to know if a grounded binding is optimized over a parameterized binding. I sorta assumed that was the case, but I don’t have a clue about that. At the very least, I like it’s expressiveness, because a parameter to me implies something that can change

lukerohde20:09:22

necessary i mean versus inlining a constant

dpsutton21:09:29

I made an account on my-datomic, downloaded datomic-free-0.9.5561.56 and then ran the command to start it up from the datomic tutorial at http://docs.datomic.com/getting-started/connect-to-a-database.html: bin/run -m datomic.peer-server -h localhost -p 8998 -a myaccesskey,mysecret -d hello,datomic: and i'm getting the following stack trace:

~/projects/datomic/datomic-free-0.9.5561.56$ bin/run -m datomic.peer-server -h localhost -p 8998 -a myaccesskey,mysecret -d hello,datomic:
Exception in thread "main" java.io.FileNotFoundException: Could not locate datomic/peer_server__init.class or datomic/peer_server.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.

dpsutton21:09:36

has anyone seen this before?

dpsutton21:09:46

or know how i can follow along with the tutorial?

dpsutton21:09:45

ah. apparently the free version of datomic is not amenable to the official datomic tutorial?

dpsutton21:09:00

that seems like a pretty big barrier to learning

hmaurer21:09:05

@dpsutton I stumbled upon this issue when I got started with Datomic, managed to fix it after a bit of headache, and now forgot what the solution was

hmaurer21:09:10

😄 sorry

favila21:09:50

They want you to use the starter-pro version, not free. Free is basically for use after you already know what you are doing, have the limitations in mind, but specifically need no-cost redistributable licensing. (e.g. you are running lots of small open-source sites)

hmaurer21:09:11

@favila does free allow for persistence?

favila21:09:50

it's the same as the dev transactor

marshall21:09:37

@dpsutton Datomic Pro Starter is no cost and supports running peer-server

marshall21:09:59

it is intended as the ‘getting started’ entry to Datomic

dpsutton23:09:12

but it begins a 1 year license and then you're done. i just want a playground with no strings or penalties which i don't consider this version

dpsutton23:09:42

perhaps in the future i'll make something and wish i still had this license. i'm trying to follow the official tutorial and its offputting that i begin a 1 year trial rather than just using their free no-strings version

dpsutton23:09:04

it was also offputting that i had to enter some (poorly validated) personal data just to try it as well

hmaurer23:09:22

@dpsutton the tutorial uses the datomic client API, but you can experiment with the datomic peer api

hmaurer23:09:11

“Using the Datomic peer library”

hmaurer23:09:44

I do agree the documentation is pretty bad for newcomers though

dpsutton23:09:58

that's why it would be nice to follow along with a nice tutorial directly from the people who make it 🙂