Live data from Hacker News

A glance into web tech-based text editors’ text management

ecc-comp.blogspot.com

1–10 of 22 posts

Re: A glance into web tech-based text editors’ text management

#6
post #5

If you are interested in this kind of stuff, Craig Finseth's The Craft of Text Editing is a great read: https://www.finseth.com/craft/

That will make a good weekend read thanks! Others may be interested in Data Structures for Text Sequences by Charles Crowley[0] which describes Piece Tables. This is the basis for the Vis editor[1].

[0]https://www.cs.unm.edu/~crowley/papers/sds.pdf

[1]https://github.com/martanne/vis

Re: A glance into web tech-based text editors’ text management

#7
post #4

That headline hurts my brain. Awful start. Why not "how web based text editors manage their text" or "a glance at the text management of web based text editors"

yay! I'm helping! (the original headline was the same as the article title "A Glance Into Web Tech.-Based Text Editors' Text Management")

Re: A glance into web tech-based text editors’ text management

#8
post #7
post #4

That headline hurts my brain. Awful start. Why not "how web based text editors manage their text" or "a glance at the text management of web based text editors"

yay! I'm helping! (the original headline was the same as the article title "A Glance Into Web Tech.-Based Text Editors' Text Management")

The new title is not accurate though, since those editors are not "web-based", but indeed "web tech-based" (based on Chrome), or perhaps simply "HTML/JS-based".

Re: A glance into web tech-based text editors’ text management

#10
"There is a huge opportunity here to contribute to Atom and make it way better than it already is. Write a piece chain text buffer implementation. Write a gap buffer implementation. Anything but using a regular array like this."

Is it really that easy? Why aren't they using those data structures already?

Post reply on HN