Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Computers are not intelligent. They only think they are.


devel / comp.lang.python / Re: walrus with a twist :+

SubjectAuthor
* RE: walrus with a twist :+= or ...Avi Gross
`- Re: walrus with a twist :+Bob Martin

1
RE: walrus with a twist :+= or ...

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: avigr...@verizon.net (Avi Gross)
Newsgroups: comp.lang.python
Subject: RE: walrus with a twist :+= or ...
Date: Thu, 28 Oct 2021 14:52:26 -0400
Lines: 157
Message-ID: <mailman.124.1635447148.23718.python-list@python.org>
References: <030e01d7cb96$b69ffc30$23dff490$.ref@verizon.net>
<030e01d7cb96$b69ffc30$23dff490$@verizon.net>
<CAPTjJmp29NdWBGJ5W3tc5-UcvcyOqr3F0y3amsb0jRi26qM53A@mail.gmail.com>
<034301d7cba1$a2378640$e6a692c0$@verizon.net> <YXpoaVHpN9sRUgg3@hjp.at>
<009a01d7cc2c$f363a4a0$da2aede0$@verizon.net>
Mime-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de D2llUcJOGGbZwfVVCiVB8g4uQxjjw5oQVc0cShaG+Szg==
Return-Path: <avigross@verizon.net>
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=verizon.net header.i=@verizon.net header.b=UPu3nToY;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'projects,': 0.03;
'pycharm': 0.04; '(e.g.': 0.05; 'entering': 0.05; 'fairly': 0.05;
'variable': 0.05; 'matching': 0.07; 'partial': 0.07; 'programmer':
0.07; 'forced': 0.09; 'funny': 0.09; 'language,': 0.09; 'numeric':
0.09; 'obviously': 0.09; 'operators': 0.09; 'physics': 0.09;
'shift': 0.09; 'that.': 0.15; '"but': 0.16; '"creative': 0.16;
'(because': 0.16; '__/': 0.16; 'alphabets': 0.16; 'avi': 0.16;
'bits': 0.16; 'challenge!"': 0.16; 'co-workers': 0.16; 'decimal':
0.16; 'declared': 0.16; 'encoding': 0.16; 'encoding,': 0.16;
'few.': 0.16; 'gradually': 0.16; 'gross': 0.16; 'hjp@hjp.at':
0.16; 'holzer': 0.16; 'iso': 0.16; 'languages.': 0.16; 'matched':
0.16; 'mechanics': 0.16; 'nested': 0.16; 'pi,': 0.16; 'reality.':
0.16; 'received:(vzm hermes smtp server)': 0.16; 'stross,': 0.16;
'subset': 0.16; 'symbol': 0.16; 'tightly': 0.16; 'unicode': 0.16;
'url-ip:212.17.106.137/32': 0.16; 'url-ip:212.17.106/24': 0.16;
'url-ip:212.17/16': 0.16; 'url:hjp': 0.16; 'while,': 0.16;
'|_|_)': 0.16; 'wrote:': 0.16; 'python': 0.16; 'larger': 0.17;
'october': 0.17; "can't": 0.17; 'uses': 0.19; 'to:addr:python-
list': 0.20; 'option': 0.20; 'language': 0.21; 'languages': 0.22;
'code': 0.23; 'idea': 0.24; '(and': 0.25; 'anything': 0.25;
'skip:- 10': 0.25; 'python,': 0.25; 'extension': 0.25;
'programming': 0.25; 'anyone': 0.25; 'binary': 0.26; 'perform':
0.26; 'visual': 0.26; 'bit': 0.27; 'expect': 0.28; 'sense': 0.28;
'computer': 0.29; 'it,': 0.29; 'looked': 0.31; 'modify': 0.31;
'think': 0.32; 'everyone': 0.32; 'question': 0.32; 'carefully':
0.32; 'marked': 0.32; 'programmers': 0.32; 'python-list': 0.32;
'but': 0.32; 'there': 0.33; 'particular': 0.33; 'able': 0.34;
'same': 0.34; 'work.': 0.34; 'header:In-Reply-To:1': 0.34;
'team.': 0.35; 'close': 0.35; 'similar': 0.65; 'look': 0.65;
'well': 0.65; 'required': 0.65; 'let': 0.66; 'back': 0.67; 'bad':
0.67; 'away': 0.67; 'choose': 0.67; 'right': 0.68; 'operations':
0.68; 'discussing': 0.69; 'diversity': 0.69; 'sequence': 0.69;
'url-ip:212/8': 0.69; 'within': 0.69; '2021': 0.71; 'attention':
0.71; 'charset:iso-8859-1': 0.73; 'quote': 0.74; 'easy': 0.74;
'features': 0.75; 'editors': 0.76; 'tight': 0.76; 'sent:': 0.78;
'left': 0.83; 'variety': 0.84; 'adopt': 0.84; 'ages': 0.84;
'bombarded': 0.84; 'characters': 0.84; 'chose': 0.84; 'coded':
0.84; 'contexts.': 0.84; 'converted': 0.84; 'country),': 0.84;
'drastic': 0.84; 'entry,': 0.84; 'integral': 0.84; 'invented':
0.84; 'pairs': 0.84; 'perspective.': 0.84; 'peter.': 0.84;
'quotes': 0.84; 'vim,': 0.84; 'exists': 0.91; 'greek': 0.91;
'migrate': 0.93; 'mind,': 0.93; 'ibm': 0.95
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verizon.net; s=a2048;
t=1635447146; bh=lsiToSsAMvQY3skYPsvJagnlu58BYhoDvJGnx/5NuFA=;
h=From:To:References:In-Reply-To:Subject:Date:From:Subject:Reply-To;
b=UPu3nToYuzPnTz2FErwfYTPbwwl53VnX3POeG78GkKZ4sctvjsXWDrFoUMB9Mn8pqJ67x+oMik+Qco+XnPJNkjs50AX1hcOwva080CtkANrWCtsgiwmyQ5q3sATiPeBAcZv4hNafGaJ2f2kMJLbbrwG5QATREDVTxfZHmGxrRMkQhfLSP0gisZKjzNxAED2K2iXYJv1HwSQaa7ERs4z72AyYyoxxnsHXAEuW3f6W3hh6O8EwDb5ICih3QqAShGnY6UIlHyxsR/aQyLPQuq6OvNtF1VRmAAkGBgtjgchgZFReVx/wvwF/l5PTIF190THc1LeXAGEb8f9/6pSvb/DEfQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=y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WVdy55erpkoPWF63oD72GY3w_36GL2HCZZDOG4eBzX20_gK5tHVJ90
gn49V94TU1n0u92WvowXaYxXfmyoVnIcggIzoCIyynTHr8K1T1i1QHTO2O0vOWKIUgvZrRQcD3FI
5PZfcdYalYDoMfVtP_i4O3rXGB93UrO.v5T1Kg_IFSyLt5eJjzhwoGTROW9BhPUFclsTitiSv.EZ
0Keq8ljrk1nxGCkwlIS0esHmoXykMhi_thoNEn6EVTMDNjV2ldnqlTo1dnTAUaSAIQPDs7GiqtEB
Ng05GeFTvLCyDlkwOYKeBtO4Z_pH6xmlzQi..QlbLuIRmqUPkWCcIlbe5QsUQaZsSc4GUKZQKUki
zTBa8xkyWdJ55NWMYIj8hr1JRgfxMY.D6vv238ZLy8Z45VRDHxmEd.y1xmuV8sxzL7wxNGQKX3qK
ILO2gRryV2r.xjjkZ1vhVFNsSrC0IN2wtyLVg47j9C9.gtn4.4Or0s7ypbFgZLSTV6CPoUELqG3b
3ai44m.hYpwJyM6m2epWbewBSKvKOhGO5dKdnM0r2pSP8U.naWuPClDpbZniTtHpNGNzEPaM_rqb
D46vtv6MSdO0sKYld
X-Sonic-MF: <avigross@verizon.net>
In-Reply-To: <YXpoaVHpN9sRUgg3@hjp.at>
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQHoKDY5BYYyhDJV6IPWj6XGikF5MwFgB8FdAyBbEGcCLFr+QAHssHWkq4M0l9A=
Content-Language: en-us
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.35
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: <009a01d7cc2c$f363a4a0$da2aede0$@verizon.net>
X-Mailman-Original-References: <030e01d7cb96$b69ffc30$23dff490$.ref@verizon.net>
<030e01d7cb96$b69ffc30$23dff490$@verizon.net>
<CAPTjJmp29NdWBGJ5W3tc5-UcvcyOqr3F0y3amsb0jRi26qM53A@mail.gmail.com>
<034301d7cba1$a2378640$e6a692c0$@verizon.net> <YXpoaVHpN9sRUgg3@hjp.at>
 by: Avi Gross - Thu, 28 Oct 2021 18:52 UTC

Good points, Peter.

Although we are discussing Python, I think it would be reasonable to look a
bit more broadly.

Ages ago, IBM used a different encoding than ASCII called EBCDIC (Extended
Binary Coded Decimal Interchange Code ) which let them use all 8 bits and
thus add additional symbols. ± ¦ ¬

So if you chose a specific set of symbols as a subset of UNICODE and
declared it to be PROGRAMMER symbols, it might be possible to provide
special keyboards that had something like the numeric keypad with a few more
symbols or in the place where the F1 keys are or wherever. All programming
languages that wished to use the symbols might be expected to mainly, or
exclusively, only use these symbols for unary or binary operators or other
purposes.

Look at one of the annoyances in Python (and similar in other languages)
where the matched symbols that come in left and right versions are overused.
() is used in oodles of contexts. So is {} and []. We do not use <> as
matching pairs because of other meanings. So a python dictionary and a
python set use the same general notation but can be disambiguated by the
contents sometimes.

And I note that single and double quotes are currently unique while other
programs like WORD make them in pairs with a clear open and close quote
slanted differently. Would we be better able to write clear constructs if
our programs also clearly marked beginning and ends of text in some
contexts, perhaps allowing even things like nested text?

I have no idea of details here and clearly too many symbols is as bad as too
few. I have taken lots of courses in topics like mathematics and physics
where I was bombarded by all kinds of notations and symbols that forced me
to learn the Greek and other alphabets so I could sort of pronounce them in
my mind, as well as funny "script" letters and all kinds of invented symbols
including many you now find in a wingding section. So having an assortment
of these be the same as used by programmers might be good for others. Think
not just Greek letters that would also give you pi, but the Integral sign
the symbol used for partial derivatives and of course you need an aleph from
Hebrew :=)

Is there a reasonable extension to a keyboard that might be reasonable,
perhaps with an accommodation to those without such a keyboard so that
entering some sequence gets it converted into what you want on the screen
but more mnemonic than 0X234f ??

Now once there was some sort of standard developed, all IDE for all
languages might have the option to adopt it. Of course, some symbols would
not be used or allowed in a particular language, albeit if they were all
otherwise valid UNICODE symbols, would be allowed in other contexts such as
within text or perhaps in variable names.

But back to python, I am not suggesting that it would be wise to modify much
of what exists even if this was available. Sets and Dictionaries might
remain as is, or there might be a second optional way to use them with new
symbols.

I happen to be one of the people who reads/writes/speaks in multiple
languages. Many decades ago I was forced to switch encodings carefully to
say ISO-8859-1 (Latin 1) if I wanted to write properly in German but
Hungarian required ISO 8859-2 and Hebrew needed ISO 8859-8 and Japanese
needed others like Shift JIS. For a while, much of my work included being
able to take in text and perform conversions and it was a royal pain. If
everyone used a small set of common encoding, as in UNICODE, things get
easier from one perspective. What I am suggesting is not as drastic but that
we choose a set of symbols that are clear and unambiguous and not huge but
larger than what we have now and gradually migrate to using more of it.
Obviously brand new languages could be designed to use it and existing
languages MIGHT use it more for new features and extensions.

So anyone know if anything like I am describing (or something much better)
is being looked at?

-----Original Message-----
From: Python-list <python-list-bounces+avigross=verizon.net@python.org> On
Behalf Of Peter J. Holzer
Sent: Thursday, October 28, 2021 5:08 AM
To: python-list@python.org
Subject: Re: walrus with a twist :+= or ...

On 2021-10-27 22:15:09 -0400, Avi Gross via Python-list wrote:
> But a serious question is now that we sort of have UNICODE, and even
> many editors and other programs support it, perhaps it might make
> sense for some operations in computer languages to make use of them.

I have thought so since the 1990's.

But while the large variety of unicode symbols is great for displaying
programs, it is awful for entering them. Keyboards have a limited number of
keys (and those are fairly standardized, if a different standard in each
country), so you either have to combine several keys or need to pick
characters by a different method (e.g. the mouse). Both are cumbersome,
shift the attention of the programmer from the algorithm to the mechanics of
entry, and are different from editor to editor.

I sometimes use Greek letters in variable names. But I do that only for
personal projects, not at work. I can't expect my co-workers to find out how
enter Greek letters in PyCharm or Visual Studio Code or Notepad++ or
whatever they are using and I don't want to do that research myself (I know
how to use digraphs im vim, thank you). And we are a small team.
Think of the diversity in a large multi-national company ...

It might work if the language is tightly integrated with an IDE. Then the
designers of the IDE and the designers of the language can work together to
make it easy to edit programs. And everyone who uses the language has to use
the IDE anyway (because of the tight integration), so "but how do I type
that in Notepad++?" is not a concern.

But tying together a language to an IDE that tightly will turn away all
programmers who are already used to a different IDE (or just plain
editor) and want to continue to use that.

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

Re: walrus with a twist :+

<iu1h2qFpg0bU1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bob.mar...@excite.com (Bob Martin)
Newsgroups: comp.lang.python
Subject: Re: walrus with a twist :+
Date: 29 Oct 2021 06:02:02 GMT
Lines: 8
Message-ID: <iu1h2qFpg0bU1@mid.individual.net>
References: <030e01d7cb96$b69ffc30$23dff490$.ref@verizon.net>
<030e01d7cb96$b69ffc30$23dff490$@verizon.net>
<CAPTjJmp29NdWBGJ5W3tc5-UcvcyOqr3F0y3amsb0jRi26qM53A@mail.gmail.com>
<034301d7cba1$a2378640$e6a692c0$@verizon.net>
<YXpoaVHpN9sRUgg3@hjp.at>
<009a01d7cc2c$f363a4a0$da2aede0$@verizon.net>
<mailman.124.1635447148.23718.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net PO/FWyvU66mmhEOGAnRJIgJToDdsA9VGTd72OF7ZG7Wv+JCvMS
X-Orig-Path: news.individual.net
Cancel-Lock: sha1:qaFkifjI6/hir5NWhCTM4Lwgr3Y=
In-Reply-To: <mailman.124.1635447148.23718.python-list@python.org>
User-Agent: xnews (by Bob Martin, in ooRexx & ncurses)
 by: Bob Martin - Fri, 29 Oct 2021 06:02 UTC

On 28 Oct 2021 at 18:52:26, "Avi Gross" <avigross@verizon.net> wrote:
>
> Ages ago, IBM used a different encoding than ASCII called EBCDIC (Extended
> Binary Coded Decimal Interchange Code ) which let them use all 8 bits and
> thus add additional symbols. =B1 =A6 =AC

IBM started using EBCDIC with System 360 and it is still used on mainframes.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor