Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Big book, big bore. -- Callimachus


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: I did not inhale
From: Kalevi Kolttonen
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Thu, 15 Aug 2024 19:48 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kalevi@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: I did not inhale
Date: Thu, 15 Aug 2024 19:48:36 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <v9lm2k$12qhv$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com> <g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk> <uvbe3m$2cun7$1@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>
Injection-Date: Thu, 15 Aug 2024 21:48:36 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a2d369a82841af17ea535fc3f28ea37f";
logging-data="1141311"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18X8fV5OPjxVyY6ilH8f0F2ZTuxlLZKx5s="
User-Agent: tin/2.6.3-20231224 ("Banff") (Linux/6.10.3-200.fc40.x86_64 (x86_64))
Cancel-Lock: sha1:EY7FrQjgBCl09iFjld+G/kCY3Ig=
View all headers

In comp.unix.programmer Stefan Ram <ram@zedat.fu-berlin.de> wrote:
> Sometimes, there seem to be some choices how to do something in
> Python.

Of course. The slogan is just, well, a slogan, not to
be taken 100% literally. For example, there are almost
always some choices to be made whether to use
object-oriented features or not.

Some years ago I wrote a simple but useful Python
script for searching eBay items. It is so
simple that no classes are really necessary, one
could use just dictionaries/hashes instead. But for
some sanity, I think I used a class or two to
make things a bit better organized and self-documenting.

The last I checked, the O'Reilly Python book is just
absolutely *MASSIVE*. The language has a huge number
of features now and it is pretty obvious that choosing
which ones to use can be a matter of preference. So
there is no "One True Way" to choose.

I guess this is not much different from C++ which proclaims
to be multi-paradigm, but nobody ever uses the immense
full feature set. I've been told that all serious
C++ programming teams stick to a subset of features
that are allowed to be used.

br,
KK

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, 15 Aug 2024 23:54 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
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, 15 Aug 2024 23:54:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <v9m4gd$14scu$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me>
<20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Aug 2024 01:54:53 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="fe72d36c65c5a55eac1ba2ec475c4532";
logging-data="1208734"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19DvRna3Pvv7ghTFcYWBG/E"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:A2KjJICF+ihZ5ZM5Q/n/HYhxwVg=
View all headers

On Thu, 15 Aug 2024 19:48:36 -0000 (UTC), Kalevi Kolttonen wrote:

> The last I checked, the O'Reilly Python book is just absolutely
> *MASSIVE*. The language has a huge number of features now ...

No, it hasn’t. The core language reference spec is only a small fraction
of, say, the Java language spec.

It’s just that you can do so many things with Python. And that is down to
the huge variety of off-the-shelf addon libraries that build on that core
language spec. It has to be a strong, very solidly founded core in order
to be such a versatile basis for these addons, and it is.

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: Fri, 16 Aug 2024 01:30 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
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: Fri, 16 Aug 2024 01:30:36 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <20240815182717.189@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me>
<20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Aug 2024 03:30:36 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="48294c20dad4b311beeb7b4ad6c2d0f4";
logging-data="1230652"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SVrTdPSUTJ9O/1qE2zI1OzbIOgDlP8Oo="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:pNCP2AxytunhYC9tI+x+U1857FI=
View all headers

On 2024-08-15, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Thu, 15 Aug 2024 19:48:36 -0000 (UTC), Kalevi Kolttonen wrote:
>
>> The last I checked, the O'Reilly Python book is just absolutely
>> *MASSIVE*. The language has a huge number of features now ...
>
> No, it hasn’t. The core language reference spec is only a small fraction
> of, say, the Java language spec.
>
> It’s just that you can do so many things with Python. And that is down to
> the huge variety of off-the-shelf addon libraries that build on that core
> language spec. It has to be a strong, very solidly founded core in order
> to be such a versatile basis for these addons, and it is.

That's idiotic; you're saying that the standard library packages of
Python are not part of Python, and do not contribute to its size.

--
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: Kalevi Kolttonen
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 16 Aug 2024 14:57 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kalevi@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 16 Aug 2024 14:57:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <v9npcb$1fic3$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com> <g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk> <uvbe3m$2cun7$1@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Aug 2024 16:57:16 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="bce7b4691869b86b4485d1759c5d950a";
logging-data="1558915"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX189VFAWfVWM9LYV7QH3547uiI8YJr+BMUQ="
User-Agent: tin/2.6.3-20231224 ("Banff") (Linux/6.10.3-200.fc40.x86_64 (x86_64))
Cancel-Lock: sha1:NlcpZkh8KDuMbLgosZhSqH9p1Ec=
View all headers

In comp.unix.programmer Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Thu, 15 Aug 2024 19:48:36 -0000 (UTC), Kalevi Kolttonen wrote:
>
>> The last I checked, the O'Reilly Python book is just absolutely
>> *MASSIVE*. The language has a huge number of features now ...
>
> No, it hasn’t. The core language reference spec is only a small fraction
> of, say, the Java language spec.

Okay. I must confess that just seeing the book's size discouraged
me from buying or reading it. Programming Python, 4th Edition by
O'Reilly has whopping 1628 pages! This has to be one of the longest
programming books ever published.

> It’s just that you can do so many things with Python. And that is down to
> the huge variety of off-the-shelf addon libraries that build on that core
> language spec. It has to be a strong, very solidly founded core in order
> to be such a versatile basis for these addons, and it is.

So are you saying that most of the 1628 pages describe libraries
instead of the core language?

br,
KK

Subject: Re: Python (was Re: I did not inhale)
From: Kalevi Kolttonen
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 16 Aug 2024 15:02 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kalevi@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 16 Aug 2024 15:02:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <v9npls$1fjus$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com> <g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk> <uvbe3m$2cun7$1@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Aug 2024 17:02:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="bce7b4691869b86b4485d1759c5d950a";
logging-data="1560540"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GRK6w7JTwObG1CeghhGSltjj3X/66XnI="
User-Agent: tin/2.6.3-20231224 ("Banff") (Linux/6.10.3-200.fc40.x86_64 (x86_64))
Cancel-Lock: sha1:An5qftvSIvr4xDUrEqLO7VdEIf0=
View all headers

In comp.unix.programmer Kaz Kylheku <643-408-1753@kylheku.com> wrote:
> On 2024-08-15, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>> On Thu, 15 Aug 2024 19:48:36 -0000 (UTC), Kalevi Kolttonen wrote:
>>
>>> The last I checked, the O'Reilly Python book is just absolutely
>>> *MASSIVE*. The language has a huge number of features now ...
>>
>> No, it hasn’t. The core language reference spec is only a small fraction
>> of, say, the Java language spec.
>>
>> It’s just that you can do so many things with Python. And that is down to
>> the huge variety of off-the-shelf addon libraries that build on that core
>> language spec. It has to be a strong, very solidly founded core in order
>> to be such a versatile basis for these addons, and it is.
>
> That's idiotic; you're saying that the standard library packages of
> Python are not part of Python, and do not contribute to its size.

You seem to have a point. The core of C language is also small. I
guess they even said in the original K & R book that C is a small
language best described by a small book.

But in order to do anything with C, you need to know the standard
libraries. They have grown bigger and bigger during all these
years. One could also well argue that to program on UNIX, you also
need to know all the POSIX libraries.

So it is indeed a vague question of what belongs in given programming
languages.

br,
KK

Subject: Re: Python (was Re: I did not inhale)
From: John Ames
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 16 Aug 2024 16:37 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: commodorejohn@gmail.com (John Ames)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 16 Aug 2024 09:37:40 -0700
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <20240816093740.00000ce7@gmail.com>
References: <uu54la$3su5b$6@dont-email.me>
<20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 16 Aug 2024 18:37:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="faa531695052e77652ded83b8a8854ae";
logging-data="1587309"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/b0RMX85gqbBxScNbAB5Jz5LrefYZbyDM="
Cancel-Lock: sha1:PE0Ahk5Yh6JOkRWiHYvX+Dr0FXU=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
View all headers

On Fri, 16 Aug 2024 15:02:20 -0000 (UTC)
kalevi@kolttonen.fi (Kalevi Kolttonen) wrote:

> You seem to have a point. The core of C language is also small. I
> guess they even said in the original K & R book that C is a small
> language best described by a small book.
>
> But in order to do anything with C, you need to know the standard
> libraries. They have grown bigger and bigger during all these
> years. One could also well argue that to program on UNIX, you also
> need to know all the POSIX libraries.

What you *need* is also very much dependent on what you need to *do.*
If all you're doing is batch-munging of files in some basic format,
f'rexample, you don't particularly need to delve into POSIX esoterica
or some whiz-bang Python bolt-on for frobbing the servos on a lunar
probe while generating novel text from cosmic background radiation; you
certainly can if you want to, but stdlib or the Python equivalent will
get you there just fine.

Subject: Re: Python (was Re: I did not inhale)
From: Stefan Ram
Newsgroups: comp.lang.misc
Organization: Stefan Ram
Date: Fri, 16 Aug 2024 20:03 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: 16 Aug 2024 20:03:06 GMT
Organization: Stefan Ram
Lines: 19
Expires: 1 Jul 2025 11:59:58 GMT
Message-ID: <book-20240816210114@ram.dialup.fu-berlin.de>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com> <g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk> <uvbe3m$2cun7$1@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> <v9npcb$1fic3$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 9Gw5s4jmKy7UubIp0iJgzQtt/THZvXqP0NcDO19D00mwgW
Cancel-Lock: sha1:CRcrLQHmMCyrH4pST+Z1kllblIU= sha256:PowPnmhIHAhtBgjxvMoxFGUw5uDFybSuvD85TZnwupw=
X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
View all headers

kalevi@kolttonen.fi (Kalevi Kolttonen) wrote or quoted:
>Okay. I must confess that just seeing the book's size discouraged
>me from buying or reading it. Programming Python, 4th Edition by
>O'Reilly has whopping 1628 pages! This has to be one of the longest
>programming books ever published.

I think the book market offers Python books large and small for
people to choose according to their taste.

You chose to focus on a book that does not please you because
it's too large. Well, you could as well have chosen a tiny
Python book and say it's too small! So your comment is more
a criticism of your own choice of focus than of that book.

>So are you saying that most of the 1628 pages describe libraries
>instead of the core language?

Well, I don't know that specific book, and so I cannot report
its contents. But I don't think its author is named "O'Reilly".

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, 16 Aug 2024 23:27 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
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, 16 Aug 2024 23:27:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <v9on8m$1jpc9$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me>
<20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
<v9npcb$1fic3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 17 Aug 2024 01:27:18 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2f6569ba74567209943555c21330457a";
logging-data="1697161"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dnG17LVSJQgqW2MMrhb5q"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:ak6Gx6CFS/qcd+HNV9yc7XsO2GI=
View all headers

On Fri, 16 Aug 2024 14:57:15 -0000 (UTC), Kalevi Kolttonen wrote:

> So are you saying that most of the 1628 pages describe libraries instead
> of the core language?

I haven’t seen the book, but I would say most definitely. A good book
would not just describe the libraries, but also how to use them
effectively.

There’s a decent amount in the standard Python libraries, but even more so
in the huge number of third-party libraries. This is all part of the
“batteries included” Python philosophy.

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: Sat, 17 Aug 2024 01:01 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
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: Sat, 17 Aug 2024 01:01:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <20240816175703.851@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me>
<20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
<v9npcb$1fic3$1@dont-email.me> <v9on8m$1jpc9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 17 Aug 2024 03:01:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9b6a44e965425d209ca04eabf0f252d5";
logging-data="1718174"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18sGe9kU60XcXeTRR9lZla+n7TF3u7CAfw="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:bKOz4Sc4rMImpFTw9b7WwUHlZzs=
View all headers

On 2024-08-16, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> There’s a decent amount in the standard Python libraries, but even more so
> in the huge number of third-party libraries. This is all part of the
> “batteries included” Python philosophy.

You can have all the batteries-included philosphy in the world, if the
developers don't come to create all those libraries.

Likewise, you can be set against "batteries included", yet be able to do
nothing to stop an army of developers creating a package ecosystem.

Philosophy does dick all, basically.

Many current tools are structured completely contrary to the original
philosophy behind their creation. Things that were supposed to be
simple and small are anything but.

People will crap on your worthless philosophy and do whatever they want.

--
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: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Sat, 17 Aug 2024 09:01 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
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: Sat, 17 Aug 2024 09:01:01 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <v9posc$1rpdj$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com> <g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk> <uvbe3m$2cun7$1@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>
Content-Type: text/plain; charset=UTF-8
Injection-Date: Sat, 17 Aug 2024 11:01:01 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c7a06326aa8960336e23b83fe6da4a48";
logging-data="1959347"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tWqGlQsEWF02t4zaVC8oV"
Cancel-Lock: sha1:OiWrBm4h8v9FAaCpdkuXx3Z5oPU=
View all headers

On Fri, 16 Aug 2024 15:02:20 -0000 (UTC)
kalevi@kolttonen.fi (Kalevi Kolttonen) gabbled:
>So it is indeed a vague question of what belongs in given programming
>languages.

Indeed. And this gives rise to inconsistency. Why is threading now considered
a core part of C++ but multi process isn't? Perhaps because Windows is hopeless
at the latter in user space but it could just be personal preference within the
C++ steering committee, who knows.

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: Sat, 17 Aug 2024 09:18 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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: Sat, 17 Aug 2024 11:18:43 +0200
Organization: i2pn2 (i2pn.org)
Message-ID: <a86dd530-4ab3-5d39-bce4-2c734166cea4@example.net>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com> <g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk> <uvbe3m$2cun7$1@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>
<20240816093740.00000ce7@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Injection-Info: i2pn2.org;
logging-data="2875529"; mail-complaints-to="usenet@i2pn2.org";
posting-account="w/4CleFT0XZ6XfSuRJzIySLIA6ECskkHxKUAYDZM66M";
In-Reply-To: <20240816093740.00000ce7@gmail.com>
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

On Fri, 16 Aug 2024, John Ames wrote:

> On Fri, 16 Aug 2024 15:02:20 -0000 (UTC)
> kalevi@kolttonen.fi (Kalevi Kolttonen) wrote:
>
>> You seem to have a point. The core of C language is also small. I
>> guess they even said in the original K & R book that C is a small
>> language best described by a small book.
>>
>> But in order to do anything with C, you need to know the standard
>> libraries. They have grown bigger and bigger during all these
>> years. One could also well argue that to program on UNIX, you also
>> need to know all the POSIX libraries.
>
> What you *need* is also very much dependent on what you need to *do.*
> If all you're doing is batch-munging of files in some basic format,
> f'rexample, you don't particularly need to delve into POSIX esoterica
> or some whiz-bang Python bolt-on for frobbing the servos on a lunar
> probe while generating novel text from cosmic background radiation; you
> certainly can if you want to, but stdlib or the Python equivalent will
> get you there just fine.
>

I have used bash for those use cases, and one benefit of that is that
script from 10 or 15 years ago still work without any problems at all.

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: Sat, 17 Aug 2024 10:58 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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: Sat, 17 Aug 2024 12:58:31 +0200
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <v9pvoo$1sn55$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
<v9posc$1rpdj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 17 Aug 2024 12:58:32 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="28c18ec6aadf81704bc50b1fc04ad48e";
logging-data="1989797"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ztqjbACVY/oHgTCOIrL0C8Z3FBKERLT4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Wdm2A/BvcTKjI7IGND/I2t79EHY=
Content-Language: en-US
In-Reply-To: <v9posc$1rpdj$1@dont-email.me>
View all headers

On 2024-08-17 11:01, Muttley@dastardlyhq.com wrote:
> On Fri, 16 Aug 2024 15:02:20 -0000 (UTC)
> kalevi@kolttonen.fi (Kalevi Kolttonen) gabbled:
>> So it is indeed a vague question of what belongs in given programming
>> languages.
>
> Indeed. And this gives rise to inconsistency. Why is threading now considered
> a core part of C++ but multi process isn't? Perhaps because Windows is hopeless
> at the latter in user space but it could just be personal preference within the
> C++ steering committee, who knows.

Windows inter-process API are far more advanced than what UNIX ever had.
It would be enough to mention famous file locks. These days Linux has
futex + file mapping. So, finally, you can create a system-wide mutex.
Which under Windows is a single API call.
The reason why processes are not included is that they are used to deal
with some OS or design flaw that forces you to spawn some script or
application. Then real-time embedded applications may have no processes
at all.

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

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: Sat, 17 Aug 2024 21:51 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!.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: Sat, 17 Aug 2024 21:51:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <v9r60h$2289h$2@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me>
<20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
<v9posc$1rpdj$1@dont-email.me> <v9pvoo$1sn55$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 17 Aug 2024 23:51:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f9711f9f0a131a300f64863e67c48532";
logging-data="2171185"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+fCy6WB+za4tH1GJH7jt9j"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:bAvZS0Oa4Wc2EGmbwBOrvBRQFPg=
View all headers

On Sat, 17 Aug 2024 12:58:31 +0200, Dmitry A. Kazakov wrote:

> Windows inter-process API are far more advanced than what UNIX ever had.
> It would be enough to mention famous file locks.

Except those file locks are more of a liability than an asset. They are
what prevent you from continuing to use a Windows system while it is being
updated, for example.

> The reason why processes are not included is that they are used to deal
> with some OS or design flaw that forces you to spawn some script or
> application.

Or because the *nix tradition of being able to spawn a pipeline of
multiple processes, all cooperating to perform a common task, is difficult
and expensive, or even unreliable, under Windows.

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: Sun, 18 Aug 2024 08:10 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: 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: Sun, 18 Aug 2024 10:10:09 +0200
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <v9sa91$2afht$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
<v9posc$1rpdj$1@dont-email.me> <v9pvoo$1sn55$1@dont-email.me>
<v9r60h$2289h$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 18 Aug 2024 10:10:10 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="03e87f546f2e8f955e712fe5fed38868";
logging-data="2440765"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19eI+uWR0unNSFegaV7LY5HrIPJ0iwN+C4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8cvRcpbWmhk0urFCe4P6bvn5qQo=
In-Reply-To: <v9r60h$2289h$2@dont-email.me>
Content-Language: en-US
View all headers

On 2024-08-17 23:51, Lawrence D'Oliveiro wrote:
> On Sat, 17 Aug 2024 12:58:31 +0200, Dmitry A. Kazakov wrote:
>
>> Windows inter-process API are far more advanced than what UNIX ever had.
>> It would be enough to mention famous file locks.
>
> Except those file locks are more of a liability than an asset.

Like so many things in UNIX...

> They are
> what prevent you from continuing to use a Windows system while it is being
> updated, for example.

Windows mutex gets collected when the last process using it dies. UNIX
file lock does not.

>> The reason why processes are not included is that they are used to deal
>> with some OS or design flaw that forces you to spawn some script or
>> application.
>
> Or because the *nix tradition of being able to spawn a pipeline of
> multiple processes, all cooperating to perform a common task, is difficult
> and expensive, or even unreliable, under Windows.

It is as expensive under Windows as it is under UNIX. There is no
problem to produce the same mess as under UNIX. In fact Windows shells
do this just same.

Windows has a pipe object named and anonymous. No problem. Pipes are
rarely used in applications because it is not how distributed systems
(where multiple processes are indeed used) are designed. They usually
require processes be able to run on different nodes.

P.S. It is no wonder that Windows process API are far beyond UNIX.
Historically UNIX started with singe fork() call. There was nothing but
files, no system objects, nothing.
On the other hand, Windows NT was developed by people influenced with
the VMS design. VMS had a very elaborated process communication API. So
Windows inherited much of that, but must importantly the concept of
system resources managed by the OS.

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

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: Sun, 18 Aug 2024 08:17 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!.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: Sun, 18 Aug 2024 08:17:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <v9samp$2aobf$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
<v9posc$1rpdj$1@dont-email.me>
<v9pvoo$1sn55$1@dont-email.me>
Injection-Date: Sun, 18 Aug 2024 10:17:29 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f21369057de5f450272cea9b68abe9f0";
logging-data="2449775"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lFvTE3roCuIMrMfHeQhgy"
Cancel-Lock: sha1:JH8USGrN0I//t+2gL7AM+xvxt3g=
View all headers

On Sat, 17 Aug 2024 12:58:31 +0200
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> boringly babbled:
>On 2024-08-17 11:01, Muttley@dastardlyhq.com wrote:
>> On Fri, 16 Aug 2024 15:02:20 -0000 (UTC)
>> kalevi@kolttonen.fi (Kalevi Kolttonen) gabbled:
>>> So it is indeed a vague question of what belongs in given programming
>>> languages.
>>
>> Indeed. And this gives rise to inconsistency. Why is threading now considered
>
>> a core part of C++ but multi process isn't? Perhaps because Windows is
>hopeless
>> at the latter in user space but it could just be personal preference within
>the
>> C++ steering committee, who knows.
>
>Windows inter-process API are far more advanced than what UNIX ever had.

No they're not. The core IPC is less sophisticated than unix but libraries
build upon those shallow foundations.

>It would be enough to mention famous file locks. These days Linux has
>futex + file mapping. So, finally, you can create a system-wide mutex.
>Which under Windows is a single API call.

No sane person uses system wide mutexes as they can cause horrendous
problems.

>The reason why processes are not included is that they are used to deal
>with some OS or design flaw that forces you to spawn some script or
>application. Then real-time embedded applications may have no processes

Clearly you've never written a mission critical server backend. You never
use threads if forking a seperate process can do the same job. If a thread
crashes in a multi threaded server it brings down the entire server. If a
child process crashes, well to bad, but at least the rest of the server
processes are still running.

Also shell pipelining is obviously not something you're familiar with.

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: Sun, 18 Aug 2024 08:30 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: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Sun, 18 Aug 2024 08:30:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <v9sbf4$2artq$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
<v9posc$1rpdj$1@dont-email.me> <v9pvoo$1sn55$1@dont-email.me>
<v9r60h$2289h$2@dont-email.me>
<v9sa91$2afht$1@dont-email.me>
Injection-Date: Sun, 18 Aug 2024 10:30:29 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f21369057de5f450272cea9b68abe9f0";
logging-data="2453434"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HeMeub3Bz7D1vMxSV4G6V"
Cancel-Lock: sha1:5CW3e+99JEBiaNqtMqABJ2Uem2g=
View all headers

On Sun, 18 Aug 2024 10:10:09 +0200
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> boringly babbled:
>On 2024-08-17 23:51, Lawrence D'Oliveiro wrote:
>> Or because the *nix tradition of being able to spawn a pipeline of
>> multiple processes, all cooperating to perform a common task, is difficult
>> and expensive, or even unreliable, under Windows.
>
>It is as expensive under Windows as it is under UNIX. There is no
>problem to produce the same mess as under UNIX. In fact Windows shells
>do this just same.

No they don't - cmd.exe only supports a very limited implemetation of
pipelining. Powershell makes a better attempt at it but still doesn't get
it right.

>Windows has a pipe object named and anonymous. No problem. Pipes are
>rarely used in applications because it is not how distributed systems
>(where multiple processes are indeed used) are designed. They usually

Rubbish. You just made that up. Unix processes that need to talk to their
child processes almost always create a pipe to do so before the fork. Thats
how for example sshd talks to the shell process.

>require processes be able to run on different nodes.

Again - rubbish.

>P.S. It is no wonder that Windows process API are far beyond UNIX.

The windows process API is crippled which is why threading is the main
parallel processing method in Windows and has been since 3.0. If you think
otherwise please give some examples. However I distincly remember trying to
port server to windows only to discover that sockets are some wierd
structure in windows instead of a simple file descriptor meaning it was
impossible to multiplex using poll() or select() on them, you had to have
a seperate thread to manage each connection. What a fucking mess designed
by idiots.

>Historically UNIX started with singe fork() call. There was nothing but
>files, no system objects, nothing.

fork() copies the entire process space. No idea what you mean by "system
objects". Must be some windows thing.

>On the other hand, Windows NT was developed by people influenced with
>the VMS design. VMS had a very elaborated process communication API. So
>Windows inherited much of that, but must importantly the concept of
>system resources managed by the OS.

Windows NT was a slow unreliable dog. Even microsoft didn't use it for their
heavy duty backend servers, they used BSD and AS400s instead.

Subject: Re: Python (was Re: I did not inhale)
From: Kenny McCormack
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: The official candy of the new Millennium
Date: Sun, 18 Aug 2024 08:55 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Sun, 18 Aug 2024 08:55:49 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <v9scul$sei6$1@news.xmission.com>
References: <uu54la$3su5b$6@dont-email.me> <v9pvoo$1sn55$1@dont-email.me> <v9r60h$2289h$2@dont-email.me> <v9sa91$2afht$1@dont-email.me>
Injection-Date: Sun, 18 Aug 2024 08:55:49 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="932422"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <v9sa91$2afht$1@dont-email.me>,
Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> wrote:
>On 2024-08-17 23:51, Lawrence D'Oliveiro wrote:
>> On Sat, 17 Aug 2024 12:58:31 +0200, Dmitry A. Kazakov wrote:
>>
>>> Windows inter-process API are far more advanced than what UNIX ever had.
>>> It would be enough to mention famous file locks.
>>
>> Except those file locks are more of a liability than an asset.
>
>Like so many things in UNIX...

Ah, funny!

Yup - just what we need: Another Unix vs. Windows dick waving contest!!!

So productive use of Usenet bandwidth.

--
If there is anything more pathetic than Dr. Donald Trump, MD, giving out medical
advice, it is the pathetic followers of Dr. Trump trying to implement said advice.

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: Sun, 18 Aug 2024 09:21 UTC
References: 1 2 3 4 5
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: Sun, 18 Aug 2024 09:21:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <v9sedu$2b8hj$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <v9pvoo$1sn55$1@dont-email.me> <v9r60h$2289h$2@dont-email.me> <v9sa91$2afht$1@dont-email.me> <v9scul$sei6$1@news.xmission.com>
Injection-Date: Sun, 18 Aug 2024 11:21:02 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f21369057de5f450272cea9b68abe9f0";
logging-data="2466355"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182JBydbmul2S4mDVJ3fnKl"
Cancel-Lock: sha1:qwQc6fly+Buy8/qiEPawwUo51hE=
View all headers

On Sun, 18 Aug 2024 08:55:49 -0000 (UTC)
gazelle@shell.xmission.com (Kenny McCormack) boringly babbled:
>In article <v9sa91$2afht$1@dont-email.me>,
>Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> wrote:
>>On 2024-08-17 23:51, Lawrence D'Oliveiro wrote:
>>> On Sat, 17 Aug 2024 12:58:31 +0200, Dmitry A. Kazakov wrote:
>>>
>>>> Windows inter-process API are far more advanced than what UNIX ever had.
>>>> It would be enough to mention famous file locks.
>>>
>>> Except those file locks are more of a liability than an asset.
>>
>>Like so many things in UNIX...
>
>Ah, funny!
>
>Yup - just what we need: Another Unix vs. Windows dick waving contest!!!
>
>So productive use of Usenet bandwidth.

Yes, no doubt the providers will be struggling under the kilobytes of data
being used.

Feel free to post something else of interest.

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: Sun, 18 Aug 2024 10:19 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: 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: Sun, 18 Aug 2024 12:19:10 +0200
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <v9shqt$2bn73$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
<v9posc$1rpdj$1@dont-email.me> <v9pvoo$1sn55$1@dont-email.me>
<v9r60h$2289h$2@dont-email.me> <v9sa91$2afht$1@dont-email.me>
<v9sbf4$2artq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 18 Aug 2024 12:19:10 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="03e87f546f2e8f955e712fe5fed38868";
logging-data="2481379"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mWpsLMIWhLhSrsSlzP7ZkH7orQOKUwPI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:V4/STZwAJCEohUHFXoB4873NAEk=
In-Reply-To: <v9sbf4$2artq$1@dont-email.me>
Content-Language: en-US
View all headers

On 2024-08-18 10:30, Muttley@dastardlyhq.com wrote:

> The windows process API is crippled which is why threading is the main
> parallel processing method in Windows and has been since 3.0.

Threading is the main method because of its performance in a tight
coupled application. Crossing the process borders is very expensive.

> If you think
> otherwise please give some examples. However I distincly remember trying to
> port server to windows only to discover that sockets are some wierd
> structure in windows instead of a simple file descriptor meaning it was
> impossible to multiplex using poll() or select() on them, you had to have
> a seperate thread to manage each connection. What a fucking mess designed
> by idiots.

There is no problem using socket select with Windows. Here is an
implementation of a server doing that:

http://www.dmitry-kazakov.de/ada/components.htm#17.1

You can check the Windows implementation of to learn how it is done with
Windows sockets.

>> Historically UNIX started with singe fork() call. There was nothing but
>> files, no system objects, nothing.
>
> fork() copies the entire process space. No idea what you mean by "system
> objects". Must be some windows thing.

Objects managed by the OS.

>> On the other hand, Windows NT was developed by people influenced with
>> the VMS design. VMS had a very elaborated process communication API. So
>> Windows inherited much of that, but must importantly the concept of
>> system resources managed by the OS.
>
> Windows NT was a slow unreliable dog.

It is not slow. Actually you can get same or better performance under
Windows as under Linux. The problem is the default settings of the
scheduling time interval. It is 10ms by default. Set it to 1ms and you
will see the difference. Unfortunately 1ms is the hard limit. If you
want it better, OK, there is VxWorks where you can go under 1ms.

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

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: Sun, 18 Aug 2024 14:55 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
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: Sun, 18 Aug 2024 16:55:00 +0200
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <v9t204$2dofg$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 18 Aug 2024 16:55:01 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="dcf5933836487a5711ce49e3b1d68f43";
logging-data="2548208"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19La4ILYbSjid+tA7pec0SQdXkzyBOU5EE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:EsQnwxx7UVIj93JXGgDWMDTp4mY=
Content-Language: en-GB
In-Reply-To: <v9npls$1fjus$1@dont-email.me>
View all headers

On 16/08/2024 17:02, Kalevi Kolttonen wrote:
> In comp.unix.programmer Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>> On 2024-08-15, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>> On Thu, 15 Aug 2024 19:48:36 -0000 (UTC), Kalevi Kolttonen wrote:
>>>
>>>> The last I checked, the O'Reilly Python book is just absolutely
>>>> *MASSIVE*. The language has a huge number of features now ...
>>>
>>> No, it hasn’t. The core language reference spec is only a small fraction
>>> of, say, the Java language spec.
>>>
>>> It’s just that you can do so many things with Python. And that is down to
>>> the huge variety of off-the-shelf addon libraries that build on that core
>>> language spec. It has to be a strong, very solidly founded core in order
>>> to be such a versatile basis for these addons, and it is.
>>
>> That's idiotic; you're saying that the standard library packages of
>> Python are not part of Python, and do not contribute to its size.
>
> You seem to have a point. The core of C language is also small. I
> guess they even said in the original K & R book that C is a small
> language best described by a small book.
>
> But in order to do anything with C, you need to know the standard
> libraries. They have grown bigger and bigger during all these
> years. One could also well argue that to program on UNIX, you also
> need to know all the POSIX libraries.
>

Absolute nonsense.

In order to use a programming language for a given task, you need to
know the basics of the language and libraries appropriate for the task.
You most certainly do not need to know all about the language, or all
about all the libraries provided as standard for the language or the
host OS.

You usually need to know /some/ of a language's standard libraries, but
far from all of it. And unless you are writing a compiler, you don't
need to know all of the core language for most languages. And that
applies equally to languages with relatively small cores and standard
libraries, like C.

Without looking it up, what does the C standard library "fegetmode"
function do? What does "static" mean inside square brackets in a C
function prototype? What are the differences in the rules for integer
constants in C90 and C99? What functions are in the POSIX header
<libgen.h> ?

Do you think people "can't do anything with C" if they can't answer
those questions?

> So it is indeed a vague question of what belongs in given programming
> languages.
>

That is true, but not for the reason you gave.

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: Sun, 18 Aug 2024 14:59 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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: Sun, 18 Aug 2024 16:59:02 +0200
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <v9t27m$2dofg$2@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
<v9posc$1rpdj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 18 Aug 2024 16:59:02 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="dcf5933836487a5711ce49e3b1d68f43";
logging-data="2548208"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/boUXF5xllCJetcj+c99Y6g3sbMmtD1dI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8TbyxfJYg7Fk5W0o8bfv1AbmiiU=
In-Reply-To: <v9posc$1rpdj$1@dont-email.me>
Content-Language: en-GB
View all headers

On 17/08/2024 11:01, Muttley@dastardlyhq.com wrote:
> On Fri, 16 Aug 2024 15:02:20 -0000 (UTC)
> kalevi@kolttonen.fi (Kalevi Kolttonen) gabbled:
>> So it is indeed a vague question of what belongs in given programming
>> languages.
>
> Indeed. And this gives rise to inconsistency. Why is threading now considered
> a core part of C++ but multi process isn't? Perhaps because Windows is hopeless
> at the latter in user space but it could just be personal preference within the
> C++ steering committee, who knows.
>

No, it is because of what the term "program" usually means, along with
the terms "process" and "thread" (at the OS level). With C++, you write
"programs", and each process is a running program. Like most languages,
C++ does not cover what happens outside the program - that's part of the
OS specification, or specifications for other programs or other parts of
the complete system. But threads are /within/ the program, and thus
covered (to at least some extent) by the language used to write the program.

It has nothing to do with OS's and their strengths or weaknesses (real
or perceived).

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: Sun, 18 Aug 2024 15:23 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!.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: Sun, 18 Aug 2024 15:23:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <v9t3ko$2eae7$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
<v9posc$1rpdj$1@dont-email.me>
<v9t27m$2dofg$2@dont-email.me>
Injection-Date: Sun, 18 Aug 2024 17:23:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f21369057de5f450272cea9b68abe9f0";
logging-data="2566599"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Ez3tCPVqnqlg5phU+KeBF"
Cancel-Lock: sha1:d1hJx1/Y2YE82WRBWviS76/S4po=
View all headers

On Sun, 18 Aug 2024 16:59:02 +0200
David Brown <david.brown@hesbynett.no> boringly babbled:
>On 17/08/2024 11:01, Muttley@dastardlyhq.com wrote:
>> On Fri, 16 Aug 2024 15:02:20 -0000 (UTC)
>> kalevi@kolttonen.fi (Kalevi Kolttonen) gabbled:
>>> So it is indeed a vague question of what belongs in given programming
>>> languages.
>>
>> Indeed. And this gives rise to inconsistency. Why is threading now considered
>
>> a core part of C++ but multi process isn't? Perhaps because Windows is
>hopeless
>> at the latter in user space but it could just be personal preference within
>the
>> C++ steering committee, who knows.
>>
>
>No, it is because of what the term "program" usually means, along with
>the terms "process" and "thread" (at the OS level). With C++, you write
>"programs", and each process is a running program. Like most languages,
>C++ does not cover what happens outside the program - that's part of the
>OS specification, or specifications for other programs or other parts of
>the complete system. But threads are /within/ the program, and thus
>covered (to at least some extent) by the language used to write the program.

Sorry, thats just word salad. The program is the code, how many copies of it
are running is irrelevant.

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: Sun, 18 Aug 2024 15:45 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: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Sun, 18 Aug 2024 15:45:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <v9t4vm$2eg9b$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
<v9posc$1rpdj$1@dont-email.me> <v9pvoo$1sn55$1@dont-email.me>
<v9r60h$2289h$2@dont-email.me> <v9sa91$2afht$1@dont-email.me>
<v9sbf4$2artq$1@dont-email.me>
<v9shqt$2bn73$1@dont-email.me>
Injection-Date: Sun, 18 Aug 2024 17:45:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f21369057de5f450272cea9b68abe9f0";
logging-data="2572587"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1810/rlkyvk8IyP6l/WnCoQ"
Cancel-Lock: sha1:xXszq1BhG/W8zKxgQT4/dKK+8tk=
View all headers

On Sun, 18 Aug 2024 12:19:10 +0200
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> boringly babbled:
>On 2024-08-18 10:30, Muttley@dastardlyhq.com wrote:
>
>> The windows process API is crippled which is why threading is the main
>> parallel processing method in Windows and has been since 3.0.
>
>Threading is the main method because of its performance in a tight
>coupled application. Crossing the process borders is very expensive.

Most (all?) versions of unix use copy-on-write when forking so while the
processes are only reading its no different to threading. I doubt windows
implements CoW since - in user space at least - it can't do fork and you
wouldn't need it for executing a brand new process from scratch.

Also shared memory is pretty cheap too.

>> otherwise please give some examples. However I distincly remember trying to
>> port server to windows only to discover that sockets are some wierd
>> structure in windows instead of a simple file descriptor meaning it was
>> impossible to multiplex using poll() or select() on them, you had to have
>> a seperate thread to manage each connection. What a fucking mess designed
>> by idiots.
>
>There is no problem using socket select with Windows. Here is an
>implementation of a server doing that:
>
> http://www.dmitry-kazakov.de/ada/components.htm#17.1
>
>You can check the Windows implementation of to learn how it is done with
>Windows sockets.

No idea what the pages of all that crap is.

Windows sockets are not integers , they can't be multiplexed with file
descriptors, pipes etc in a single call.

>> fork() copies the entire process space. No idea what you mean by "system
>> objects". Must be some windows thing.
>
>Objects managed by the OS.

Like what? Why does the OS need to manage "objects"?

>> Windows NT was a slow unreliable dog.
>
>It is not slow. Actually you can get same or better performance under
>Windows as under Linux. The problem is the default settings of the

I'm not talking about now, I was talking about when NT came out. Learn to
read.

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: Sun, 18 Aug 2024 16:13 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: 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: Sun, 18 Aug 2024 18:13:37 +0200
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <v9t6jg$2e96d$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
<v9posc$1rpdj$1@dont-email.me> <v9pvoo$1sn55$1@dont-email.me>
<v9r60h$2289h$2@dont-email.me> <v9sa91$2afht$1@dont-email.me>
<v9sbf4$2artq$1@dont-email.me> <v9shqt$2bn73$1@dont-email.me>
<v9t4vm$2eg9b$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 18 Aug 2024 18:13:36 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="03e87f546f2e8f955e712fe5fed38868";
logging-data="2565325"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Mlwf/wPkTj+LLMCrv48DqtKneOwOVRlI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:y+h9S1FILKgSopS4YWeHYNhAis0=
Content-Language: en-US
In-Reply-To: <v9t4vm$2eg9b$1@dont-email.me>
View all headers

On 2024-08-18 17:45, Muttley@dastardlyhq.com wrote:
> On Sun, 18 Aug 2024 12:19:10 +0200
> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> boringly babbled:
>> On 2024-08-18 10:30, Muttley@dastardlyhq.com wrote:
>>
>>> The windows process API is crippled which is why threading is the main
>>> parallel processing method in Windows and has been since 3.0.
>>
>> Threading is the main method because of its performance in a tight
>> coupled application. Crossing the process borders is very expensive.
>
> Most (all?) versions of unix use copy-on-write when forking

You seems do not understand that spawning a process is not an issue of
interprocess communications. It is synchronization, e.g. events, mutexes
which is.

> Also shared memory is pretty cheap too.

Again, you need to synchronize in order to access shared objects, not to
mention elaboration of such objects, e.g. calling constructors and
destructors. With threads there is a linker support in most languages.
With processes you are on your own.

In the same library you might find portable implementation of basic
communication objects and compare Windows vs Linux vs BSD implementations:

http://www.dmitry-kazakov.de/ada/components.htm#12

> No idea what the pages of all that crap is.

Hmm, if you ever dealt with networking applications you should have had
some idea...

> Windows sockets are not integers ,

Windows did many things wrong, but accessing file descriptors by numbers
is beyond even Windows. In Windows a file is an OS object. You access it
getting an opaque handle to. Note that a handle can be marshaled from
one process to another. Try that with process-local numbers!

> they can't be multiplexed with file
> descriptors, pipes etc in a single call.

Of course it can. Windows overlapped I/O supports sockets.

>>> fork() copies the entire process space. No idea what you mean by "system
>>> objects". Must be some windows thing.
>>
>> Objects managed by the OS.
>
> Like what? Why does the OS need to manage "objects"?

Like a graphic context or a mutex. Things that leak if the process dies
unless the OS takes care of.

> I'm not talking about now, I was talking about when NT came out. Learn to
> read.

Honestly I do not know what you are talking about. The option to change
the scheduling interval existed in Windows NT.

If you want to compare Windows vs UNIX API, create a table and list
commonly used process communication things. In the cells write the API
call. E.g. mutex, pipe, pulse event etc.

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

Subject: C function prototype was Python (was Re: I did not inhale)
From: James Harris
Newsgroups: comp.lang.misc
Organization: A noiseless patient Spider
Date: Sun, 18 Aug 2024 16:36 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: james.harris.1@gmail.com (James Harris)
Newsgroups: comp.lang.misc
Subject: C function prototype was Python (was Re: I did not inhale)
Date: Sun, 18 Aug 2024 17:36:07 +0100
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <v9t7tn$2eiop$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <20240408075547.000061e8@gmail.com>
<g52cnWOOwoz_son7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
<uvbe3m$2cun7$1@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 18 Aug 2024 18:36:08 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3c5733281cf07bed0c232598da3232b1";
logging-data="2575129"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IAjqteV2smevYuAh1G4uAQAAlOA26jlI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:YqlbqL+NyiCkOWZFDZlmr1ICbxg=
In-Reply-To: <v9t204$2dofg$1@dont-email.me>
Content-Language: en-GB
View all headers

On 18/08/2024 15:55, David Brown wrote:

....

> What does "static" mean inside square brackets in a C
> function prototype?

I know there's a better newsgroup for it but, since you brought it up
and it does also fit here, I should say that I had no idea that a C
program could have square brackets in a function prototype and I cannot
think of ever seeing such a thing.

I presume you do mean C and not some sort of compiler extension.

As for static, IIRC labelling as "static" any external name (i.e. one
not in a function) would make it private to the CU and not visible
outside but that is just a guess.

Or perhaps you meant a static formal parameter. Again, not something
I've ever come across and would be curious as to what it meant.

Would you care to say more about what you had in mind?

--
James Harris

Pages:1234567891011

rocksolid light 0.9.8
clearnet tor