You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to clo...@googlegroups.com
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), but before I invest alot of effort into this, I'm wondering if something like this already exists?
Thanks!
Ruslan Prokopchuk
unread,
Nov 14, 2014, 12:51:14 AM11/14/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Maybe that's more helpful... (haven't tried it myself, but had to think of you)
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to clo...@googlegroups.com
Yes, understood, but I thought it would give you at least a headstart...
Vladimir Bokov
unread,
Nov 16, 2014, 1:57:28 AM11/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to clo...@googlegroups.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 написал:
Robin Heggelund Hansen
unread,
Nov 16, 2014, 4:53:10 AM11/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to clo...@googlegroups.com
Well, the diff would be arbitrary, and could be applied to any similar structure.