Giter VIP home page Giter VIP logo

Comments (6)

gritzko avatar gritzko commented on June 2, 2024

That is because it is crap.
Text.js as it is is a demo only thing.
I have a decent implementation, but it will take time to release that one. Hopefully, with 0.4.
By the way, what is your use case?

from swarm.

rocketraman avatar rocketraman commented on June 2, 2024

By the way, what is your use case?

@gritzko I am building a prototype of a collaborative rich text editor, and I liked the relative simplicity of your CRDT-based causal trees approach in comparison to OT. I noted that Swarm included Text.js and was attempting to learn from it. I'm curious, in what ways do you consider the current Text.js to be crap?

from swarm.

gritzko avatar gritzko commented on June 2, 2024

@rocketraman It uses uncompressed base64 id strings, so it has x100 overhead compared to plain text. A "normal" value is below x10, x3 is really good. See IdArray.
It has no decent API, events are cryptic and so on.
It is just a minimal CT implementation, it was not intended to be practical.

from swarm.

rocketraman avatar rocketraman commented on June 2, 2024

@gritzko Ok given I'm creating a prototype I'm not super-concerned about the overhead. However, I'd love to see the better implementation you have. Does that implementation support rich text also? Are you open to helping us with a good rich text implementation, either as part of swarm open source or on a consulting basis? We'd probably be willing to contribute any source created as part of a consulting project back to Swarm.

from swarm.

gritzko avatar gritzko commented on June 2, 2024

You can always contact me privately at [email protected]

from swarm.

aslakhellesoy avatar aslakhellesoy commented on June 2, 2024

I know this issue is closed, but I'd love some recommendations about how to use plain text. Is Text.js in better shape on the 0.4 branch? (I'm also getting the type unknown: /Text#note error).

FWIW I'm trying to integrate Swarm with CodeMirror.

from swarm.

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.