GithubHelp home page GithubHelp logo

Comments (5)

drewmccormack avatar drewmccormack commented on June 30, 2024

This will be more difficult that it might first seem, which probably explains Apple's reluctance.

The problem is to come up with a set of deltas that when reapplied on devices that have stores in different states, leave them in the same state. For all other types of property, this is the case, but doing this for ordered data may be difficult.

from ensembles.

fdstevex avatar fdstevex commented on June 30, 2024

Just noticed this, which may invalidate my bug concerning NSOrderedSet. Does this mean that until this is implemented, Ensembles simply won't work with models that use ordered sets?

from ensembles.

drewmccormack avatar drewmccormack commented on June 30, 2024

I don’t think it will work, no. It’s certainly untested. Sorry.

from ensembles.

drewmccormack avatar drewmccormack commented on June 30, 2024

What may work for this is simply storing the index of each inserted or moved object in the ordered set. When a conflict arises, we just perform the updates in order, resulting in a final set of indexes that are not guaranteed to be unique. We then sort deterministically, first on index, then on global id, and reindex to get final positions. This should be deterministic, leaving all devices consistent.

from ensembles.

drewmccormack avatar drewmccormack commented on June 30, 2024

Merged in 5ee1408

from ensembles.

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.