🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by utzoodecvaxucbvaxARPAVAXC70edito... Fri, 17 Sep 1982 08:31
buffer structures
#278
Author: utzoodecvaxucbvaxARPAVAXC70edito...
Date: Fri, 17 Sep 1982 08:31
20 lines
1264 bytes
>From EAK@MIT-MC Fri Sep 17 01:51:44 1982
No linked list of lines editor that I know of (including Multics
EMACS, ZWEI, CCA EMACS, Gossling EMACS, TORES etc.) has ever
implemented the EMACS buffer bounds concept.  This probably has
to do with a more basic limitation of the linked list of lines
approach; namely, you can't easily tell which of two buffer
positions is "first" efficiently.

It seems to me that other ways of implementing buffer bounds
should exist, but since no one has done so, and because I think
bounds are a real feature, I dislike the linked list of lines
approach.

Also, relocating marks efficiently in a buffer gap scheme is
easy.  I have code that anyone can look at if they care.
Marks a certainly NOT a reason for linked lists.

Another interesting possibility is a binary-tree of "text" (which
I prefer to lines for the reasons KLH gives).  It is possible to
compare buffer positions in log time using such structures.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads