The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Adam Thornton <athornton@gmail.com>
To: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: Re: [TUHS] Data structures in Unix editors
Date: Fri, 2 Apr 2021 16:20:25 -0700	[thread overview]
Message-ID: <CAP2nic1-wCh6hwOp6SCL=Bf0-v5nMDUSKTyjUee6B7NXPiRZUQ@mail.gmail.com> (raw)
In-Reply-To: <alpine.BSF.2.21.9999.2104030937320.23232@aneurin.horsfall.org>

[-- Attachment #1: Type: text/plain, Size: 1339 bytes --]

's' from Webb Miller's _A Software Tools Sampler_ is an exhaustively
documented sort-of-stripped-down vi.  Admittedly it's a little tricky to
get your hands on the source document (I got it from interlibrary loan back
at the end of the Before Times, and archive.org lets you check it out for a
limited time, but there may be a waitlist).

It's interesting in that it's not just studying the source to see how it
works, but an actual (large) chapter of a book where he steps through the
construction of the individual functions and their keybindings.

Adam

On Fri, Apr 2, 2021 at 3:42 PM Dave Horsfall <dave@horsfall.org> wrote:

> On Thu, 1 Apr 2021, John Cowan wrote:
>
> [ Me thinking of using BDB for editor data structures ]
>
> > I'd use SQLite nowadays, because it takes extraordinary care to make
> > sure that no data is lost short of disk failure.  It is considerably
> > more robust than the underlying filesystem, and runs embedded in its
> > process.  It also means you can readily carry about arbitrary data in
> > additional columns; for example, you could make line marks persistent,
> > including dot.
>
> Good point; thanks.  I'd forgotten about SQLite...  I doubt if I'll be
> writing a new editor any time soon though (VI works just fine) but was
> planning on incorporating it in a project I'm working on.
>
> -- Dave

[-- Attachment #2: Type: text/html, Size: 1833 bytes --]

  reply	other threads:[~2021-04-02 23:21 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
2021-04-01 21:32     ` John Cowan
2021-04-02 22:40       ` Dave Horsfall
2021-04-02 23:20         ` Adam Thornton [this message]
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='CAP2nic1-wCh6hwOp6SCL=Bf0-v5nMDUSKTyjUee6B7NXPiRZUQ@mail.gmail.com' \
    --to=athornton@gmail.com \
    --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).