Coder Social home page Coder Social logo

Comments (5)

vinomaster avatar vinomaster commented on June 1, 2024

When complete, Readme file should have References section updated.

from coweb.

parente avatar parente commented on June 1, 2024

Started this work in a branch. We were attempting to solve false-tie problem in transform functions. What we had might work in all cases, but it's not proven. For example, did not work in my quick experiments to hack in the op caching required for issue #12.

The COT algorithm we're using can side-step the false-tie cases though if we establish a total event order at the server and use it in the op engine to decide the order of transforms.

Implementation-wise the following changes are needed:

  1. Server has to echo messages from site A back to site A in order. Right now, echoed messages are dropped.
  2. Server has to assign an increasing integer to all /session/sync messages it publishes to a session establishing a total order of events.
  3. The op engine has to sort operations in a context difference according to the order established by the server, not context order.
  4. The insert/insert transform function should simplify back to position comparison with tie breaking based on site ID.

We should really look at cleaning up the protocol to make inserting these ids simpler, and only on user-to-user sync messages. Opening a separate issue for that.

from coweb.

parente avatar parente commented on June 1, 2024

Blocked by #59 for now.

from coweb.

parente avatar parente commented on June 1, 2024

Finished issue #59 so this is unblocked again. Continuing with this next.

from coweb.

parente avatar parente commented on June 1, 2024

Updated JS, Java, and Python merged from a local branch (ot-41) into master. Completed work in 14a4a88 which includes an updated, interim coweb-0.5 JS build.

Net result of these fixes: the op engine implementation now breaks the CP2 pre-condition for operational transformation. This allows us to use the simple, proven, character-wise transformation functions that break ties based on site identifiers. This also opens the door for operation caching needed for issue #12.

from coweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.