A glance into web tech-based text editors’ text management
11–20 of 22 posts
Re: A glance into web tech-based text editors’ text management
#12I've been creating a hobby text editor for myself and have tried almost every text editor library on the planet, I think Draft and Quill are the best.
Re: A glance into web tech-based text editors’ text management
#13Re: A glance into web tech-based text editors’ text management
#14Total noob here but laughed at FARTF05 in assembly code. Would like if i got to code up FARTS in my daily job. What does that code do?
Re: A glance into web tech-based text editors’ text management
#15That 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"
Re: A glance into web tech-based text editors’ text management
#16"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?
Worst case scenario for a plain array is if you insert to the front of the array where it has to shift everything down one. But even if the file is on the order of several megabytes, this will still finish in milliseconds at most and the typist won't notice it.
Re: A glance into web tech-based text editors’ text management
#17"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?
Re: A glance into web tech-based text editors’ text management
#18Re: A glance into web tech-based text editors’ text management
#19Re: A glance into web tech-based text editors’ text management
#20"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?
Because it doesn't matter with modern day CPUs with typical file sizes and typing speeds. Worst case scenario for a plain array is if you insert to the front of the array where it has to shift everything down one. But even if the file is on the order of several megabytes, this will still finish in milliseconds at most and the typist won't notice it.
What a waste of laptop battery!
It can be really hard to make software efficient, sometimes there are easy wins.. seems odd to not just do it.
An insert or delete from (e.g.) a rope is very cheap and as they are immutable can make some other features very easy... saves copying megabytes...