datahike

https://datahike.io/, Join the conversation at https://discord.com/invite/kEBzMvb, history for this channel is available at https://clojurians.zulipchat.com/#narrow/stream/180378-slack-archive/topic/datahike
cjsauer 2019-10-04T18:25:13.017300Z

Hey all, I just added datahike to a shadow-cljs project that also happens to include datascript, and I suddenly started seeing this warning:

------ WARNING #1 - :undeclared-var --------------------------------------------
 Resource: datascript/core.cljc:586:36
 Use of undeclared Var cljs.reader/register-tag-parser!
--------------------------------------------------------------------------------
Which points at this line in datascript: https://github.com/tonsky/datascript/blob/6b0094245d259aa67794d3c9284cd00b2701abec/src/datascript/core.cljc#L588 Datahike unsurprisingly has a similar line: https://github.com/replikativ/datahike/blob/7b70edb7ec7ff7c8fbcc2907d069a3f02866db31/src/datahike/core.cljc#L609 Perhaps there’s some conflict happening with cljs.reader?

cjsauer 2019-10-04T18:37:41.018600Z

Hm…`cljs.reader` is never actually required in the case of datahike. I suppose it technically doesn’t have cljs support, and so the #?(:cljs) tags might be confusing the compiler.

kkuehne 2019-10-07T09:09:53.019100Z

Datahike supported cljs for a time but with addition of newer features and update of some dependencies it broke. Right now we are discussing whether it is feasible to support both platforms.

cjsauer 2019-10-07T13:10:41.019700Z

Makes sense, thanks