Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and may be fixed. Will keep monitoring.


devel / comp.lang.python / What to use for finding as many syntax errors as possible.

SubjectAuthor
o What to use for finding as many syntax errors as possible.<avi.e.gross

1
What to use for finding as many syntax errors as possible.

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From:
Newsgroups: comp.lang.python
Subject: What to use for finding as many syntax errors as possible.
Date: Tue, 11 Oct 2022 02:42:16 -0400
Lines: 72
Message-ID: <mailman.638.1665470539.20444.python-list@python.org>
References: <CAPTjJmrvVqpX8+bcH_2P8xr8c4=CSBK9vP9QkpxS5zxqkeObyg@mail.gmail.com>
<Y0SZ6coJzhm6jc1B@cskk.homeip.net>
<00ab01d8dd1f$2af0f9f0$80d2edd0$@gmail.com>
<CAPTjJmoZrFXOxkFKmLTQPneK8nntJH1sBTYCu4eN1rUB_muS8w@mail.gmail.com>
<011c01d8dd3c$9ab4b520$d01e1f60$@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de ludOvfUU/qFx/EnUHjh3aQ5AxCqmuHu4Jv7p2JIkSmPg==
Return-Path: <avi.e.gross@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=In7in9xV;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.116
X-Spam-Level: *
X-Spam-Evidence: '*H*': 0.77; '*S*': 0.00; '2022': 0.05; 'fairly':
0.05; 'codes': 0.07; 'parent': 0.07; 'wrong.': 0.07; 'angelico':
0.09; 'approaches': 0.09; 'language,': 0.09; 'tons': 0.09;
'trivial': 0.09; 'url:mailman': 0.15; 'syntax': 0.15; 'applies':
0.16; 'bits': 0.16; 'chrisa': 0.16; 'corrected': 0.16;
'correction': 0.16; 'encryption': 0.16; 'hardly': 0.16; 'layers':
0.16; 'learn.': 0.16; 'noise': 0.16; 'nonsense': 0.16; 'ones.':
0.16; 'opinion,': 0.16; 'packets': 0.16; 'rules.': 0.16;
'subject:syntax': 0.16; 'understand.': 0.16; 'words.': 0.16;
'wrote:': 0.16; 'python': 0.16; 'october': 0.17; 'message-
id:@gmail.com': 0.18; 'tue,': 0.19; 'to:addr:python-list': 0.20;
'language': 0.21; 'written': 0.22; 'languages': 0.22; 'run': 0.23;
'(and': 0.25; 'past': 0.25; 'skip:- 10': 0.25; 'url-
ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'programming': 0.25; 'url-ip:188.166/16':
0.25; 'so.': 0.26; 'done': 0.28; 'chris': 0.28; 'sense': 0.28;
'wrong': 0.28; 'error': 0.29; 'url-ip:188/8': 0.31; 'think': 0.32;
'(as': 0.32; 'half': 0.32; 'here,': 0.32; 'objects': 0.32;
'python-list': 0.32; 'unless': 0.32; 'but': 0.32; 'subject:for':
0.33; 'there': 0.33; 'someone': 0.34; 'same': 0.34; 'header:In-
Reply-To:1': 0.34; 'received:google.com': 0.34; 'complex': 0.35;
'words': 0.35; 'from:addr:gmail.com': 0.35; 'errors': 0.36;
'those': 0.36; 'really': 0.37; 'using': 0.37; 'received:209.85':
0.37; 'class': 0.37; 'hard': 0.37; 'others': 0.37; 'way': 0.38;
'could': 0.38; 'received:209': 0.39; 'use': 0.39; 'finding': 0.39;
'methods': 0.39; 'received:100': 0.39; 'received:209.85.222':
0.39; 'seeing': 0.39; 'still': 0.40; 'forms': 0.40; 'happen':
0.40; 'subject:What': 0.40; 'learn': 0.40; '10,': 0.61; 'likely':
0.61; 'method': 0.61; 'url-ip:142.250.179/24': 0.61; "there's":
0.61; 'above': 0.62; 'from:': 0.62; 'to:': 0.62; 'today,': 0.62;
'come': 0.62; 'url-ip:142.250.179.174/32': 0.63; 'great': 0.63;
'between': 0.63; 'everything': 0.63; 'clear': 0.64; 'gender':
0.64; 're:': 0.64; 'thus': 0.64; 'url:watch': 0.64; 'your': 0.64;
'agreement': 0.65; 'similar': 0.65; 'well': 0.65; 'wish': 0.66;
'earlier': 0.67; 'time,': 0.67; 'live': 0.68; 'right': 0.68;
'beautifully': 0.69; 'types,': 0.69; 'terms': 0.70; 'rules': 0.70;
'little': 0.73; 'easy': 0.74; 'accepting': 0.75; 'price': 0.75;
'detection': 0.76; 'free.': 0.76; 'life': 0.77; 'sent:': 0.78;
'url:v': 0.78; 'spent': 0.81; 'extra': 0.84; 'powerful': 0.84;
'admit': 0.84; 'breeding': 0.84; 'control.': 0.84; 'distinction':
0.84; 'drake': 0.84; 'exceptions': 0.84; 'fortunately,': 0.84;
'lion': 0.84; 'parity': 0.84; 'schemes': 0.84; 'subject:many':
0.84; 'largely': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=thread-index:content-language:content-transfer-encoding
:mime-version:message-id:date:subject:in-reply-to:references:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=GJ9Fb1ErKeUzaOAvxYukiHlP6pHm/et8YX9ERN9sOTQ=;
b=In7in9xVER+6nLXzYxmdufoQ3V2lU2/0nVSiGC5zeH3AjKf/AJ06v0zUfNB+cpw5LS
KDcso2JF4kJeDKcHQfCg58BVokf/wbxygMnAjEHYn7Rq+I2h9IFJt/YQH4+aQjO7QED0
K9BvcM68dHSWX7pGMslQFBPagUpZaKTzsbCixjXCRCAx80hFUmwPPU27L2BNjRO+xEB1
7OSkRzbJI/MBsQNzwtW8zX4VIMwdgMiodBd07UrPCDYDCNuH4xRX358J3vkachYrmhPM
eVsKS8/pirQ1+udEM4syyRdI3NUNGZFmje47BYgEEI/nvGzdckwXZy9wSc63YjbfiIh9
dx0g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=thread-index:content-language:content-transfer-encoding
:mime-version:message-id:date:subject:in-reply-to:references:to:from
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=GJ9Fb1ErKeUzaOAvxYukiHlP6pHm/et8YX9ERN9sOTQ=;
b=gw+A0rkf1E1a7rLIkWgOkaz8pgumitlPjGs/7HcAQqyWhIdSyuHQnuDH11wB93XqtV
F4Qjoi/OaHIVOpz+HLmkCdcBRlPV8FeuneJPhm4Mn3FVHGCGRKSchbQa23rFJNAlQ81o
q4EnGBuTm/pY0MIVXIID4NEseWh5U+Ue+wp2liGwTmFX+kimT3weRjUMC9sHTrDhMtxm
P7WA01LFKjMUQKjgYMmpUYL1+enSWOrGL7+OcCyEsmt5UENIMj8MQ47LtkH8JxP4RiH5
IbrCZVCnfKsa3LS+7LHtIiZDgZFIKAo90URvJbFZKany2Fc4WizP5vBk7JlR9mMQ8arM
eA0w==
X-Gm-Message-State: ACrzQf3vrNrIN/ktE5VZGNTl2kVuDaKQlb5Z8EbRM0cSxSu9EO4vzWm+
+zggJ/6zJVpspBDlnI7VFiznoeucrI4=
X-Google-Smtp-Source: AMsMyM47Tb4RVZJjWqdSkkfmTtQTUszXZdbFMY8ONBtetfrD5ORnHmoPVKllFcxDqo24gKV2XN21KA==
X-Received: by 2002:a37:b545:0:b0:6e4:8039:9265 with SMTP id
e66-20020a37b545000000b006e480399265mr15134493qkf.221.1665470537479;
Mon, 10 Oct 2022 23:42:17 -0700 (PDT)
In-Reply-To:
X-Mailer: Microsoft Outlook 16.0
Content-Language: en-us
Thread-Index: AQJ4cqxAdUYYT6RI04ObmXZJDlYy5gGPYHrxAgusvgQBUW3vGQJUz4eSrI+JcLA=
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: <011c01d8dd3c$9ab4b520$d01e1f60$@gmail.com>
X-Mailman-Original-References: <CAPTjJmrvVqpX8+bcH_2P8xr8c4=CSBK9vP9QkpxS5zxqkeObyg@mail.gmail.com>
<Y0SZ6coJzhm6jc1B@cskk.homeip.net>
<00ab01d8dd1f$2af0f9f0$80d2edd0$@gmail.com>
<CAPTjJmoZrFXOxkFKmLTQPneK8nntJH1sBTYCu4eN1rUB_muS8w@mail.gmail.com>
 by: - Tue, 11 Oct 2022 06:42 UTC

I think we are in agreement here, Chris. My point is that the error
detection and correction is now done at levels where there is not much need
to use earlier and inefficient methods like parity bits set aside. We use
protocols like TCP and IP and layers above them and above those to maintain
the integrity of packets and sessions and forms of encryption allowing
things like authentication. There is tons of overhead, even when some is
fairly efficient, but we hardly notice it unless things go wrong.

So written language sent (as in this email/post) does not need lots of
redundancy and all the extra effort is, IMNSHO opinion, largely wasted. If I
see a bear, I do not wish to check their genitals or DNA to determine their
irrelevant gender before asking someone to run from it. If I happen to know
the gender, as in a zoo, gender only matters for things like breeding
purposes. I do not want to memorize terms in languages that have not only
words like lion and lioness or duck and drake and goose and gander, but for
EVERYTHING in some sense so I can say the equivalent of ANIMAL-male and
ANIMAL-female with unique words. Life would be so much simpler if I could
say your dog was nice and not be corrected that it was a bitch and I used
the wrong word endings. If I really wanted to say it was a female dog, well
I could just add a qualified. Most of the time, who cares?

The same applies to so much grammatical nonsense which is also usually
riddled with endless exceptions to the many rules. Make the languages simple
with little redundancy and thus far easier to learn.

I can say similar things about some programming languages that either have
way too many rules or too few of the right ones.

There are tradeoffs and if you want a powerful language it will likely not
be easy to control. If you want a very regulated language, you may find it
not very useful as many things are hard to do ad others not possible. I know
that strongly typed languages often have to allow some method of cheating
such as unions of data types, or using a parent class as the sort of
object-type to allow disparate objects to live together. Python is far from
the most complex but as noted, it is not trivial to evaluate even the syntax
past errors.

But I admit it is fun and a challenge to learn both kinds and I spent much
of my time doing so. I like the flexibility of seeing different approaches
and holding contradictions in my mind while accepting both and yet neither!
LOL!

-----Original Message-----
From: Python-list <python-list-bounces+avi.e.gross=gmail.com@python.org> On
Behalf Of Chris Angelico
Sent: Monday, October 10, 2022 11:24 PM
To: python-list@python.org
Subject: Re: What to use for finding as many syntax errors as possible.

On Tue, 11 Oct 2022 at 14:13, <avi.e.gross@gmail.com> wrote:
> With the internet today, we are used to expecting error correction to
> come for free. Do you really need one of every 8 bits to be a parity
> bit, which only catches may half of the errors...

Fortunately, we have WAY better schemes than simple parity, which was only
really a thing in the modem days. (Though I would say that there's still a
pretty clear distinction between a good message where everything has correct
parity, and line noise where half of them
don't.) Hamming codes can correct one-bit errors (and detect two-bit
errors) at a price of log2(size)+1 bits of space. Here's a great
rundown:

https://www.youtube.com/watch?v=X8jsijhllIA

There are other schemes too, but Hamming codes are beautifully elegant and
easy to understand.

ChrisA
--
https://mail.python.org/mailman/listinfo/python-list

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor