Re: Library to create/apply patches of clojure data

2014-11-16 Thread Robin Heggelund Hansen
Well, the diff would be arbitrary, and could be applied to any similar structure. > 16. nov. 2014 kl. 07.57 skrev Vladimir Bokov : > > 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 websock

Re: Library to create/apply patches of clojure data

2014-11-15 Thread Vladimir Bokov
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 b

Re: Library to create/apply patches of clojure data

2014-11-15 Thread Karsten Schmidt
Yes, understood, but I thought it would give you at least a headstart... On 15 November 2014 22:13, Robin Heggelund Hansen wrote: > Thank you for the link. This doesn’t, from what I can tell, work on all > Clojure datastructures, but a JSON-compatible subset. > > >> 15. nov. 2014 kl. 23.09 skrev

Re: Library to create/apply patches of clojure data

2014-11-15 Thread Robin Heggelund Hansen
Thank you for the link. This doesn’t, from what I can tell, work on all Clojure datastructures, but a JSON-compatible subset. > 15. nov. 2014 kl. 23.09 skrev Karsten Schmidt : > > Hi Robin, I just found a link to this library in the depths of the > Liberator docs: > > https://github.com/davidd

Re: Library to create/apply patches of clojure data

2014-11-15 Thread Karsten Schmidt
Hi Robin, I just found a link to this library in the depths of the Liberator docs: https://github.com/daviddpark/clj-json-patch Maybe that's more helpful... (haven't tried it myself, but had to think of you) On 14 November 2014 07:35, Robin Heggelund Hansen wrote: > If you look at the issues li

Re: Library to create/apply patches of clojure data

2014-11-13 Thread Robin Heggelund Hansen
If you look at the issues list, you'll see that I tried it already ;) kl. 06:51:14 UTC+1 fredag 14. november 2014 skrev Ruslan Prokopchuk følgende: > > May be this one will be helpful https://github.com/timothypratley/patchin > > четверг, 13 ноября 2014 г., 11:31:39 UTC+3 пользователь Robin Hegge

Re: Library to create/apply patches of clojure data

2014-11-13 Thread Ruslan Prokopchuk
May be this one will be helpful https://github.com/timothypratley/patchin четверг, 13 ноября 2014 г., 11:31:39 UTC+3 пользователь 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 t

Library to create/apply patches of clojure data

2014-11-13 Thread 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