Comment by itishappy
Zed uses something similar to ropes as well:
Zed uses something similar to ropes as well:
I think this is what Guy Steele called a "monoid-cached tree":
Zed seems to be a gui-oriented editor here: https://zed.dev/
You still need a backing data structure that holds the contents of your editor, and that's where you'd use a rope.
Zed's Sum Tree is my favorite datastructure ever and is the future of database indexes.