Re:DataScript – Datomic in ClojureScript
by gcv on Thursday April 24, 2014 @01:17PM
(#7641571)
Curious: why is this limited to ClojureScript? I can see this being useful in JVM Clojure in projects which do not need real or full Datomic.
[ Parent
| on HN ]
Re:DataScript – Datomic in ClojureScript
by coolsunglasses on Thursday April 24, 2014 @05:26PM
(#7643144)
Why even limit it to Clojure and ClojureScript? I could use this from JavaScript or PureScript as an immutable local store to replicate/merge with the backend asynchronously.
The query language is embedded in legal Clojure data structures, so it would be tricky to port to JS. That's a drawback of embedded DSL's I suppose.
Re:DataScript – Datomic in ClojureScript
by coolsunglasses on Friday April 25, 2014 @01:53AM
(#7644938)
Contingent on the design but not necessary. I could make something similar in PureScript.
I wouldn't use Datalog though, I got turned off on it after using Datomic at work.
Similar to Datomic, which has Java bindings and allows for query DSL be specified just as a regular String, we can do this for JS interop
From what I can see, DataScript is in-memory only. Wouldn't that be the same as downloading Datomic-free and creating an in-memory db?
Re:DataScript – Datomic in ClojureScript
by shaunxcode on Thursday April 24, 2014 @01:38PM
(#7641699)
he actually has a clj version in the src. https://github.com/tonsky/datomicscript/blob/master/src/dato...
It was commited accidentally. Yes, it may be translated to clojure. However, I still don’t know if I should do it, given we have in-memory db bundled with Datomic free client jar.