datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
pinealan 2021-03-01T15:57:58.047700Z

Hi! I’m building a PoC webapp as clojure monolith and am weighing the options on whether to include datascript early in the project. I’m trying to pro-con it and here’s my list 1. If the project splits into server+client, how reusable is the datascript logic on Cljs? or the datalog queries on datomic? 2. I know datascript started as a Cljs project. What’s the performance like on JVM? 3. Do I need even datalog at such an early stage? Am I overthinking this? Any ideas is welcomed

2021-03-02T20:02:29.051800Z

1. The queries are mostly the same between datomic and datascript. There are some differences, but a lot of your queries will still work, or needed only minimal modification. 2. JVM performance is much better than on JS engine. 3. The datomic/datascript model is exceptionally flexible and powerful, so why not!?

2021-03-02T20:02:52.052Z

Also, consider datahike, as this gets you server+client, as well as durability (which datascript itself does not)

2021-03-02T20:03:21.052200Z

Also addresses the issues with the subtle differences between data in datomic & datascript, since you can (potentially at least) have the same db on client and server.

2021-03-02T20:03:30.052400Z

(also would support offline writes for clients, etc)

2021-03-02T20:04:24.052600Z

(see also: #datahike)

1👍
cjsauer 2021-03-09T14:39:22.055700Z

Datahike runs in cljs? I haven’t kept up on it much but last I checked it was clj only.

cjsauer 2021-03-12T14:39:22.057700Z

Wow that’s exciting!

1✔️