This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-14
Channels
- # aleph (14)
- # bangalore-clj (2)
- # beginners (39)
- # boot (18)
- # carry (7)
- # cider (37)
- # cljs-dev (1)
- # cljsrn (4)
- # clojure (74)
- # clojure-austin (12)
- # clojure-canada (6)
- # clojure-conj (15)
- # clojure-dev (3)
- # clojure-greece (14)
- # clojure-italy (1)
- # clojure-korea (1)
- # clojure-poland (3)
- # clojure-russia (5)
- # clojure-spec (22)
- # clojure-uk (13)
- # clojurebridge (9)
- # clojurescript (231)
- # cursive (2)
- # datascript (9)
- # datomic (12)
- # devcards (2)
- # emacs (2)
- # events (4)
- # hoplon (28)
- # off-topic (35)
- # om (61)
- # onyx (8)
- # parinfer (8)
- # proton (1)
- # re-frame (53)
- # reagent (10)
- # ring-swagger (8)
- # specter (11)
- # untangled (3)
- # vim (4)
@marshall and @jaret, one small complaint about the newest Datomic — something about Artemis in either the transactor or peer no longer suffers laptop sleep mode any more. i have to restart everything after waking my laptop, which is annoying when you’re used to running it permanently
2016-10-14 07:25:20.128 ERROR - o.a.activemq.artemis.core.client - AMQ214002: Failed to execute failure listener
java.lang.AbstractMethodError: datomic.artemis_client$wrap_as_failure_listener$reify__6542.connectionFailed(Lorg/apache/activemq/artemis/api/core/ActiveMQException;ZLjava/lang/String;)V
When I retrieve an entity with the entity function, I get all the attributes, but I also want to know the “current transaction id” that the database is in, so that I can use as-of (later) to check if any changes has been done to the entity.
@teng in datomic there's tx and t and the conversion between the two with d/t->tx & d/tx->t
@thegeez Ok, thanks (just figured this out, 10 sec ago!) 🙂
@thegeez So there is a 1-to-1 relation between t and tx? Is there any particular reason for this that you know of?
I don't know for sure. I think t is an increasing int to number the transactions and tx is the entity id for a transaction and there's probably a reason why both are needed 🙂
I know the tx is basically bit-shifted t xor-ed with the entid of :db.part/tx (which is 3)
but also can't think why both are needed right now
@danielstockton maybe a performance optimization.
Have a feeling its more obvious than that