Fork me on GitHub
#datascript
<
2021-03-01
>
pinealan15:03:58

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

metasoarous20:03:29

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!?

metasoarous20:03:52

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

metasoarous20:03:21

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.

metasoarous20:03:30

(also would support offline writes for clients, etc)

metasoarous20:03:24

(see also: #datahike)

👍 3
cjsauer14:03:22

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

cjsauer14:03:22

Wow that’s exciting!

✔️ 3