GithubHelp home page GithubHelp logo

Core algorithm bugs about matrix-notepad HOT 2 CLOSED

friedger avatar friedger commented on May 28, 2024
Core algorithm bugs

from matrix-notepad.

Comments (2)

KB1RD avatar KB1RD commented on May 28, 2024

Thank you for pointing this out. I'm actually aware of issues like these, but I haven't opened an issue yet. The issues are due to bugs in the core algorithm and I've opened an issue here to keep track of these. In short, I'm not fixing these issues in the current algorithm version because introducing conflict resolution creates major changes. I'm very close to finishing this new version (but I've said that for like a month) and then I'll work on introducing it into the Notepad and writing unit tests. I haven't been able to maintain any of my projects much over the last few months because I've had a ton of schoolwork.

The issues that you encountered are not due to empty lines or cursor moving specifically, though. The algorithm just receives where text insertions/removals are and translates these into Logoot positions to be sent over Matrix. The algorithm keeps track of which positions in the text editor map onto which Logoot positions. The problem is that sometimes its record of where all the text is gets out of sync with what's actually on the screen. That's what's happening here :)

from matrix-notepad.

KB1RD avatar KB1RD commented on May 28, 2024

AFAIK, v0.2.2 fixes them all. The trick that I've found works well is to run pseudorandom "practical" tests on the algorithm while in development. That way, even if I miss something that code coverage doesn't catch before release, the practical tests will break the algorithm by brute force. Feel free to re-open if other algorithm issues are found.

from matrix-notepad.

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.