Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"I don't think so," said Ren'e Descartes. Just then, he vanished.


devel / comp.lang.python / Re: tail

SubjectAuthor
o Re: taildn

1
Re: tail

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

 copy mid

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

 copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: PythonL...@DancesWithMice.info (dn)
Newsgroups: comp.lang.python
Subject: Re: tail
Date: Mon, 25 Apr 2022 08:08:17 +1200
Organization: DWM
Lines: 31
Message-ID: <mailman.247.1650830907.20749.python-list@python.org>
References: <CABbU2U98YKdcnJkDPfzE3Pqso+6LL72usB8hrSBVR0WbhauRoQ@mail.gmail.com>
<CAPTjJmr3AiCyvxXt=-nqNLrJfyQHmG=pvSsM7nU_XxhSe94zgA@mail.gmail.com>
<CABbU2U8TAvy0zMhUcNtTD0=WpQ6oNYEeZQuKDjnxhG85FVriDg@mail.gmail.com>
<CAPTjJmqnfoPjoNT2CNsrkMVxkzAMHHXHj-G3DuGrJ21SDRNsPA@mail.gmail.com>
<CABbU2U_sWyEmBXf0Psudwc-FLeRYqLX=B4x-_9TV0qc5ZVt3Bg@mail.gmail.com>
<CAPTjJmrJacamKq1V5T8FECkm4jURdYQgj0VsC+JK5Db0NoFaww@mail.gmail.com>
<55a04f90-8fb8-c585-afae-aca73c7d641f@DancesWithMice.info>
<006501d857f7$5f6801e0$1e3805a0$@earthlink.net>
<ea7d13fc-7385-1ed9-b87b-0091874c91e8@DancesWithMice.info>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de xe7mZyqELFlmvHfMUmwn4QA8EzoQojVzPPhDsd0yCb+Q==
Return-Path: <PythonList@DancesWithMice.info>
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=danceswithmice.info header.i=@danceswithmice.info
header.b=OrAiIpzY; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.008
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '2022': 0.05; 'kernel':
0.05; 'searching': 0.05; 'task.': 0.07; '=dn': 0.09;
'algorithmic': 0.09; 'from:addr:danceswithmice.info': 0.09;
'from:addr:pythonlist': 0.09; 'situations': 0.09; 'utility': 0.09;
'algorithms': 0.16; 'algorithms,': 0.16; "api's": 0.16; 'but...':
0.16; 'files).': 0.16; 'mainframe': 0.16; 'message-
id:@DancesWithMice.info': 0.16; 'recall': 0.16; 'received:51.254':
0.16; 'received:51.254.211': 0.16; 'received:51.254.211.219':
0.16; 'received:cloud': 0.16; 'received:rangi.cloud': 0.16;
'thread.': 0.16; 'utilities': 0.16; 'wrote:': 0.16; 'to:addr
:python-list': 0.20; 'code': 0.23; '(and': 0.25; 'skip:- 10':
0.25; 'header:User-Agent:1': 0.30; 'approach': 0.31; 'comment':
0.31; 'header:Organization:1': 0.31; '(as': 0.32; 'files,': 0.32;
'there': 0.33; 'same': 0.34; 'header:In-Reply-To:1': 0.34;
'running': 0.34; 'system,': 0.36; 'using': 0.37;
'received:192.168': 0.37; 'file': 0.38; 'thanks': 0.38; 'quite':
0.39; 'mentioned': 0.39; 'above': 0.62; 'from:': 0.62; 'to:':
0.62; 'subject': 0.63; 'between': 0.63; 'skip:r 20': 0.64; 're:':
0.64; 'received:51': 0.64; 'your': 0.64; 'similar': 0.65;
'received:userid': 0.66; 'choose': 0.67; 'longer': 0.71; 'late':
0.73; 'sent:': 0.78; 'assessment': 0.81; 'constraints': 0.84;
'saturday,': 0.84; 'thus,': 0.84; 'ibm': 0.95; 'storage': 0.95
DKIM-Filter: OpenDKIM Filter v2.11.0 vps.rangi.cloud 7BCAFCA5F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danceswithmice.info;
s=staff; t=1650830906;
bh=CwOUdS45BvvtsOgS8ZA/wz1qKe91rlAkE6fb0kxlLB8=;
h=Date:Subject:To:References:From:In-Reply-To:From;
b=OrAiIpzY9HCak1JcwwPpCFey4ZlBIm5uZc/j8heA/bqLOs3sGMOAufrUklQM1exBp
iRAhi9+dMuGTy/vuPwC4EiKJ86V1CPOM7obJMcdEzWKZddZduK3LDMoXBdUDyMtDrj
Y3CBE6UI20UmlmPTV+YCBbnLh21ZO1x7kW5+IboUpCoCqAp9A9t9vvwPiWkSEbFylb
zI5yFDhDCZzD4p3uJvtG4qcR1fatiSGo7CehhLJwFJIJIAfflfWOLL+y+2E1AIX2oU
4c6/ujTnj0X5wySzobhvW3zMIhX7ezeXkBEHEGbQmA1CF04DomBP2Dh3paJTg1RE0N
wsWShYwebcQaA==
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on vps517507.ovh.net
X-Spam-Level:
X-Spam-Status: No, score=-4.9 required=5.0 tests=ALL_TRUSTED,BAYES_00,
DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A autolearn=ham
autolearn_force=no version=3.4.0
DKIM-Filter: OpenDKIM Filter v2.11.0 vps.rangi.cloud D6FF6CA4C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danceswithmice.info;
s=staff; t=1650830905;
bh=CwOUdS45BvvtsOgS8ZA/wz1qKe91rlAkE6fb0kxlLB8=;
h=Date:Subject:To:References:From:In-Reply-To:From;
b=J6JGX6byHaqDQxbteehK5S0sMcPlDP9aA9ALGI8MM2Y+wfHMrLAo/1ylqseDebRUB
qT3qvlIhSvWcTnNNdgYDBwWzJUGd7qwJBK8ZLLVAYCDCDfLUZsrgSZ3l8r2gyai1oq
98Hn89I56ECQc4Q/QAeSPcXKcTReUl4LZDkczS7I5Q+2PdaZpIRI0yyPUqSlS9xLfx
bN4rv+HgGo28OMHI7I9vIjdX5pzyXa+hECsx28q4ZEilSeVlsdCZ5I1KwOxDllxEn+
/+LbdrmkIJJ7UTd1ZZdJZtksKBA2MZKeFoWCh4s2pWaiQAOVSvjoKlZkOPKoeZNReO
ZKzIxlH0k6bfQ==
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Content-Language: en-GB
In-Reply-To: <006501d857f7$5f6801e0$1e3805a0$@earthlink.net>
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: <ea7d13fc-7385-1ed9-b87b-0091874c91e8@DancesWithMice.info>
X-Mailman-Original-References: <CABbU2U98YKdcnJkDPfzE3Pqso+6LL72usB8hrSBVR0WbhauRoQ@mail.gmail.com>
<CAPTjJmr3AiCyvxXt=-nqNLrJfyQHmG=pvSsM7nU_XxhSe94zgA@mail.gmail.com>
<CABbU2U8TAvy0zMhUcNtTD0=WpQ6oNYEeZQuKDjnxhG85FVriDg@mail.gmail.com>
<CAPTjJmqnfoPjoNT2CNsrkMVxkzAMHHXHj-G3DuGrJ21SDRNsPA@mail.gmail.com>
<CABbU2U_sWyEmBXf0Psudwc-FLeRYqLX=B4x-_9TV0qc5ZVt3Bg@mail.gmail.com>
<CAPTjJmrJacamKq1V5T8FECkm4jURdYQgj0VsC+JK5Db0NoFaww@mail.gmail.com>
<55a04f90-8fb8-c585-afae-aca73c7d641f@DancesWithMice.info>
<006501d857f7$5f6801e0$1e3805a0$@earthlink.net>
 by: dn - Sun, 24 Apr 2022 20:08 UTC

On 25/04/2022 04.21, pjfarley3@earthlink.net wrote:
>> -----Original Message-----
>> From: dn <PythonList@DancesWithMice.info>
>> Sent: Saturday, April 23, 2022 6:05 PM
>> To: python-list@python.org
>> Subject: Re: tail
>>
> <Snipped>
>> NB quite a few of IBM's (extensively researched) algorithms which formed utility
>> program[me]s on mainframes, made similar such algorithmic choices, in the
>> pursuit of efficiencies.
>
> WRT the mentioned IBM utility program[me]s, the non-Posix part of the IBM mainframe file system has always provided record-managed storage since the late 1960's (as opposed to the byte-managed storage of *ix systems) so searching for line endings was (and is) irrelevant and unnecessary in that environment. That operating system also provides basic "kernel-level" read-backwards API's for the record-managed file system, so there was never any need to build reverse-read into your code for that environment.
>
> The byte-managed file storage used by the Posix kernel running under the actually-in-charge IBM mainframe operating system is, of course, subject to the same constraints and (in)efficiencies discussed in this thread.

Thanks for the clarification (and @wlfraed's addition).

Apologies if misunderstood. The above comment was about utilities which
would choose between algorithms, based on some rapid, initial,
assessment of the task. It was not about 'tail' utility/ies specifically
- and I don't recall using a 'tail' on mainframes, but...

Thus, the observation that the OP may find that a serial,
read-the-entire-file approach is faster is some situations (relatively
short files). Conversely, with longer files, some sort of 'last chunk'
approach would be superior.
--
Regards,
=dn

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor