Well, the diff would be arbitrary, and could be applied to any similar 
structure.


> 16. nov. 2014 kl. 07.57 skrev Vladimir Bokov <bokov.v...@gmail.com>:
> 
> Hi Robin,
> 
> I'm also highly interested in the subject as I'm trying to do essentially the 
> same - reduce the client-server traffic using diffs over websocket.
> 
> I think a diff solution is only the basis, I think we should look at some 
> VCS-like implementation to be able to merge some changes and to be able to 
> calculate arbitrary diff not only between previous and current state, but 
> comparing to some other state
> 
> What do you think?
> 
> четверг, 13 ноября 2014 г., 14:31:39 UTC+6 пользователь Robin Heggelund 
> Hansen написал:
> I'm in need of a library that is able to create a patch for some Clojure 
> datastructure, and apply it at a later time. This has to work in both Clojure 
> and Clojurescript.
> 
> The use case is that I'm autosaving a datastructure (through repeatedly doing 
> ajax calls, could be done over websocket) that has 10-20kb of data, so I only 
> want to send the diffs to the server. I'm currently using a combination of 
> clojure.data/diff and some functions I've created myself to apply that diff. 
> I don't particular like the api of clojure.data/diff as it's confusing 
> (especially related to vectors) and, from my experience, doesn't always 
> respect type information.
> 
> I'm currently in the process of creating my own library for this (will be 
> open-source, you can follow the process at github.com/Skinney/differ 
> <http://github.com/Skinney/differ>), but before I invest alot of effort into 
> this, I'm wondering if something like this already exists?
> 
> Thanks!
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en 
> <http://groups.google.com/group/clojure?hl=en>
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Clojure" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/clojure/WBY5f3SVYxs/unsubscribe 
> <https://groups.google.com/d/topic/clojure/WBY5f3SVYxs/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> clojure+unsubscr...@googlegroups.com 
> <mailto:clojure+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to