Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Although the moon is smaller than the earth, it is farther away.


devel / comp.lang.python / Re: tail

SubjectAuthor
o Re: tailMarco Sulla

1
Re: tail

<mailman.428.1652724867.20749.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18293&group=comp.lang.python#18293

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: Marco.Su...@gmail.com (Marco Sulla)
Newsgroups: comp.lang.python
Subject: Re: tail
Date: Mon, 16 May 2022 20:13:47 +0200
Lines: 30
Message-ID: <mailman.428.1652724867.20749.python-list@python.org>
References: <CABbU2U9HHADoY9ysgtoBtPnyu7UEaozCayuRRbc7UaVZPnvCLw@mail.gmail.com>
<Yn2KOYsmP0Zce8GT@cskk.homeip.net>
<CABbU2U-qtrhRs_T19aQ1MC0mkaJ12aDq=j3ce433259w8SiUQA@mail.gmail.com>
<Yn43K7X4E1PHbvW5@scrozzle>
<CABbU2U_O-wAdp=JvEHKhfNF=faDvo3bbrUtX6c7ZpBn__mG4Nw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de /u+Ilp1dA49ry25ulyiJlg0pQ3EmSGKWYNAFuKucbeGg==
Return-Path: <elbarbun@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=kfZcTL7N;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.060
X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; '2022': 0.05; 'comparison':
0.09; 'linux': 0.09; '(after': 0.16; '+0200,': 0.16; 'angry':
0.16; 'cameron': 0.16; 'from:name:marco sulla': 0.16; 'seen.':
0.16; 'simpson': 0.16; 'things,': 0.16; 'wrote:': 0.16; 'to:addr
:python-list': 0.20; "i've": 0.22; 'fri,': 0.22; 'code': 0.23;
'lines': 0.23; 'stuff': 0.25; 'stefan': 0.26; 'done': 0.28;
'chris': 0.28; 'etc': 0.28; 'think': 0.32; 'message-
id:@mail.gmail.com': 0.32; "i'll": 0.33; '100': 0.33; 'work.':
0.34; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'posts': 0.36; 'source': 0.36;
'received:209.85': 0.37; 'file': 0.38; 'put': 0.38;
'received:209': 0.39; 'least': 0.39; 'use': 0.39; 'serious': 0.40;
'me.': 0.62; 'seen': 0.62; 'ever': 0.63; 'clear': 0.64;
'speaking': 0.64; 'with:': 0.64; 'well': 0.65; 'less': 0.65;
'time.': 0.66; 'nearly': 0.67; 'time,': 0.67; 'stands': 0.69;
'itself.': 0.84; 'sulla': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=o0ajllPiUdbfg27tT9KMqR3hRULMDApMjqAQBYnwa18=;
b=kfZcTL7NJ/lOsWY1OwrAuaFpacsleEEC0dqHN3ZTX53K1uWhKCeZhkrT+tLHqPuDhu
xi6+RWzeearp3Jg4n29s4nmDJbXTvQnxzJwvLFnUOmdPcEdOQk4q1KACRWK6xN62/HGi
JXdeTECJwLDSrJZ0mzCSWGl6tjStqZrDLDooqoehFi3xV1HtYrMBe0vtbXH00cd9/c4u
ZhE3ah1tLJ/ODRjjECNkX9gJRkjXMcY1QFJ2NU89Uz9CLuXWSKdoexFoyFm6DqIrvINh
d14YPGJCCc9GlvL9OlMYYpuuMy07Z0L9/CA2KqzGrnccIZugUayBTnFB+Ljbdke2ixpX
oFDA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=o0ajllPiUdbfg27tT9KMqR3hRULMDApMjqAQBYnwa18=;
b=bfO4iLflls+Xj+ZGPKmotErQ0v57Kd3ti1di0udxiS3Z9DqY3F6nHKNEc5dwwLAPwq
islqFSHWoIh3Np2bU7G7PYulJ3oqndbAgX3fKO1l9TIxt7KIrWzOPfQTkikICpv6fL4A
0X1ngmNr3uSyEihFPL3j417SO9rzXYxUr2h1B3gE2dT+lR9vj0i7KMbAKjLpfNUnaV9K
71JIMwqKjAeg9tW4/Ch6zfLJLJQqQHtSCgvSu3Tf5OXvMFtsScQQqk2LZei3g5mGKgCP
duwjJxqen9uBWiG3ZKLP9XlK3nPJMgQcuLyhNtk9R7LZyfmp9Bam7SIui37AnNLDX30m
KRRA==
X-Gm-Message-State: AOAM533MQ0bhLM9rdj+9xSzMP93nFj0pb85fRcPgmxM7qN8xjraHWF/j
nagTyYAInYSbYRjGJWP6y/5jYpEE4tk6RGpIb9q8E6z3
X-Google-Smtp-Source: ABdhPJwWVHMZfK/QrXWhhTm2b/H6uNvInIAAnii0gjhyeKl4+IAmFgotBmV2M0WJuxafHJR3H1barBhNQ8xvMAJfSSI=
X-Received: by 2002:a05:6808:148e:b0:326:abe8:af49 with SMTP id
e14-20020a056808148e00b00326abe8af49mr14281141oiw.73.1652724864779; Mon, 16
May 2022 11:14:24 -0700 (PDT)
In-Reply-To: <Yn43K7X4E1PHbvW5@scrozzle>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CABbU2U_O-wAdp=JvEHKhfNF=faDvo3bbrUtX6c7ZpBn__mG4Nw@mail.gmail.com>
X-Mailman-Original-References: <CABbU2U9HHADoY9ysgtoBtPnyu7UEaozCayuRRbc7UaVZPnvCLw@mail.gmail.com>
<Yn2KOYsmP0Zce8GT@cskk.homeip.net>
<CABbU2U-qtrhRs_T19aQ1MC0mkaJ12aDq=j3ce433259w8SiUQA@mail.gmail.com>
<Yn43K7X4E1PHbvW5@scrozzle>
 by: Marco Sulla - Mon, 16 May 2022 18:13 UTC

On Fri, 13 May 2022 at 12:49, <2QdxY4RzWzUUiLuE@potatochowder.com> wrote:
>
> On 2022-05-13 at 12:16:57 +0200,
> Marco Sulla <Marco.Sulla.Python@gmail.com> wrote:
>
> > On Fri, 13 May 2022 at 00:31, Cameron Simpson <cs@cskk.id.au> wrote:
>
> [...]
>
> > > This is nearly the worst "specification" I have ever seen.
>
> > You're lucky. I've seen much worse (or no one).
>
> At least with *no* documentation, the source code stands for itself.

So I did it well to not put one in the first time. I think that after
100 posts about tail, chunks etc it was clear what that stuff was
about and how to use it.

Speaking about more serious things, so far I've done a test with:

* a file that does not end with \n
* a file that ends with \n (after Stefan test)
* a file with more than 10 lines
* a file with less than 10 lines

It seemed to work. I've only to benchmark it. I suppose I have to test
with at least 1 GB file, a big lorem ipsum, and do an unequal
comparison with Linux tail. I'll do it when I have time, so Chris will
be no more angry with me.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor