2 ms·
If you represented drawings as text (e.g. as postscript) you could use the rest of the code unchanged.
by pg 17y ago
If you represented drawings as text (e.g. as postscript) you could use the rest of the code unchanged.
- saikat 17y agoIf anyone else is curious, the Wave protocol is also open source, as is Google Mobwrite (which uses differential synchronization instead of operational transformations (which is what Wave and I think Etherpad uses)). My "drawings" are represented by text (JSON), and if normal text merging methods will work, I might want to use differential synchronization (seems easier). But I wish there was something proving that it won't mess up the integrity of my structured data. Links: Wave protocol: http://www.waveprotocol.org/ http://www.waveprotocol.org/ and http://code.google.com/p/wave-protocol/source/checkout http://code.google.com/p/wave-protocol/source/checkout Mobwrite: http://code.google.com/p/google-mobwrite/ http://code.google.com/p/google-mobwrite/ Etherpad: http://code.google.com/p/etherpad/ http://code.google.com/p/etherpad/
- sayrer 17y agoyou can use a file synchronization algorithm. here's one I did for JSON: http://blog.mozilla.com/rob-sayre/2008/02/15/restful-partial-updates/ http://blog.mozilla.com/rob-sayre/2008/02/15/restful-partial... It works well except when array elements move around (that works, it's just unintuitive)
- saikat 17y agoI didn't know about sync.js - this seems like exactly what I want.