--
You received this message because you are subscribed to the Google Groups "ShareJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sharejs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Wout.
(typed on mobile, excuse terseness)
--
You received this message because you are subscribed to the Google Groups "ShareJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sharejs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
That could work. That said, I think the most important goal for the operations is that they're simple to make & work with. Once I'm done with the js version I want a c implementation of the type - and no doubt that will just pack the information directly using enums & union types. I could use the same binary format in js too by exploiting the arraybuffer tricks asmjs uses, but ugh at the thought of staring at base64 strings stored in my databases. In the long run we can add tooling, but I want this to be usable soon.
So I want some sort of pure json embedding of the operations usable by humans. It's more a question of how to do it semi-cleanly.
-J
--
You received this message because you are subscribed to the Google Groups "ShareJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sharejs+u...@googlegroups.com.
There's an answer to that which doesn't require invertability though - it would be easy enough to just write a function which takes a doc and an op and produces the inverse to the op.
This would also be easy to add to the text type.
-J
I just realized that you don't actually need to transfer the deleted text on a deletion op to the server for it to be reversible. You only need to store that text once you apply the op and you want to be able to invert...
--
Ah yes, I see what you mean. Interesting cases that didn't pop into my mind. Thank you for clarifying.Is there a function somewhere in the Derby stack that computes a diff between two JSON objects and generates a corresponding array of JSON0 operations? I see there is this function setDiff, but I'm not sure if that is what this is doing exactly. I can't seem to find documentation on this function and how it should be called, maybe I'm just missing where to find it.Thank you for your work on this stuff, the stack looks amazing and I'm getting excited about the potential of using ShareJS / Derby for real-time collaborative data visualization applications.Best regards,Curran
--
You received this message because you are subscribed to the Google Groups "Derby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to derbyjs+u...@googlegroups.com.