datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
2019-06-18T18:36:22.004500Z

i'm i correct in my understanding that you can't grow a schema in datascript? That is, i have to have a final schema when i create the connection? im going off the docs : No schema migrations

1👍2✔️
2019-06-18T21:12:39.005400Z

Is it possible to get the index of an element in tonsky/persistent-sorted-set ?

souenzzo 2019-06-18T23:36:51.009Z

Thats a really nice question @dimovich I can't find a method for this in PersistentTreeSet, but should be possible to get it in O(1)

2019-06-18T23:45:44.010100Z

Out of curiosity, wouldn't that require storing some kind of "# of predecessors" or "# of children" counts in tree nodes? I am not familiar with the persistent-sorted-set data structure internals -- perhaps it already has such things.