From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14944 invoked from network); 1 Apr 2021 21:33:18 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 1 Apr 2021 21:33:18 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id CD1FB9CA33; Fri, 2 Apr 2021 07:33:15 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 66A639C8A5; Fri, 2 Apr 2021 07:32:27 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=ccil-org.20150623.gappssmtp.com header.i=@ccil-org.20150623.gappssmtp.com header.b="HB02KGp3"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 50F629C8A5; Fri, 2 Apr 2021 07:32:25 +1000 (AEST) Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by minnie.tuhs.org (Postfix) with ESMTPS id C97389C835 for ; Fri, 2 Apr 2021 07:32:24 +1000 (AEST) Received: by mail-qt1-f177.google.com with SMTP id u8so2530017qtq.12 for ; Thu, 01 Apr 2021 14:32:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vhM8Xku3sjwMyMfUks+K63qEiBwuVI6SsApLRXGNDaI=; b=HB02KGp3w+FRChRqJgffMF5CoDIIZQqhpHay6BlV2Bs2tFpf196He/4VO6nv32jSsU yWWx7DR9QQgQzy6As9GFMekaT/MWKAKJA3tqU9V1XUJHRxDvZ4TJ1KmwvUxhh+e8Z7jb NJ7sq2lk8LZiN0zeQGyduU13bBrSnMs2xKuc8n5ZGOGvixQEsRzq4pXClf20lVHUXeRl aHbKsjl+U6LhvJJu4WYwc2WATIJLPrDKOlj0LEcRC4grDtPXLyPwt2kWXrMhqjeX2ekq S1h6itIjaox8BJbf9LdvzQ/obrCzNYzqclhOk7DLcT6AnXg4lXAGnlmvaYiSyeFN1Bnv q7zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vhM8Xku3sjwMyMfUks+K63qEiBwuVI6SsApLRXGNDaI=; b=caxQydL4KgoVyt6Vl9DNUaPoL0UVN7QTjV/D1OeBpjld1Wi/TDXmtzlJyZ+B1RgqSu t6ylLYXX69PBV3gfjPMdO3eyI8BYcw3orcIKkyq8NtvlqCxd/wHDb3t78ucFswcmBrwr mF3iTxsPyN+iBBiTwdKHYLBCBZfMuj1dVWfkMcvZQIXfRenW1nlQ3VQiu3UNMViullcd MMt3HsKqC8dj15pmoOCAoEgyVpcaLoX/cEmSEI24KeFhYzkJsmWOvO/YghXzADGpRxSq /pWTKNOP7qXz9PGIZMW2U649aUvnF0APcQ4IqkHnmceSx9cdSaLt27vOJvYo/6DZExrK BuYw== X-Gm-Message-State: AOAM530uK7QdT+DIs/aWfhnqoOQ4chJZM085AJmmnExoCn+szETl3Np0 H3go2eYC2afVdnKCpfDOf10At+ABVnpiGHXQhUKcQg== X-Google-Smtp-Source: ABdhPJzKRF2bUiTy3njUmtbLrfVinCCjSxfFUmX1L/lW8r+7b0w5q+hn/z7Yna9A5KotE49IPieSEJ2HwyN8DZnPAek= X-Received: by 2002:a05:622a:205:: with SMTP id b5mr8904768qtx.186.1617312743953; Thu, 01 Apr 2021 14:32:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Cowan Date: Thu, 1 Apr 2021 17:32:11 -0400 Message-ID: To: Dave Horsfall Content-Type: multipart/alternative; boundary="00000000000098287b05beeff7ea" Subject: Re: [TUHS] Data structures in Unix editors X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --00000000000098287b05beeff7ea Content-Type: text/plain; charset="UTF-8" On Thu, Apr 1, 2021 at 5:26 PM Dave Horsfall 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) --00000000000098287b05beeff7ea Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Apr 1, 20= 21 at 5:26 PM Dave Horsfall <dave@h= orsfall.org> wrote:
=C2=A0
And oddly enough, BDB is exactly how I would have implemented it...=C2=A0 T= he
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 m= ake sure that no data is lost short of disk failure.=C2=A0 It is considerab= ly more robust than the underlying filesystem, and runs embedded in its pro= cess.=C2=A0 It also means you can readily carry about arbitrary data in add= itional=C2=A0columns; for example, you could make line marks persistent, in= cluding dot.



http://vrici.lojban.org/~cowan =C2=A0 =C2=A0 =C2=A0 =C2= =A0cowan@ccil.org
Well, I have new= s for our current leaders and the leaders of tomorrow:
the Bill of Right= s is not a frivolous luxury, in force only during
times of peace and pro= sperity.=C2=A0 We don't just push it to the side
when the going gets= tough. =C2=A0--Molly Ivins (pbuh)

<= /div>
--00000000000098287b05beeff7ea--