The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: John Cowan <cowan@ccil.org>
To: Dave Horsfall <dave@horsfall.org>
Cc: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: Re: [TUHS] Data structures in Unix editors
Date: Thu, 1 Apr 2021 17:32:11 -0400	[thread overview]
Message-ID: <CAD2gp_T3O2nUPae0gcAoq++ha01fkK-DcoG3LueA3UFkPrTRSg@mail.gmail.com> (raw)
In-Reply-To: <alpine.BSF.2.21.9999.2104020815290.23232@aneurin.horsfall.org>

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

On Thu, Apr 1, 2021 at 5:26 PM Dave Horsfall <dave@horsfall.org> wrote:


> 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.
>

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.



John Cowan          http://vrici.lojban.org/~cowan        cowan@ccil.org
Well, I have news for our current leaders and the leaders of tomorrow:
the Bill of Rights is not a frivolous luxury, in force only during
times of peace and prosperity.  We don't just push it to the side
when the going gets tough.  --Molly Ivins (pbuh)

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

  reply	other threads:[~2021-04-01 21:33 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 [this message]
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=CAD2gp_T3O2nUPae0gcAoq++ha01fkK-DcoG3LueA3UFkPrTRSg@mail.gmail.com \
    --to=cowan@ccil.org \
    --cc=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).