Fork me on GitHub
#rum
<
2016-08-30
>
misha11:08:53

@levitanong you always can build your own chain of atoms, with one end is subscribed to DB changes, and the other being subscribed to by component(s). The downside is: you need to maintain (and remember the topology of) that chain.

martinklepsch11:08:21

I've been working on something to create efficient chains of atoms which might be relevant in this context https://github.com/martinklepsch/derivatives

levitanong11:08:18

@misha hmm… maintaining a DAG of atoms doesn’t seem very appealing 😛 I’m fairly inexperienced, so I’m not sure how this would work with datascript, exactly.

levitanong11:08:39

@martinklepsch I was looking at derivatives, but just like misha’s suggestion, it’s unclear to me how I would use this with datascript. 😛 Any plans for a wiki?

martinklepsch12:08:27

I didn't have datascript in mind when making this so it was more meant as an example that shows how to have the DAG/efficient propagation

martinklepsch12:08:06

@levitanong the library needs a watchable source so as long as you can turn your Datascript DB into that you might be covered

levitanong12:08:54

@martinklepsch datascript DBs are pretty opaque unfortunately. I’ve seen an open PR in datascript that attempted to do this, and based on the conversation there, it seems to be a very difficult problem which the PR doesn’t solve fully. Tonsky has been too busy to look at the PR, so it seems I’ll have to give up on datascript for the time being.