Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #427: network down, IP packets delivered via UPS


comp / comp.lang.misc / Re: Python (was Re: I did not inhale)

SubjectAuthor
* Re: I did not inhaleKalevi Kolttonen
`* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 +* Re: Python (was Re: I did not inhale)Kaz Kylheku
 |`* Re: Python (was Re: I did not inhale)Kalevi Kolttonen
 | +* Re: Python (was Re: I did not inhale)John Ames
 | |`- Re: Python (was Re: I did not inhale)D
 | +* Re: Python (was Re: I did not inhale)Muttley
 | |+* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | ||+* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 | |||`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | ||| +* Re: Python (was Re: I did not inhale)Muttley
 | ||| |`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | ||| | `* Re: Python (was Re: I did not inhale)Muttley
 | ||| |  +* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | ||| |  |+* Re: Python (was Re: I did not inhale)Kaz Kylheku
 | ||| |  ||`- Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | ||| |  |+- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 | ||| |  |+- Re: Python (was Re: I did not inhale)Muttley
 | ||| |  |`* Re: Python (was Re: I did not inhale)Sebastian
 | ||| |  | `* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | ||| |  |  +* Re: Python (was Re: I did not inhale)vallor
 | ||| |  |  |`- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 | ||| |  |  `- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 | ||| |  `- Re: Python (was Re: I did not inhale)Richard Kettlewell
 | ||| +* Re: Python (was Re: I did not inhale)Kenny McCormack
 | ||| |`- Re: Python (was Re: I did not inhale)Muttley
 | ||| +* Re: Python (was Re: I did not inhale)Kaz Kylheku
 | ||| |`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | ||| | `* Re: Python (was Re: I did not inhale)Kaz Kylheku
 | ||| |  `* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | ||| |   `- Re: Python (was Re: I did not inhale)Kaz Kylheku
 | ||| `* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 | |||  `* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | |||   +* Re: Python (was Re: I did not inhale)David Brown
 | |||   |+* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | |||   ||+* Re: Python (was Re: I did not inhale)Muttley
 | |||   |||`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | |||   ||| +- Re: Python (was Re: I did not inhale)Muttley
 | |||   ||| `- Re: Python (was Re: I did not inhale)Bozo User
 | |||   ||+* Re: Python (was Re: I did not inhale)David Brown
 | |||   |||`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | |||   ||| +* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 | |||   ||| |`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | |||   ||| | `- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 | |||   ||| `* Re: Python (was Re: I did not inhale)David Brown
 | |||   |||  `* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | |||   |||   +* Re: Python (was Re: I did not inhale)David Brown
 | |||   |||   |`- Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | |||   |||   `* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 | |||   |||    `* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | |||   |||     `- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 | |||   ||`* Re: Python (was Re: I did not inhale)Keith Thompson
 | |||   || `* Re: Python (was Re: I did not inhale)John Ames
 | |||   ||  +- Re: Python (was Re: I did not inhale)Muttley
 | |||   ||  `- Re: Python (was Re: I did not inhale)Stefan Ram
 | |||   |`- Re: Python (was Re: I did not inhale)Bart
 | |||   +* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 | |||   |`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | |||   | +* Re: Python (was Re: I did not inhale)Keith Thompson
 | |||   | |`- Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | |||   | `* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 | |||   |  `* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
 | |||   |   +- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 | |||   |   `- Re: Python (was Re: I did not inhale)D
 | |||   `* Re: Python (was Re: I did not inhale)vallor
 | |||    `- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 | ||+- Re: Python (was Re: I did not inhale)Muttley
 | ||`- Re: Python (was Re: I did not inhale)Eric Pozharski
 | |`* Re: Python (was Re: I did not inhale)David Brown
 | | `- Re: Python (was Re: I did not inhale)Muttley
 | `* Re: Python (was Re: I did not inhale)David Brown
 |  +* C function prototype was Python (was Re: I did not inhale)James Harris
 |  |`- Re: C function prototype was Python (was Re: I did not inhale)David Brown
 |  +* Re: Python (was Re: I did not inhale)Keith Thompson
 |  |`- Re: Python (was Re: I did not inhale)David Brown
 |  `* Re: Python (was Re: I did not inhale)Kalevi Kolttonen
 |   +* Re: Python (was Re: I did not inhale)Muttley
 |   |+- Re: Python (was Re: I did not inhale)Lew Pitcher
 |   |`- Re: Python (was Re: I did not inhale)Kalevi Kolttonen
 |   +* Re: Python (was Re: I did not inhale)David Brown
 |   |`* Re: Python (was Re: I did not inhale)Kalevi Kolttonen
 |   | +* Re: Python (was Re: I did not inhale)David Brown
 |   | |+* Re: Python (was Re: I did not inhale)Muttley
 |   | ||`* Re: Python (was Re: I did not inhale)David Brown
 |   | || `* Re: Python (was Re: I did not inhale)Muttley
 |   | ||  `* Re: Python (was Re: I did not inhale)David Brown
 |   | ||   `* Re: Python (was Re: I did not inhale)Muttley
 |   | ||    `* Re: Python (was Re: I did not inhale)David Brown
 |   | ||     `* Re: Python (was Re: I did not inhale)Muttley
 |   | ||      +* Re: Python (was Re: I did not inhale)D
 |   | ||      |+* Re: Python (was Re: I did not inhale)Muttley
 |   | ||      ||`* Re: Python (was Re: I did not inhale)D
 |   | ||      || `* Re: Python (was Re: I did not inhale)Lew Pitcher
 |   | ||      ||  `- Re: Python (was Re: I did not inhale)Muttley
 |   | ||      |`- Re: Python (was Re: I did not inhale)David Brown
 |   | ||      `* Re: Python (was Re: I did not inhale)David Brown
 |   | ||       +* Re: Python (was Re: I did not inhale)Muttley
 |   | ||       |`* Re: Python (was Re: I did not inhale)John Ames
 |   | ||       | +- Re: Python (was Re: I did not inhale)Muttley
 |   | ||       | `* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 |   | ||       |  +* Re: Python (was Re: I did not inhale)John Ames
 |   | ||       |  +* Re: Python (was Re: I did not inhale)Bart
 |   | ||       |  `- Re: Python (was Re: I did not inhale)Kaz Kylheku
 |   | ||       `* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 |   | |`* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 |   | `* Re: Python (was Re: I did not inhale)Muttley
 |   `* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
 `* Re: Python (was Re: I did not inhale)Kalevi Kolttonen

Pages:1234567891011
Subject: Re: Python (was Re: I did not inhale)
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 08:21 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 08:21:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <va6se9$cb8e$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45eq$3pkt9$1@dont-email.me>
<va4aut$3q4g0$1@dont-email.me> <va4fbr$3qvij$1@dont-email.me>
<va5108$3tmmd$1@dont-email.me> <va51ok$3tqr9$1@dont-email.me>
<va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me>
<va6rpa$c6bg$1@dont-email.me>
Injection-Date: Thu, 22 Aug 2024 10:21:29 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="542601cbb14dae1cdedf2a9298683fa1";
logging-data="404750"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/53h5z45vL5oJTfJ55TuB4"
Cancel-Lock: sha1:hJzPdGQYhe/C2UXZSG0TTamKSRk=
View all headers

On Thu, 22 Aug 2024 10:10:18 +0200
David Brown <david.brown@hesbynett.no> boringly babbled:
>On 22/08/2024 09:42, Muttley@dastardlyhq.com wrote:
>> Yes, its ultimately subjective. The reasons I don't like it are that I can't
>> stand dynamic typing in supposed "proper" languages and the syntatically
>> meaningful whitespace nonsense they took from Occam really grinds my gears.
>> In my current job I'm forced to use it but I'd never do it out of choice.
>>
>
>Dynamic typing has its advantages and disadvantages. You do lose a lot
>of human checking and static checking when you have dynamic typing, but
>you gain flexibility. Have you tried using type annotations in Python?

No, i'll look into it, thanks.

>I am a big fan of clear and consistent layout and indentation, which is
>forced on you by Python (and Occam), but I too prefer explicit blocking.
> It's harder to get things wrong with explicit blocking, and you are

Indeed. You delete a bracket by mistake and it won't compile, end of. In
Python you can delete a spaces/tabs by mistake and if its at the end of the
block the thing could still run.

>never faced with space vs. tab conflicts causing semantic changes to the
>code.

Yes, this is a royal PITA. I use tabs as in vim I can instantly change the
indentation using "set ts=". With spaces its fixed short of dicking about
with macros.

>> IMO its fine for small scripts up to maybe a few hundred lines. Beyond that
>> no.
>>
>
>Oh, it's fine for /far/ bigger programs than that. But it is excellent

As you said, opinions may differ.

Subject: Re: Python (was Re: I did not inhale)
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 09:02 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 09:02:08 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <va6uqg$clga$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45eq$3pkt9$1@dont-email.me>
<va4aut$3q4g0$1@dont-email.me> <va4fbr$3qvij$1@dont-email.me>
<va5108$3tmmd$1@dont-email.me> <va51ok$3tqr9$1@dont-email.me>
<va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me>
<va6rpa$c6bg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 22 Aug 2024 11:02:09 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="121cecafcfd9e311c6d841fd8b3330b2";
logging-data="415242"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tSJpIyrNpqL8X+SBo6+/D"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:cud0cbsjc738ki9NDfB3Bj61rgk=
View all headers

On Thu, 22 Aug 2024 10:10:18 +0200, David Brown wrote:

> I am a big fan of clear and consistent layout and indentation, which is
> forced on you by Python (and Occam), but I too prefer explicit blocking.
> It's harder to get things wrong with explicit blocking, and you are
> never faced with space vs. tab conflicts causing semantic changes to the
> code.

Python prohibits those space/tab inconsistencies.

Nevertheless, I don’t like the loss of redundancy in the way code
structure is expressed, which is why I like to put in “#end” comments.

Subject: Re: Python (was Re: I did not inhale)
From: David Brown
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 09:09 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 11:09:39 +0200
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <va6v8j$c6bg$2@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45eq$3pkt9$1@dont-email.me>
<va4aut$3q4g0$1@dont-email.me> <va4fbr$3qvij$1@dont-email.me>
<va5108$3tmmd$1@dont-email.me> <va51ok$3tqr9$1@dont-email.me>
<va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me>
<d02d6ea1-e0d7-20b0-dbb1-e0af4b0960d2@example.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 22 Aug 2024 11:09:40 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e19e10a6f493b0642935e2bdebcb364b";
logging-data="399728"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+C6Ivmjh+OraXLTfr8aAT7TfwKi3708As="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:R9mkblUJD4iTyEshiowc7UkYuyY=
Content-Language: en-GB
In-Reply-To: <d02d6ea1-e0d7-20b0-dbb1-e0af4b0960d2@example.net>
View all headers

On 22/08/2024 09:52, D wrote:
>
> I liked python in the beginning, but I find that over the years, it has
> become worse. My biggest complaint is dependency management and that you
> have to download so many things in order to get a modern project to work.
>

I agree that can be a poor point.

Dependency management for languages is a complex beast. It can often
make it easy to get hold of libraries, or update versions - but it can
be very hard to keep consistency and get old versions. Most dependency
management is strongly based on the idea that you have the latest
version of the language, and want the latest version of the libraries,
and that is not always true. This can be a real pain for long-running
projects.

This is not a Python-specific issue, IME. I think it applies to many or
most languages and systems with dependency and library management tools.
I certainly see it all the time for C and C++ using microcontroller
manufacturers' SDK's and libraries.

Subject: Re: Python (was Re: I did not inhale)
From: David Brown
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 10:47 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 12:47:16 +0200
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <va74vk$dfb0$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45eq$3pkt9$1@dont-email.me>
<va4aut$3q4g0$1@dont-email.me> <va4fbr$3qvij$1@dont-email.me>
<va5108$3tmmd$1@dont-email.me> <va51ok$3tqr9$1@dont-email.me>
<va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me>
<va6rpa$c6bg$1@dont-email.me> <va6uqg$clga$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 22 Aug 2024 12:47:16 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e19e10a6f493b0642935e2bdebcb364b";
logging-data="441696"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8dK8pgJ8SZQz+ITTJBZ2xpuOZQ7ST2+0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:560TjJDXlkCdG9ER/vMGLkoFi0M=
Content-Language: en-GB
In-Reply-To: <va6uqg$clga$1@dont-email.me>
View all headers

On 22/08/2024 11:02, Lawrence D'Oliveiro wrote:
> On Thu, 22 Aug 2024 10:10:18 +0200, David Brown wrote:
>
>> I am a big fan of clear and consistent layout and indentation, which is
>> forced on you by Python (and Occam), but I too prefer explicit blocking.
>> It's harder to get things wrong with explicit blocking, and you are
>> never faced with space vs. tab conflicts causing semantic changes to the
>> code.
>
> Python prohibits those space/tab inconsistencies.
>

No, it does not. Python treats tabs (at the start of lines, which is
the only relevant point here) as 8 spaces by default. You can change
that with command-line flags if you want. But it is quite happy with
mixtures of tabs and spaces as long as the result after tab-to-space
conversion is consistent with Python syntax.

So if you have an editor set to 8-space tabs, you can mix spaces and
tabs freely, and Python will treat your code exactly as it appears. If,
as many people do, you have an editor with 4-space tabs then mixing tabs
and spaces will risk strange effects. In some cases, Python can see it
as inconsistent indentation. In other cases, you might get indentation
that is valid Python syntax but not what the programmer saw in the editor:

if cond :
doThis() # 8 spaces
doThat() # One tab

An editor that sees the tab as 4 spaces will show a very different
picture from Python that treats it as 8 spaces.

> Nevertheless, I don’t like the loss of redundancy in the way code
> structure is expressed, which is why I like to put in “#end” comments.

I would not recommend that. But I think it makes sense to add a
"return" at the end of functions if they otherwise end in indentations,
to give a clear ending to the function definition. That is vastly
better than an "# end" comment because it is checked for Python syntax
and correct (or at least plausible) indentation. If you need an end
marker for other blocks, "pass" is your friend - again it is better than
a comment.

Subject: Re: Python (was Re: I did not inhale)
From: David Brown
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 11:00 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 13:00:27 +0200
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <va75ob$dfb0$2@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me>
<va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 22 Aug 2024 13:00:27 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e19e10a6f493b0642935e2bdebcb364b";
logging-data="441696"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19r3YXTXT7eYCRlpejITyqU63fDfSwUtd4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:VZMPypVtBx7nWcO+iaT/kOO6Ffo=
In-Reply-To: <va5u2q$1uhn$3@dont-email.me>
Content-Language: en-GB
View all headers

On 22/08/2024 01:43, Lawrence D'Oliveiro wrote:
> On Wed, 21 Aug 2024 11:11:46 +0200, David Brown wrote:
>
>> On 21/08/2024 09:38, Lawrence D'Oliveiro wrote:
>>>
>>> On Wed, 21 Aug 2024 09:26:41 +0200, David Brown wrote:
>>>
>>>> And you don't need to know anything about Linux, UNIX or POSIX to
>>>> program in C.
>>>
>>> I think the point has been made on comp.lang.c more than once, that C
>>> without POSIX can be a very dull language indeed ...
>>
>> It was wrong on comp.lang.c, and it is wrong here. Proof by repeated
>> assertion is not valid.
>
> It came up repeatedly because of repeated examples where it was true.

It takes but one single counter-example to invalidate general claims
like this. And for almost the entire branch of small-systems embedded
programming, code is mostly written in C, POSIX is utterly irrelevant,
and the work is not dull.

Then there are those that - wisely or unwisely - program in C for
Windows, without POSIX.

Then there are those that program in C and use libraries, abstractions
or other layers between their own code and the underlying POSIX systems.

Then there are those that write portable C code that does not depend on
any OS at all.

I have no statistics, but I'd imagine that it's actually only a small
fraction of C programmers that have direct regular contact with POSIX in
most of their regular work. C coding is not usually about how you
access a file, or how you start a thread - it's about what you do with
the file contents and the code that runs in the thread.

So - you are still wrong, even if others have said the same thing as you
did.

Subject: Re: Python (was Re: I did not inhale)
From: Dmitry A. Kazakov
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 11:30 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 13:30:19 +0200
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <va77gb$dr7n$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me>
<va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me>
<va75ob$dfb0$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 22 Aug 2024 13:30:19 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3514965773929b21e70a1a8916e1020d";
logging-data="453879"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+B/mTVn7dsbesq64aAx5VF9UoYLoylXwo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:aIQdxbAmYWOB5fMKO0SMS3YjS8Y=
In-Reply-To: <va75ob$dfb0$2@dont-email.me>
Content-Language: en-US
View all headers

On 2024-08-22 13:00, David Brown wrote:

> Then there are those that - wisely or unwisely - program in C for
> Windows, without POSIX.

Yes, that is true. There is no reason to use POSIX under Windows,
whatsoever.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Subject: Re: Python (was Re: I did not inhale)
From: D
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: i2pn2 (i2pn.org)
Date: Thu, 22 Aug 2024 13:11 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: nospam@example.net (D)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 15:11:33 +0200
Organization: i2pn2 (i2pn.org)
Message-ID: <21c056b1-240c-a682-7a43-4fd36b158e5a@example.net>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com> <20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org> <way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org> <choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me> <20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me> <v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me> <va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45eq$3pkt9$1@dont-email.me> <va4aut$3q4g0$1@dont-email.me> <va4fbr$3qvij$1@dont-email.me> <va5108$3tmmd$1@dont-email.me> <va51ok$3tqr9$1@dont-email.me> <va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me>
<d02d6ea1-e0d7-20b0-dbb1-e0af4b0960d2@example.net> <va6s8b$ca7k$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Injection-Info: i2pn2.org;
logging-data="3468598"; mail-complaints-to="usenet@i2pn2.org";
posting-account="w/4CleFT0XZ6XfSuRJzIySLIA6ECskkHxKUAYDZM66M";
X-Spam-Checker-Version: SpamAssassin 4.0.0
In-Reply-To: <va6s8b$ca7k$1@dont-email.me>
View all headers

On Thu, 22 Aug 2024, Muttley@dastardlyhq.com wrote:

> On Thu, 22 Aug 2024 09:52:24 +0200
> D <nospam@example.net> boringly babbled:
>> On Thu, 22 Aug 2024, Muttley@dastardlyhq.com wrote:
>>>> programmers - but it is also an excellent language for many real tasks.
>>>> Of course it has its weaknesses and disadvantages as well as its
>>>> strengths, and aspects that will appeal to some programmers and not others.
>>>
>>> IMO its fine for small scripts up to maybe a few hundred lines. Beyond that
>>> no.
>>>
>>
>> I liked python in the beginning, but I find that over the years, it has
>> become worse. My biggest complaint is dependency management and that you
>> have to download so many things in order to get a modern project to work.
>
> Yes, that appears to be a big issue these days. On a project I was working
> on recently the version of Pandas (stupid name but thats python libs) had
> some minor bug and to update Pandas we had to update just about everything
> else as well.
>
>> On the other hand, I'm not a programmer, so I'm probably doing it wrong or
>> not accordin to best practices by not using containers for all my python
>> stuff.
>
> For a properly designed language a container shouldn't be required. Using
> a container to prevent library hell is like seeing a mess on your floor but
> instead of clearing the mess you sweep it into seperate piles depending on
> the type of rubbish. With C/C++ you can set LD_LIBRARY_PATH to use particular
> shared object files but doing something similar with Python AFAIK is a hell of
> a task.
>

Thank you! You make me feel less of an outsider and old timer! ;)

Subject: Re: Python (was Re: I did not inhale)
From: Lew Pitcher
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 13:58 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 13:58:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <va7g6u$eggg$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me>
<uvbfii$3mom0$1@news.xmission.com> <20240412094809.811@kylheku.com>
<87il0mm94y.fsf@tudado.org> <way-20240413091747@ram.dialup.fu-berlin.de>
<87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45eq$3pkt9$1@dont-email.me>
<va4aut$3q4g0$1@dont-email.me> <va4fbr$3qvij$1@dont-email.me>
<va5108$3tmmd$1@dont-email.me> <va51ok$3tqr9$1@dont-email.me>
<va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me>
<d02d6ea1-e0d7-20b0-dbb1-e0af4b0960d2@example.net>
<va6s8b$ca7k$1@dont-email.me>
<21c056b1-240c-a682-7a43-4fd36b158e5a@example.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 22 Aug 2024 15:58:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="fd7dd1979d17c3d58736f14b1e644da1";
logging-data="475664"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18c0YYp0of84h2gV+xzcIhUTP7NnLBi9qs="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:xRIIsETz8acXBFWNdnqGPS1IGOE=
View all headers

Please forgive my interruption, but something in Muttley's comment needs
some clarification....

On Thu, 22 Aug 2024 15:11:33 +0200, D wrote:

> On Thu, 22 Aug 2024, Muttley@dastardlyhq.com wrote:
[snip]
>> For a properly designed language a container shouldn't be required. Using
>> a container to prevent library hell is like seeing a mess on your floor but
>> instead of clearing the mess you sweep it into seperate piles depending on
>> the type of rubbish. With C/C++ you can set LD_LIBRARY_PATH

1) The ability to alter the loader's library search path isn't a C/C++ feature,
but, instead, is a feature of the loader, and is applicable to /any/ binary
that uses "shared objects" ("DLL"s to those who came from a Windows environment).

2) LD_LIBRARY_PATH is not "the" Unix environment variable that alters the loader's
library search path. Rather, it is /one flavour/ of such an environment variable.
Depending on the Unix system, the environment variable can be called:
LD_LIBRARY_PATH, or
LIBPATH, or
SHLIB_PATH, and
there may be other names that I don't know of.

>> to use particular shared object files
>> but doing something similar with Python AFAIK is a hell of
>> a task.
>>
>
> Thank you! You make me feel less of an outsider and old timer! ;)

--
Lew Pitcher
"In Skills We Trust"

Subject: Re: Python (was Re: I did not inhale)
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 14:17 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 14:17:11 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <va7h97$f9fl$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me>
<uvbfii$3mom0$1@news.xmission.com> <20240412094809.811@kylheku.com>
<87il0mm94y.fsf@tudado.org> <way-20240413091747@ram.dialup.fu-berlin.de>
<87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45eq$3pkt9$1@dont-email.me>
<va4aut$3q4g0$1@dont-email.me> <va4fbr$3qvij$1@dont-email.me>
<va5108$3tmmd$1@dont-email.me> <va51ok$3tqr9$1@dont-email.me>
<va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me>
<d02d6ea1-e0d7-20b0-dbb1-e0af4b0960d2@example.net>
<va6s8b$ca7k$1@dont-email.me>
<21c056b1-240c-a682-7a43-4fd36b158e5a@example.net>
<va7g6u$eggg$1@dont-email.me>
Injection-Date: Thu, 22 Aug 2024 16:17:11 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="542601cbb14dae1cdedf2a9298683fa1";
logging-data="501237"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180l3iZWbp/RiV9rVeGaod3"
Cancel-Lock: sha1:NAMUUJpYDUQwUnHjopFsOhacW5o=
View all headers

On Thu, 22 Aug 2024 13:58:54 -0000 (UTC)
Lew Pitcher <lew.pitcher@digitalfreehold.ca> boringly babbled:
>Please forgive my interruption, but something in Muttley's comment needs
>some clarification....
>>> For a properly designed language a container shouldn't be required. Using
>>> a container to prevent library hell is like seeing a mess on your floor but
>>> instead of clearing the mess you sweep it into seperate piles depending on
>>> the type of rubbish. With C/C++ you can set LD_LIBRARY_PATH
>
>1) The ability to alter the loader's library search path isn't a C/C++ feature,
>
> but, instead, is a feature of the loader, and is applicable to /any/ binary
> that uses "shared objects" ("DLL"s to those who came from a Windows
>environment).

Sure, but the vast majority of *nix binaries will have been written in C or C++.

> Depending on the Unix system, the environment variable can be called:
> LD_LIBRARY_PATH, or

Works on Linux, BSD and Solaris so cover most bases.

> LIBPATH, or
> SHLIB_PATH, and
> there may be other names that I don't know of.

Point is the path to load dynamic libraries from can be switched very
easily and requires no changes to the system (other than installing the
alternate libs in the first place).

Subject: Re: Python (was Re: I did not inhale)
From: Kaz Kylheku
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 15:28 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 15:28:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <20240822082202.318@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me>
<uvbfii$3mom0$1@news.xmission.com> <20240412094809.811@kylheku.com>
<87il0mm94y.fsf@tudado.org> <way-20240413091747@ram.dialup.fu-berlin.de>
<87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me>
<va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me>
<va75ob$dfb0$2@dont-email.me> <va77gb$dr7n$1@dont-email.me>
Injection-Date: Thu, 22 Aug 2024 17:28:32 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="90d9ee9f577d3e1dd330bc58c9f42403";
logging-data="519416"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KHNd6mUNwcx8VoHpWE3bGFcrmSYtgcwg="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:Mv8z537sFqny5zFnMt548NEJJFc=
View all headers

On 2024-08-22, Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> wrote:
> On 2024-08-22 13:00, David Brown wrote:
>
>> Then there are those that - wisely or unwisely - program in C for
>> Windows, without POSIX.
>
> Yes, that is true. There is no reason to use POSIX under Windows,
> whatsoever.

David also wrote this, in the same comment:

>> It takes but one single counter-example to invalidate general claims
>> like this.

It applies to your reply as well.

There are excellent, excellent reasons to use POSIX under Windows.

Such as, oh, having an entire POSIX appliation ported to Windows
almost without lifting a finger.

For the TXR project I use a POSIX layer called Cygnal (see signature
below). It gives a decent Windows port which preserves most of the
functionality. All the POSIX stuff in the TXR Lisp standard library just
works. The interactive listener ("REPL") with history and editing just
works, right in your cmd.exe console.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Subject: Re: Python (was Re: I did not inhale)
From: Bart
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 15:56 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc@freeuk.com (Bart)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 16:56:55 +0100
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <va7n47$g5ck$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me>
<va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me>
<va75ob$dfb0$2@dont-email.me> <va77gb$dr7n$1@dont-email.me>
<20240822082202.318@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 22 Aug 2024 17:56:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="546f7a36e4e459fbaf8d49cd6ca25442";
logging-data="529812"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+S39sGMf4N77zXk9rX7Otz"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8SCSodxzV75ObggyL8j3EGD54BY=
Content-Language: en-GB
In-Reply-To: <20240822082202.318@kylheku.com>
View all headers

On 22/08/2024 16:28, Kaz Kylheku wrote:
> On 2024-08-22, Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> wrote:
>> On 2024-08-22 13:00, David Brown wrote:
>>
>>> Then there are those that - wisely or unwisely - program in C for
>>> Windows, without POSIX.
>>
>> Yes, that is true. There is no reason to use POSIX under Windows,
>> whatsoever.
>
> David also wrote this, in the same comment:
>
>>> It takes but one single counter-example to invalidate general claims
>>> like this.
>
> It applies to your reply as well.
>
> There are excellent, excellent reasons to use POSIX under Windows.
>
> Such as, oh, having an entire POSIX appliation ported to Windows
> almost without lifting a finger.
>
> For the TXR project I use a POSIX layer called Cygnal (see signature
> below). It gives a decent Windows port which preserves most of the
> functionality. All the POSIX stuff in the TXR Lisp standard library just
> works. The interactive listener ("REPL") with history and editing just
> works, right in your cmd.exe console.
>

You can use the same argument to justify using X11 under Windows.

(It's also not clear how well your product manages to use POSIX under
pure Windows, or whether you have to drag this other thing called 'CygWin'.

Can you write a normal Windows app and just call into a DLL called
posix.dll or is there an extra layer or two involved?)

Subject: Re: Python (was Re: I did not inhale)
From: Scott Lurndal
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 22 Aug 2024 16:31 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx48.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Python (was Re: I did not inhale)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
References: <uu54la$3su5b$6@dont-email.me> <v9m4gd$14scu$1@dont-email.me> <20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me> <v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me> <va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me> <va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me> <va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me> <va75ob$dfb0$2@dont-email.me> <va77gb$dr7n$1@dont-email.me> <20240822082202.318@kylheku.com> <va7n47$g5ck$1@dont-email.me>
Lines: 17
Message-ID: <oJJxO.113938$1w_2.94131@fx48.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Thu, 22 Aug 2024 16:31:16 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 22 Aug 2024 16:31:16 GMT
X-Received-Bytes: 1735
View all headers

Bart <bc@freeuk.com> writes:
>On 22/08/2024 16:28, Kaz Kylheku wrote:

>>
>> For the TXR project I use a POSIX layer called Cygnal (see signature
>> below). It gives a decent Windows port which preserves most of the
>> functionality. All the POSIX stuff in the TXR Lisp standard library just
>> works. The interactive listener ("REPL") with history and editing just
>> works, right in your cmd.exe console.
>>
>

>(It's also not clear how well your product manages to use POSIX under
>pure Windows, or whether you have to drag this other thing called 'CygWin'.

He specified in the paragraph to which you responded the posix
interposer he used.

Subject: Re: Python (was Re: I did not inhale)
From: Bart
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 16:55 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc@freeuk.com (Bart)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 17:55:45 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <va7qig$gnq2$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me>
<va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me>
<va75ob$dfb0$2@dont-email.me> <va77gb$dr7n$1@dont-email.me>
<20240822082202.318@kylheku.com> <va7n47$g5ck$1@dont-email.me>
<oJJxO.113938$1w_2.94131@fx48.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 22 Aug 2024 18:55:44 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="546f7a36e4e459fbaf8d49cd6ca25442";
logging-data="548674"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DVRGBqeRHYL36/jIdBCJ7"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:bB2JgZwsyrav6D5X6iwjSbV3nfs=
Content-Language: en-GB
In-Reply-To: <oJJxO.113938$1w_2.94131@fx48.iad>
View all headers

On 22/08/2024 17:31, Scott Lurndal wrote:
> Bart <bc@freeuk.com> writes:
>> On 22/08/2024 16:28, Kaz Kylheku wrote:
>
>>>
>>> For the TXR project I use a POSIX layer called Cygnal (see signature
>>> below). It gives a decent Windows port which preserves most of the
>>> functionality. All the POSIX stuff in the TXR Lisp standard library just
>>> works. The interactive listener ("REPL") with history and editing just
>>> works, right in your cmd.exe console.
>>>
>>
>
>> (It's also not clear how well your product manages to use POSIX under
>> pure Windows, or whether you have to drag this other thing called 'CygWin'.
>
> He specified in the paragraph to which you responded the posix
> interposer he used.

So this is only indirectly using POSIX under Windows.

Subject: Re: Python (was Re: I did not inhale)
From: Kaz Kylheku
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 17:36 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 17:36:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 96
Message-ID: <20240822102243.459@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me>
<uvbfii$3mom0$1@news.xmission.com> <20240412094809.811@kylheku.com>
<87il0mm94y.fsf@tudado.org> <way-20240413091747@ram.dialup.fu-berlin.de>
<87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me>
<va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me>
<va75ob$dfb0$2@dont-email.me> <va77gb$dr7n$1@dont-email.me>
<20240822082202.318@kylheku.com> <va7n47$g5ck$1@dont-email.me>
Injection-Date: Thu, 22 Aug 2024 19:36:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="90d9ee9f577d3e1dd330bc58c9f42403";
logging-data="556947"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rlYm8FLMOXS6trXcG3V9ZLpXztojna2Q="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:OY7zOZ3jM0bXHSjVodDfsqVxjTk=
View all headers

On 2024-08-22, Bart <bc@freeuk.com> wrote:
> On 22/08/2024 16:28, Kaz Kylheku wrote:
>> On 2024-08-22, Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> wrote:
>>> On 2024-08-22 13:00, David Brown wrote:
>>>
>>>> Then there are those that - wisely or unwisely - program in C for
>>>> Windows, without POSIX.
>>>
>>> Yes, that is true. There is no reason to use POSIX under Windows,
>>> whatsoever.
>>
>> David also wrote this, in the same comment:
>>
>>>> It takes but one single counter-example to invalidate general claims
>>>> like this.
>>
>> It applies to your reply as well.
>>
>> There are excellent, excellent reasons to use POSIX under Windows.
>>
>> Such as, oh, having an entire POSIX appliation ported to Windows
>> almost without lifting a finger.
>>
>> For the TXR project I use a POSIX layer called Cygnal (see signature
>> below). It gives a decent Windows port which preserves most of the
>> functionality. All the POSIX stuff in the TXR Lisp standard library just
>> works. The interactive listener ("REPL") with history and editing just
>> works, right in your cmd.exe console.
>>
>
> You can use the same argument to justify using X11 under Windows.

I could use a similar argument, but it would lack nuance.

Using X11 under Windows requires a server component, which is
somewhat clunky for a stand-alone application to carry.

X11 windows will not integrate nicely into the Windows desktop as
native windows with native widgets and behaviors.

Most POSIX stuff does translate nicely to the Windows environment, largely
because Windows was aped after Unix.

> (It's also not clear how well your product manages to use POSIX under
> pure Windows, or whether you have to drag this other thing called 'CygWin'.

It relies on a DLL, which is a modified/forked version of the Cygwin
DLL, named cygwin1.dll. This just sits in the same directory as the main
executable.

If you wrote a program with Microsoft Visual C, and dynamically linked
it to its run-time, you'd have the same thing: your executable and a
redistributable run-time.

The cygwin1.dll provides C stuff: malloc, printf, sin, cos, ...
Plus POSIX stuff: glob, ftw, fork, dup2, stat, tcgetattr, ...

> Can you write a normal Windows app and just call into a DLL called
> posix.dll or is there an extra layer or two involved?)

You can use Win32 calls (into kernel32.dll, user32.dll, ...) along side
all that stuff from cygwin1.dll, just like you can use Win32 calls in a
program linked to MSVC redistributable run-time.

Here is an example TXR Lisp program that I use for turning a laptop
monitor off. It's saved as "monitor-off.tl", where the .tl suffix
has the correct association that I can launch it by double clicking on
it.

The (usleep ...) call is implemented using POSIX functions.

(typedef HWND (cptr HWND))
(typedef UINT uint)
(typedef LPARAM long)
(typedef WPARAM ulong)

(defsymacro SC_MONITORPOWER #xF170)

(defsymacro WM_SYSCOMMAND #x0112)

(defsymacro MONITOR_OFF 2)

(defvarl HWND_BROADCAST (cptr-int -1 'HWND))

(with-dyn-lib "user32.dll"
(deffi PostMessage "PostMessageW"
int (HWND UINT WPARAM LPARAM)))

(usleep 2000000)

(PostMessage HWND_BROADCAST WM_SYSCOMMAND SC_MONITORPOWER MONITOR_OFF)

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Subject: Re: Python (was Re: I did not inhale)
From: Kaz Kylheku
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 17:38 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 17:38:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <20240822103622.714@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me>
<va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me>
<va75ob$dfb0$2@dont-email.me> <va77gb$dr7n$1@dont-email.me>
<20240822082202.318@kylheku.com> <va7n47$g5ck$1@dont-email.me>
<oJJxO.113938$1w_2.94131@fx48.iad> <va7qig$gnq2$1@dont-email.me>
Injection-Date: Thu, 22 Aug 2024 19:38:46 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="90d9ee9f577d3e1dd330bc58c9f42403";
logging-data="556947"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6SpcCH2O7hki/kHdzB7ROmkb/529LuyM="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:nocq8KA5/SOlCE5HU4rZkzDRWAM=
View all headers

On 2024-08-22, Bart <bc@freeuk.com> wrote:
> On 22/08/2024 17:31, Scott Lurndal wrote:
>> Bart <bc@freeuk.com> writes:
>>> On 22/08/2024 16:28, Kaz Kylheku wrote:
>>
>>>>
>>>> For the TXR project I use a POSIX layer called Cygnal (see signature
>>>> below). It gives a decent Windows port which preserves most of the
>>>> functionality. All the POSIX stuff in the TXR Lisp standard library just
>>>> works. The interactive listener ("REPL") with history and editing just
>>>> works, right in your cmd.exe console.
>>>>
>>>
>>
>>> (It's also not clear how well your product manages to use POSIX under
>>> pure Windows, or whether you have to drag this other thing called 'CygWin'.
>>
>> He specified in the paragraph to which you responded the posix
>> interposer he used.
>
> So this is only indirectly using POSIX under Windows.

That is correct; the Microsoft POSIX subsystem isn't used, if that's
what you mean by "direct".

It's not designed to be usable, as far as I know.

POSIX is an interface specification which can be implemented on top
of Win32 calls. If you have that, then many POSIX programs work without
modification or without a lot of modification.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Subject: Re: Python (was Re: I did not inhale)
From: Scott Lurndal
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 22 Aug 2024 17:47 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx10.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Python (was Re: I did not inhale)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
References: <uu54la$3su5b$6@dont-email.me> <20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me> <v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me> <va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me> <va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me> <va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me> <va75ob$dfb0$2@dont-email.me> <va77gb$dr7n$1@dont-email.me> <20240822082202.318@kylheku.com> <va7n47$g5ck$1@dont-email.me> <20240822102243.459@kylheku.com>
Lines: 42
Message-ID: <hRKxO.490261$gJuc.434389@fx10.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Thu, 22 Aug 2024 17:47:57 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 22 Aug 2024 17:47:57 GMT
X-Received-Bytes: 2721
View all headers

Kaz Kylheku <643-408-1753@kylheku.com> writes:
>On 2024-08-22, Bart <bc@freeuk.com> wrote:
>> On 22/08/2024 16:28, Kaz Kylheku wrote:
>>> On 2024-08-22, Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> wrote:
>>>> On 2024-08-22 13:00, David Brown wrote:
>>>>
>>>>> Then there are those that - wisely or unwisely - program in C for
>>>>> Windows, without POSIX.
>>>>
>>>> Yes, that is true. There is no reason to use POSIX under Windows,
>>>> whatsoever.
>>>
>>> David also wrote this, in the same comment:
>>>
>>>>> It takes but one single counter-example to invalidate general claims
>>>>> like this.
>>>
>>> It applies to your reply as well.
>>>
>>> There are excellent, excellent reasons to use POSIX under Windows.
>>>
>>> Such as, oh, having an entire POSIX appliation ported to Windows
>>> almost without lifting a finger.
>>>
>>> For the TXR project I use a POSIX layer called Cygnal (see signature
>>> below). It gives a decent Windows port which preserves most of the
>>> functionality. All the POSIX stuff in the TXR Lisp standard library just
>>> works. The interactive listener ("REPL") with history and editing just
>>> works, right in your cmd.exe console.
>>>
>>
>> You can use the same argument to justify using X11 under Windows.
>
>I could use a similar argument, but it would lack nuance.
>
>Using X11 under Windows requires a server component, which is
>somewhat clunky for a stand-alone application to carry.

To be fair, the server component can be anywhere on the
local area network - windows-based x11 clients may attach to
a remote DISPLAY (perhaps a linux box, for example).

Subject: Re: Python (was Re: I did not inhale)
From: Kaz Kylheku
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 17:48 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 17:48:03 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <20240822104049.378@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me>
<va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me>
<va75ob$dfb0$2@dont-email.me> <va77gb$dr7n$1@dont-email.me>
<20240822082202.318@kylheku.com> <va7n47$g5ck$1@dont-email.me>
<oJJxO.113938$1w_2.94131@fx48.iad> <va7qig$gnq2$1@dont-email.me>
<20240822103622.714@kylheku.com>
Injection-Date: Thu, 22 Aug 2024 19:48:03 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="90d9ee9f577d3e1dd330bc58c9f42403";
logging-data="562027"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187A4I0/keoWvaLbDgMe1wgd62bLJDpQN4="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:/ZDRVaQosg178Sd0U+U6J9LVDcU=
View all headers

On 2024-08-22, Kaz Kylheku <643-408-1753@kylheku.com> wrote:
> On 2024-08-22, Bart <bc@freeuk.com> wrote:
>> So this is only indirectly using POSIX under Windows.
>
> That is correct; the Microsoft POSIX subsystem isn't used, if that's
> what you mean by "direct".
>
> It's not designed to be usable, as far as I know.

The Wikipedia has info about this:

https://en.wikipedia.org/wiki/Microsoft_POSIX_subsystem

Over the years, Microsoft shipped different "POSIX-on-Windows"
solutions, making them a moving target.

You cannot rely on any of these, not only because of the moving
target nature, but because of various drawbacks.

None of them are useful when what you want either of these:

- port a POSIX program such that it's a native Windows application,
not requiring any special environment or subsystem.

- develop a native Windows application which uses POSIX interfaces to
interact with the host system as much as possible.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Subject: Re: Python (was Re: I did not inhale)
From: Dmitry A. Kazakov
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 18:28 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 20:28:09 +0200
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <va7vvo$hgtl$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me>
<va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me>
<va75ob$dfb0$2@dont-email.me> <va77gb$dr7n$1@dont-email.me>
<20240822082202.318@kylheku.com> <va7n47$g5ck$1@dont-email.me>
<20240822102243.459@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 22 Aug 2024 20:28:08 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3514965773929b21e70a1a8916e1020d";
logging-data="574389"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18MxfxY8vAgxCvBZov1lnacpdn1eaBRZC8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:nn7bye2WOKbOMAUXCdjsgEsLvxs=
Content-Language: en-US
In-Reply-To: <20240822102243.459@kylheku.com>
View all headers

On 2024-08-22 19:36, Kaz Kylheku wrote:

> X11 windows will not integrate nicely into the Windows desktop as
> native windows with native widgets and behaviors.

MobaXterm does a decent job actually. I am using it for years to access
Linux GUI applications from Windows. Even such monstrosity as Firefox works!

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Subject: Re: Python (was Re: I did not inhale)
From: Dmitry A. Kazakov
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 18:28 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 20:28:30 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <va800d$hgtl$2@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me>
<va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me>
<va75ob$dfb0$2@dont-email.me> <va77gb$dr7n$1@dont-email.me>
<20240822082202.318@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 22 Aug 2024 20:28:29 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3514965773929b21e70a1a8916e1020d";
logging-data="574389"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uxO5y7qcCaHqJCrNBiPvYNeSJbFTDt+U="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Ne7cd86+O/EFhgUqo5A3mOy6qMk=
Content-Language: en-US
In-Reply-To: <20240822082202.318@kylheku.com>
View all headers

On 2024-08-22 17:28, Kaz Kylheku wrote:

> Such as, oh, having an entire POSIX appliation ported to Windows
> almost without lifting a finger.

It presumes that your application is already limited to POSIX.

In the scenario of designing a portable application there are more
comprehensive choices, e.g. glib (and other parts of GTK).

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Subject: Re: Python (was Re: I did not inhale)
From: Kaz Kylheku
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 22 Aug 2024 18:54 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Thu, 22 Aug 2024 18:54:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <20240822114044.534@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me>
<uvbfii$3mom0$1@news.xmission.com> <20240412094809.811@kylheku.com>
<87il0mm94y.fsf@tudado.org> <way-20240413091747@ram.dialup.fu-berlin.de>
<87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me>
<va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me>
<va75ob$dfb0$2@dont-email.me> <va77gb$dr7n$1@dont-email.me>
<20240822082202.318@kylheku.com> <va800d$hgtl$2@dont-email.me>
Injection-Date: Thu, 22 Aug 2024 20:54:40 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="90d9ee9f577d3e1dd330bc58c9f42403";
logging-data="562027"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX189XmPaDhAAjmEOMmrAwvT9Xp4xOofSGDk="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:955kGDh85npI1Ol3D0EQZPL7g/4=
View all headers

On 2024-08-22, Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> wrote:
> On 2024-08-22 17:28, Kaz Kylheku wrote:
>
>> Such as, oh, having an entire POSIX appliation ported to Windows
>> almost without lifting a finger.
>
> It presumes that your application is already limited to POSIX.
>
> In the scenario of designing a portable application there are more
> comprehensive choices, e.g. glib (and other parts of GTK).

Glib is something you might use in conjunction with POSIX.
It does not have API/feature parity with POSIX.

If you have a POSIX + Glib application, chances are good you can easily
port it to Windows using Cygnal. You can ship it standalone by bundling
it with the cygwin1.dll from Cygnal, and the glib library from Cygwin.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Subject: Re: Python (was Re: I did not inhale)
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 23 Aug 2024 00:15 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 23 Aug 2024 00:15:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <va8kah$ka4q$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me>
<va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me>
<va75ob$dfb0$2@dont-email.me> <va77gb$dr7n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 23 Aug 2024 02:15:14 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="85ffc3be8faa109d14882a5f227069d6";
logging-data="665754"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ViKVQfhm9NEFMAqMztqMb"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:cAVnByw3yPvAlWLRqR/Z2FBQsWc=
View all headers

On Thu, 22 Aug 2024 13:30:19 +0200, Dmitry A. Kazakov wrote:

> On 2024-08-22 13:00, David Brown wrote:
>
>> Then there are those that - wisely or unwisely - program in C for
>> Windows, without POSIX.
>
> Yes, that is true. There is no reason to use POSIX under Windows,
> whatsoever.

That’s strange. Didn’t Microsoft tout the POSIX compatibility of Windows
to its US Government customers?

Subject: Re: Python (was Re: I did not inhale)
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 23 Aug 2024 00:19 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 23 Aug 2024 00:19:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <va8kim$ka4q$2@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45eq$3pkt9$1@dont-email.me>
<va4aut$3q4g0$1@dont-email.me> <va4fbr$3qvij$1@dont-email.me>
<va5108$3tmmd$1@dont-email.me> <va51ok$3tqr9$1@dont-email.me>
<va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me>
<va6rpa$c6bg$1@dont-email.me> <va6uqg$clga$1@dont-email.me>
<va74vk$dfb0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 23 Aug 2024 02:19:35 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="85ffc3be8faa109d14882a5f227069d6";
logging-data="665754"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/H3hmXASa6cXgD9F9bmOpr"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:U13n37vHX/Mp4mD6Q3sVRJwNwCM=
View all headers

On Thu, 22 Aug 2024 12:47:16 +0200, David Brown wrote:

> On 22/08/2024 11:02, Lawrence D'Oliveiro wrote:
>>
>> Python prohibits those space/tab inconsistencies.
>>
> No, it does not. Python treats tabs (at the start of lines, which is
> the only relevant point here) as 8 spaces by default. You can change
> that with command-line flags if you want. But it is quite happy with
> mixtures of tabs and spaces as long as the result after tab-to-space
> conversion is consistent with Python syntax.

src = \
"""
def fun() :
\t\tprint("line 1")
\t\x20\x20\x20\x20\x20\x20\x20\x20print("line 2")

fun()
"""

exec(src)

Output:

TabError: inconsistent use of tabs and spaces in indentation

Subject: Re: Python (was Re: I did not inhale)
From: David Brown
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 23 Aug 2024 07:19 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 23 Aug 2024 09:19:06 +0200
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <va9d5a$qobt$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45eq$3pkt9$1@dont-email.me>
<va4aut$3q4g0$1@dont-email.me> <va4fbr$3qvij$1@dont-email.me>
<va5108$3tmmd$1@dont-email.me> <va51ok$3tqr9$1@dont-email.me>
<va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me>
<va6rpa$c6bg$1@dont-email.me> <va6uqg$clga$1@dont-email.me>
<va74vk$dfb0$1@dont-email.me> <va8kim$ka4q$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 23 Aug 2024 09:19:07 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="edca87e576d404b60d06ae6a1baeda30";
logging-data="876925"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UPFza/tLduzrVpOo/Lm0997N4QHO11Xw="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:MyQJQPke5Vxyk8AMZn4OJ8yfeAg=
Content-Language: en-GB
In-Reply-To: <va8kim$ka4q$2@dont-email.me>
View all headers

On 23/08/2024 02:19, Lawrence D'Oliveiro wrote:
> On Thu, 22 Aug 2024 12:47:16 +0200, David Brown wrote:
>
>> On 22/08/2024 11:02, Lawrence D'Oliveiro wrote:
>>>
>>> Python prohibits those space/tab inconsistencies.
>>>
>> No, it does not. Python treats tabs (at the start of lines, which is
>> the only relevant point here) as 8 spaces by default. You can change
>> that with command-line flags if you want. But it is quite happy with
>> mixtures of tabs and spaces as long as the result after tab-to-space
>> conversion is consistent with Python syntax.
>
> src = \
> """
> def fun() :
> \t\tprint("line 1")
> \t\x20\x20\x20\x20\x20\x20\x20\x20print("line 2")
>
> fun()
> """
>
> exec(src)
>
> Output:
>
> TabError: inconsistent use of tabs and spaces in indentation

src = \
"""
def fun() :
\t\x20\x20\x20\x20\x20\x20\x20\x20print("line 1")
\t\x20\x20\x20\x20\x20\x20\x20\x20print("line 2")

fun()
"""

Mixtures of tabs and spaces are accepted without complaint.

But you are right that some of the worst or most dangerous cases are
rejected by Python. Python 3 is stricter here than Python 2 was, and
much of my long-term code is Python 2.

(The incompatibilities between Python 2 and Python 3 are another pain in
Python. Equally, however, it avoids the pain seen in C and C++ where
backwards compatibility can limit new features and force poor features
to remain valid.)

Subject: Re: Python (was Re: I did not inhale)
From: David Brown
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 23 Aug 2024 07:33 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 23 Aug 2024 09:33:08 +0200
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <va9dvk$qobt$2@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45gv$3pilh$1@dont-email.me>
<va4b0i$3q4g0$2@dont-email.me> <va5u2q$1uhn$3@dont-email.me>
<va75ob$dfb0$2@dont-email.me> <va77gb$dr7n$1@dont-email.me>
<va8kah$ka4q$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 23 Aug 2024 09:33:08 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="edca87e576d404b60d06ae6a1baeda30";
logging-data="876925"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tksMvZnHmNH7iqiZTHfxk3Hr03Cicz2c="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:zeSorZj0QEuuwQXJeESil7UO/UY=
In-Reply-To: <va8kah$ka4q$1@dont-email.me>
Content-Language: en-GB
View all headers

On 23/08/2024 02:15, Lawrence D'Oliveiro wrote:
> On Thu, 22 Aug 2024 13:30:19 +0200, Dmitry A. Kazakov wrote:
>
>> On 2024-08-22 13:00, David Brown wrote:
>>
>>> Then there are those that - wisely or unwisely - program in C for
>>> Windows, without POSIX.
>>
>> Yes, that is true. There is no reason to use POSIX under Windows,
>> whatsoever.
>
> That’s strange. Didn’t Microsoft tout the POSIX compatibility of Windows
> to its US Government customers?

Yes - that's /exactly/ why Windows NT was designed with a POSIX subsystem.

The original plan (I remember a fine magazine article about it in the
mid nineties) was that you'd have the NT kernel and GUI (copied from
Windows 3 at the time) and multiple "personalities" or interfaces,
including POSIX, Win32, Win32s, Win16, and OS/2. Other operating
systems would have similar possibilities - OS/2 certainly had OS/2,
Win16 and Win32s. That way customers could choose there OS and their
apps independently, there would be no vendor lock-in, and the US
Government could buy Windows.

Prototypes were made, big contracts were signed, NT was granted the
required US Government certifications (even security certifications - as
long as the floppy drive was removed, there was no network port, the
serial ports were blocked up, and the computer was in a secure room with
no external connections).

Then the NT POSIX subsystem was minimised and hidden, the OS/2 interface
was never implemented, and Win32s was changed so that new Win32s apps
would not run on OS/2. The Microsoft pretence of compatibility and
vendor independence let them add new markets to their monopoly.

Subject: Re: Python (was Re: I did not inhale)
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 23 Aug 2024 08:29 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 23 Aug 2024 08:29:41 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <va9h9k$rlrn$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de> <87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me> <va45eq$3pkt9$1@dont-email.me>
<va4aut$3q4g0$1@dont-email.me> <va4fbr$3qvij$1@dont-email.me>
<va5108$3tmmd$1@dont-email.me> <va51ok$3tqr9$1@dont-email.me>
<va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me>
<va6rpa$c6bg$1@dont-email.me> <va6uqg$clga$1@dont-email.me>
<va74vk$dfb0$1@dont-email.me> <va8kim$ka4q$2@dont-email.me>
<va9d5a$qobt$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 23 Aug 2024 10:29:41 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d1d06bc57401ad85605fe276b9a12115";
logging-data="907127"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TL3a0YeunRHjLxxdneT+A"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:iIc/e3xChWLGJjtIxWK11Tm2xqw=
View all headers

On Fri, 23 Aug 2024 09:19:06 +0200, David Brown wrote:

> On 23/08/2024 02:19, Lawrence D'Oliveiro wrote:
>
>> On Thu, 22 Aug 2024 12:47:16 +0200, David Brown wrote:
>>
>>> But it is quite happy with
>>> mixtures of tabs and spaces as long as the result after tab-to-space
>>> conversion is consistent with Python syntax.
>
> Mixtures of tabs and spaces are accepted without complaint.

I understood you to mean that different mixtures of tabs and spaces would
work, so long as they were equivalent to the same indentation under the 8-
spaces = 1 tab rule that you cited.

In fact there is no such equivalence rule. Tabs are tabs, and spaces are
spaces, and never the twain shall be interconvertible.

> (The incompatibilities between Python 2 and Python 3 are another pain in
> Python.

The fundamental problem was that Unicode was a mess in Python 2 that
needed to be cleaned up. Since they had no choice but to break backward
compatibility in that regard, they figured they would fix a few other
things while they were at it.

Pages:1234567891011

rocksolid light 0.9.8
clearnet tor