The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Dave Horsfall <dave@horsfall.org>
To: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: Re: [TUHS] Data structures in Unix editors
Date: Fri, 2 Apr 2021 08:25:30 +1100 (EST)	[thread overview]
Message-ID: <alpine.BSF.2.21.9999.2104020815290.23232@aneurin.horsfall.org> (raw)
In-Reply-To: <bba5ddda-726f-5a0-11c0-6b17f785c4b4@dotat.at>

On Thu, 1 Apr 2021, Tony Finch wrote:

> A curious one is nvi, which uses the Berkeley DB RECNO interface to 
> access a text file as an array of lines (RECNO = record number).

On FreeBSD as least, "nvi" is used instead of "vi" (and is linked).

And oddly enough, BDB is exactly how I would have implemented it...  The 
basic datum is a line after all (I have no idea about EMACS, and don't 
want to know) so it makes sense to use a structure that can rapidly access 
arbitrary line numbers.

-- Dave

  parent reply	other threads:[~2021-04-01 21:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-31 17:39 David C. Brock
2021-03-31 18:07 ` arnold
2021-03-31 18:23   ` Richard Salz
2021-03-31 18:20 ` Lars Brinkhoff
2021-03-31 18:49 ` Bakul Shah
2021-04-01 12:56 ` Tony Finch
2021-04-01 14:24   ` Richard Salz
2021-04-01 21:25   ` Dave Horsfall [this message]
2021-04-01 21:32     ` John Cowan
2021-04-02 22:40       ` Dave Horsfall
2021-04-02 23:20         ` Adam Thornton
2021-04-03  0:34           ` Jon Forrest
2021-04-05 23:23   ` Mary Ann Horton
2021-04-01 20:12 Noel Chiappa
2021-04-01 20:57 ` John Cowan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.BSF.2.21.9999.2104020815290.23232@aneurin.horsfall.org \
    --to=dave@horsfall.org \
    --cc=tuhs@tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).