Fork me on GitHub
#datomic
<
2021-02-05
>
joe smith01:02:39

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?

kenny01:02:55

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

stuartrexking02:02:51

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?

stuartrexking02:02:32

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

Joe Lane02:02:42

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

Jake Shelby02:02:55

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

Jake Shelby02:02:16

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

stuartrexking03:02:21

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.

stuartrexking03:02:30

Not sure what’s going on inside /event

stuartrexking03:02:49

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

*out*

stuartrexking03:02:57

Hard to tell without looking at /event

danieroux07:02:23

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

danieroux07:02:35

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