On 27 March 2016 at 23:10, hiskennyness <[email protected]> wrote:
>
> On Saturday, March 26, 2016 at 8:53:24 PM UTC-4, James Reeves wrote:
>>
>> Have you considered modelling this as a functional problem first?
>>
>
> Well. I was doing that in Cells 0.1... Worked great but quickly failed on
> scalability as formula depended on formula so we quickly moved to caching
> calculated values and then a scheme to know when the cache was obolete.
>
Isn't that just a data structure problem?
I mean, I guess you'd have a function to update the data structure you're
keeping the cells in:
(set-cell cells :x 2) => cells'
So you know which cell is being directly updated, and if you use a
dependency <https://github.com/stuartsierra/dependency> graph, you can
quickly work out all the dependent cells as well. Then you recalculate all
the cells with formulae that are dependent upon the cell being updated.
- James
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.