datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
joe smith 2021-02-05T01:51:35.136300Z

thanks guys!

joe smith 2021-02-05T01:55:39.138400Z

should I be using Solo or Datomic Free locally to learn? It's been almost 5 years since I last built a rudimentary double entry ledger on Datomic. Right now I am learning basics of clojure, datalog and finally getting my hands dirty with datomic again. I guess if I am trying to build a MVP I would be better off with Solo which I believe is like $5 CAD / month?

kenny 2021-02-05T01:58:55.138900Z

If you just want to mess around locally, check out dev-local.

stuartrexking 2021-02-05T02:20:51.140900Z

No matter what I do, I can’t get ions.cast/event to output to :stdout. I’ve paired down to a simple clojure repl, the first line is to require and call

(cast/initialize-redirect :stdout)
but no luck. Any ideas on how to solve this or where to look?

stuartrexking 2021-02-05T02:21:32.141200Z

(.println System/out "10")
outputs to stdout, so what gives?

Joe Lane 2021-02-05T02:31:42.143300Z

After you redirect to :stdout then your calls to cast/event and cast/dev are redirected.

Jake Shelby 2021-02-05T02:39:55.143500Z

I'm still having this problem as well, I reported it a while ago ....

Jake Shelby 2021-02-05T02:41:16.143700Z

I feel like it worked a long time ago, in my project, but stopped working at some point - make's me think that some dep I added made it stop working, but I haven't tested that theory yet

stuartrexking 2021-02-05T03:01:21.144Z

So interesting observation. If I call event immediately after initializing, then it works fine.

(cast/initialize-redirect :stdout)
(cast/event {:msg "Cast Initialized!"})
If I require other dependent namespaces and initialize other parts of my system, then call event, it doesn’t work.

stuartrexking 2021-02-05T03:01:30.144200Z

Not sure what’s going on inside /event

stuartrexking 2021-02-05T03:02:49.144400Z

I suspect some other lib or one of the deps is messing with

*out*

stuartrexking 2021-02-05T03:02:57.144600Z

Hard to tell without looking at /event

danieroux 2021-02-05T07:19:23.144800Z

What I saw was that if cast/event happens before cast/initialize-redirect - the redirect never happens.

danieroux 2021-02-05T07:20:35.145Z

So I had to ensure that cast/initialize-redirect happens first, on REPL startup even.