Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

19 May, 2024: Line wrapping has been changed to be more consistent with Usenet standards.
 If you find that it is broken please let me know here rocksolid.nodes.help


devel / comp.lang.c / Re: How About Disallowing Assignments In Expressions?

SubjectAuthor
* How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
+* Re: How About Disallowing Assignments In Expressions?Malcolm McLean
|`* Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| `- Re: How About Disallowing Assignments In Expressions?Tim Rentsch
+- Re: How About Disallowing Assignments In Expressions?Kaz Kylheku
+* Re: How About Disallowing Assignments In Expressions?David Brown
|+* Re: How About Disallowing Assignments In Expressions?Ben Bacarisse
||+* Re: How About Disallowing Assignments In Expressions?Richard Harnden
|||`* Re: How About Disallowing Assignments In Expressions?Ben Bacarisse
||| `* Re: How About Disallowing Assignments In Expressions?Richard Harnden
|||  `* Re: How About Disallowing Assignments In Expressions?Ben Bacarisse
|||   `* Re: How About Disallowing Assignments In Expressions?Malcolm McLean
|||    `* Re: How About Disallowing Assignments In Expressions?Ben Bacarisse
|||     `- Re: How About Disallowing Assignments In Expressions?Malcolm McLean
||`* Re: How About Disallowing Assignments In Expressions?David Brown
|| +* Re: How About Disallowing Assignments In Expressions?Ben Bacarisse
|| |`- Re: How About Disallowing Assignments In Expressions?David Brown
|| `- Re: How About Disallowing Assignments In Expressions?Janis Papanagnou
|+- Re: How About Disallowing Assignments In Expressions?Kaz Kylheku
|`* Re: How About Disallowing Assignments In Expressions?Keith Thompson
| +* Re: How About Disallowing Assignments In Expressions?Malcolm McLean
| |+- Re: How About Disallowing Assignments In Expressions?Keith Thompson
| |`* Re: How About Disallowing Assignments In Expressions?bart
| | +* Re: How About Disallowing Assignments In Expressions?fir
| | |`- Re: How About Disallowing Assignments In Expressions?fir
| | `* Re: How About Disallowing Assignments In Expressions?fir
| |  `* Re: How About Disallowing Assignments In Expressions?fir
| |   +- Re: How About Disallowing Assignments In Expressions?fir
| |   `- Re: How About Disallowing Assignments In Expressions?fir
| +* Re: How About Disallowing Assignments In Expressions?Kaz Kylheku
| |+- Re: How About Disallowing Assignments In Expressions?Keith Thompson
| |`* Re: How About Disallowing Assignments In Expressions?bart
| | +- Re: How About Disallowing Assignments In Expressions?Keith Thompson
| | `- Re: How About Disallowing Assignments In Expressions?Kaz Kylheku
| +- Re: How About Disallowing Assignments In Expressions?David Brown
| +* Re: How About Disallowing Assignments In Expressions?Keith Thompson
| |+- Re: How About Disallowing Assignments In Expressions?fir
| |`* Re: How About Disallowing Assignments In Expressions?Kaz Kylheku
| | `* Re: How About Disallowing Assignments In Expressions?dave thompson 2
| |  +* Re: How About Disallowing Assignments In Expressions?Janis Papanagnou
| |  |`- Re: How About Disallowing Assignments In Expressions?bart
| |  `- Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| +* Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| |+* Re: How About Disallowing Assignments In Expressions?Kaz Kylheku
| ||`* Re: How About Disallowing Assignments In Expressions?David Brown
| || `- Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| |+* Re: How About Disallowing Assignments In Expressions?Keith Thompson
| ||`* Re: How About Disallowing Assignments In Expressions?Keith Thompson
| || `* Re: How About Disallowing Assignments In Expressions?David Brown
| ||  +* Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| ||  |`- Re: How About Disallowing Assignments In Expressions?David Brown
| ||  `- Re: How About Disallowing Assignments In Expressions?Janis Papanagnou
| |`* Re: How About Disallowing Assignments In Expressions?Ben Bacarisse
| | +* Re: How About Disallowing Assignments In Expressions?David Brown
| | |+* Re: How About Disallowing Assignments In Expressions?Ben Bacarisse
| | ||+- Re: How About Disallowing Assignments In Expressions?Ben Bacarisse
| | ||+* Re: How About Disallowing Assignments In Expressions?bart
| | |||`- Re: How About Disallowing Assignments In Expressions?David Brown
| | ||+- Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| | ||`- Re: How About Disallowing Assignments In Expressions?David Brown
| | |`* Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| | | `* Re: How About Disallowing Assignments In Expressions?Ben Bacarisse
| | |  +* Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| | |  |`* Re: How About Disallowing Assignments In Expressions?Keith Thompson
| | |  | `* Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| | |  |  `* Re: How About Disallowing Assignments In Expressions?Keith Thompson
| | |  |   +* Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| | |  |   |`* Re: How About Disallowing Assignments In Expressions?Keith Thompson
| | |  |   | `* Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| | |  |   |  `* Re: How About Disallowing Assignments In Expressions?Keith Thompson
| | |  |   |   +* Re: How About Disallowing Assignments In Expressions?Keith Thompson
| | |  |   |   |`* Re: How About Disallowing Assignments In Expressions?David Brown
| | |  |   |   | `* Re: How About Disallowing Assignments In Expressions?bart
| | |  |   |   |  `* Re: How About Disallowing Assignments In Expressions?David Brown
| | |  |   |   |   +* Re: How About Disallowing Assignments In Expressions?bart
| | |  |   |   |   |`* Re: How About Disallowing Assignments In Expressions?David Brown
| | |  |   |   |   | `- Re: How About Disallowing Assignments In Expressions?Keith Thompson
| | |  |   |   |   `* Re: How About Disallowing Assignments In Expressions?Keith Thompson
| | |  |   |   |    `- Re: How About Disallowing Assignments In Expressions?David Brown
| | |  |   |   `* Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| | |  |   |    +- Re: How About Disallowing Assignments In Expressions?Keith Thompson
| | |  |   |    `* Re: How About Disallowing Assignments In Expressions?David Brown
| | |  |   |     `* Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| | |  |   |      +* Re: How About Disallowing Assignments In Expressions?Keith Thompson
| | |  |   |      |`* Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| | |  |   |      | +- Re: How About Disallowing Assignments In Expressions?Ben Bacarisse
| | |  |   |      | `- Re: How About Disallowing Assignments In Expressions?Keith Thompson
| | |  |   |      `- Re: How About Disallowing Assignments In Expressions?David Brown
| | |  |   `* Re: How About Disallowing Assignments In Expressions?Malcolm McLean
| | |  |    `* Re: How About Disallowing Assignments In Expressions?David Brown
| | |  |     +* Re: How About Disallowing Assignments In Expressions?Malcolm McLean
| | |  |     |`* Re: How About Disallowing Assignments In Expressions?David Brown
| | |  |     | `* Re: How About Disallowing Assignments In Expressions?Malcolm McLean
| | |  |     |  `* Re: How About Disallowing Assignments In Expressions?David Brown
| | |  |     |   `* Re: How About Disallowing Assignments In Expressions?Malcolm McLean
| | |  |     |    `* Re: How About Disallowing Assignments In Expressions?David Brown
| | |  |     |     +* Re: How About Disallowing Assignments In Expressions?Malcolm McLean
| | |  |     |     |`- Re: How About Disallowing Assignments In Expressions?David Brown
| | |  |     |     `* Re: How About Disallowing Assignments In Expressions?bart
| | |  |     |      +- Re: How About Disallowing Assignments In Expressions?Ben Bacarisse
| | |  |     |      `* Re: How About Disallowing Assignments In Expressions?David Brown
| | |  |     +* Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| | |  |     `* Re: How About Disallowing Assignments In Expressions?Janis Papanagnou
| | |  `* Re: How About Disallowing Assignments In Expressions?David Brown
| | +* Re: How About Disallowing Assignments In Expressions?Lawrence D'Oliveiro
| | `- Re: How About Disallowing Assignments In Expressions?Keith Thompson
| +- Re: How About Disallowing Assignments In Expressions?Janis Papanagnou
| `* Re: How About Disallowing Assignments In Expressions?Michael S
+* Re: How About Disallowing Assignments In Expressions?bart
+* Re: How About Disallowing Assignments In Expressions?Blue-Maned_Hawk
+- Re: How About Disallowing Assignments In Expressions?Richard Kettlewell
`* Re: How About Disallowing Assignments In Expressions?Thiago Adams

Pages:123456789101112131415161718192021
Re: How About Disallowing Assignments In Expressions?

<20240215092822.297@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Thu, 15 Feb 2024 17:29:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <20240215092822.297@kylheku.com>
References: <uq3s76$28dsr$1@dont-email.me> <uq6nha$2spqe$3@dont-email.me>
<87sf20o4e2.fsf@bsb.me.uk> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqb1vc$12k3v$1@dont-email.me> <uqd039$1fnp7$1@dont-email.me>
<uqduum$1mm6v$1@dont-email.me> <uqf801$20hb9$1@dont-email.me>
<uqfd4d$21bu6$1@dont-email.me> <uqfgnv$21tva$1@dont-email.me>
<uqfngh$235bb$1@dont-email.me> <uqft7s$2458n$1@dont-email.me>
<uqg1bv$24to4$1@dont-email.me> <877cj8axo6.fsf@nosuchdomain.example.com>
<uqkjm6$379pl$10@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 15 Feb 2024 17:29:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d76b38c2db4f8cfca664aab4bddb4800";
logging-data="3581771"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZAQXa5zGwfx6xHxQCbOXse4YPckRCc2A="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:lUdN9uhbiQFsnVjV8WOxI5GqaU0=
 by: Kaz Kylheku - Thu, 15 Feb 2024 17:29 UTC

On 2024-02-15, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Tue, 13 Feb 2024 12:58:49 -0800, Keith Thompson wrote:
>
>> You're suggesting that correctness doesn't matter unless the software
>> controls nuclear missiles.
>
> I would be hoping that safety-critical software would be written to higher
> standards than military stuff.
>
> After all, in military operations, a “friendly fire” rate of, say, 10-25%,
> seems to be considered acceptable.

Using garbage collection in a missile should be entirely acceptable; use
it liberally in development, and then in deployment, have enough RAM
and tune the parameters so that it strikes the target before the first
GC cycle.

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

Re: Building Code Again

<uqljk1$3don3$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: Building Code Again
Date: Thu, 15 Feb 2024 18:02:41 +0000
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <uqljk1$3don3$1@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me>
<877cj8axo6.fsf@nosuchdomain.example.com> <uqgs2c$29nvr$1@dont-email.me>
<uqhtvp$2ilrc$1@dont-email.me> <uqi1f2$2j7mt$1@dont-email.me>
<uqi3k1$2jhr8$1@dont-email.me> <uqi886$2kcqi$1@dont-email.me>
<20240214141410.00005ea0@yahoo.com> <uqii13$2m36v$1@dont-email.me>
<3v5zN.88071$GX69.76625@fx46.iad> <uqirrb$2o09g$1@dont-email.me>
<Sa7zN.358881$xHn7.264957@fx14.iad> <uqj4ml$2pnqa$1@dont-email.me>
<uqj6iv$2q00f$1@dont-email.me> <uqj9nj$2ql12$1@dont-email.me>
<3yazN.324761$Wp_8.75995@fx17.iad> <uqjo4k$2t0ca$1@dont-email.me>
<20240214190516.111@kylheku.com> <uqktfq$39qk3$1@dont-email.me>
<20240215083205.613@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 15 Feb 2024 18:02:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="02d8ac7ffc12f179390259c847a21c25";
logging-data="3597027"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9DL5XKYxEVDUSa6ftWNmP18bgikgkQpk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:UqDsUJj6d3EO1fOksfnW+DKqgG4=
Content-Language: en-GB
In-Reply-To: <20240215083205.613@kylheku.com>
 by: bart - Thu, 15 Feb 2024 18:02 UTC

On 15/02/2024 16:40, Kaz Kylheku wrote:
> On 2024-02-15, bart <bc@freeuk.com> wrote:
>> On 15/02/2024 03:08, Kaz Kylheku wrote:
>>> On 2024-02-15, bart <bc@freeuk.com> wrote:
>>>> There appears to be nobody in Unix who questions such things; everyone
>>>> takes takes at face value. So long as it eventually produces a result,
>>>> no matter how long it takes or how torturous the process, nobody cares.
>>>
>>> This is false. There are many critics "in Unix", of Makefiles, GNU
>>> Autotools, the C language including its preprocessing, the shell
>>> language, various utilities, POSIX API's, and almost imaginable element
>>> of the whole cornucopia. Many are well-informed, experienced and have
>>> well-reasoned opinions.
>>>
>>
>> And yet I still can't trivially compile pnminvert.c into pnminvert.exe
>> using just a C compiler.
>
> Unsurprisingly, the existence of critics in the C and Unix world
> doesn't magically fix an obscure netpbm build problem.
>
>> make[2]: Leaving directory '/mnt/c/xxx/netpbm-10.86.40/lib/util'
>> cc -shared -Wl,--image-base=0x10000000 -Wl,--enable-auto-import
>
> Looks like the linker doesn't understand the --image-base option.
>
> That option exists somewhere for some good reason.
>
> I can't imagine why something like netpbm would need exotic linker
> options, but there is probably some reason it was introduced.

Quite. I can't imagine why it would need lots of other less exotic
things too. It's hard to think of a set of tasks that would be more
portable.

It's just more opportunities for failure and more limited portability.

> It would be more productive to take this up with the netpbm project
> than the comp.lang.c newsgroup.

This is not specific to that product, it's just something that came up,
which I decided to investigate. But it seems to be quite typical.

Re: Building Code Again

<uqluuo$3fr0j$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: Building Code Again
Date: Thu, 15 Feb 2024 22:16:08 +0100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <uqluuo$3fr0j$1@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uqhtvp$2ilrc$1@dont-email.me>
<uqi1f2$2j7mt$1@dont-email.me> <uqi3k1$2jhr8$1@dont-email.me>
<uqi886$2kcqi$1@dont-email.me> <20240214141410.00005ea0@yahoo.com>
<uqii13$2m36v$1@dont-email.me> <3v5zN.88071$GX69.76625@fx46.iad>
<uqirrb$2o09g$1@dont-email.me> <Sa7zN.358881$xHn7.264957@fx14.iad>
<uqj4ml$2pnqa$1@dont-email.me> <uqj6iv$2q00f$1@dont-email.me>
<uqj9nj$2ql12$1@dont-email.me> <3yazN.324761$Wp_8.75995@fx17.iad>
<uqjo4k$2t0ca$1@dont-email.me> <ePpzN.357617$c3Ea.27488@fx10.iad>
<uqlb13$3c78i$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 15 Feb 2024 21:16:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6557c2898eb54a5f061599944016b0c8";
logging-data="3664915"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hdoRZYiMJOUUYCQ3JxEvCYRdpQ9gn4Vg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:78+Uf5/4VbE3vLrocnS6swgc2OQ=
In-Reply-To: <uqlb13$3c78i$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Thu, 15 Feb 2024 21:16 UTC

On 15/02/2024 16:36, bart wrote:
> On 15/02/2024 15:10, Scott Lurndal wrote:
>> bart <bc@freeuk.com> writes:
>>> On 14/02/2024 21:47, Scott Lurndal wrote:
>>
>>>> I've never read so many complaints from one person.
>>>
>>> Here's a challenge: give me a reason not to complain.
>>
>> Life is short and there are far better ways to spend
>> one's time.
>
> You've expressed my thoughts exactly. Why should I waste /my/ grappling
> with someone else's mess of a build process?

A lot of us wonder about that too. Even stranger, you don't waste your
time trying to understand the issues you are having, or fixing them, you
waste all of our times griping about them here - to people who didn't
make the build systems in question, who aren't in a position to fix
them, don't have the same problems themselves, and are not at all
interested in the software in question. And when we /do/ try to help,
you don't listen - you just whine more.

I recommend you think hard about what you are doing with all that, and
perhaps consider spending your time some other way. Like talking about
C, or asking questions about the many things you don't understand about
C. Even whining about the things you don't like about C would be better
than whining about things you don't like about build processes!

Re: How About Disallowing Assignments In Expressions?

<uqlv2g$3fr0j$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Thu, 15 Feb 2024 22:18:08 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <uqlv2g$3fr0j$2@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uq6nha$2spqe$3@dont-email.me>
<87sf20o4e2.fsf@bsb.me.uk> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqb1vc$12k3v$1@dont-email.me> <uqd039$1fnp7$1@dont-email.me>
<uqduum$1mm6v$1@dont-email.me> <uqf801$20hb9$1@dont-email.me>
<uqfd4d$21bu6$1@dont-email.me> <uqfgnv$21tva$1@dont-email.me>
<uqfngh$235bb$1@dont-email.me> <uqft7s$2458n$1@dont-email.me>
<uqg1bv$24to4$1@dont-email.me> <877cj8axo6.fsf@nosuchdomain.example.com>
<uqkjm6$379pl$10@dont-email.me> <20240215092822.297@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 15 Feb 2024 21:18:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6557c2898eb54a5f061599944016b0c8";
logging-data="3664915"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18uvEiNNDWp8XRIdfuPQxMQts/DcbGshoY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:AUCdnQfSsiykH6L6n3bSmvctQwA=
Content-Language: en-GB
In-Reply-To: <20240215092822.297@kylheku.com>
 by: David Brown - Thu, 15 Feb 2024 21:18 UTC

On 15/02/2024 18:29, Kaz Kylheku wrote:
> On 2024-02-15, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>> On Tue, 13 Feb 2024 12:58:49 -0800, Keith Thompson wrote:
>>
>>> You're suggesting that correctness doesn't matter unless the software
>>> controls nuclear missiles.
>>
>> I would be hoping that safety-critical software would be written to higher
>> standards than military stuff.
>>
>> After all, in military operations, a “friendly fire” rate of, say, 10-25%,
>> seems to be considered acceptable.
>
> Using garbage collection in a missile should be entirely acceptable; use
> it liberally in development, and then in deployment, have enough RAM
> and tune the parameters so that it strikes the target before the first
> GC cycle.
>

It is not uncommon in embedded systems for "malloc" to allocate directly
from a single block of memory with a single "next free byte" pointer,
while "free" does nothing. As long as malloc is used just for memory
allocations at startup, it all works fine.

Re: Building Code Again

<uqlvnc$3fuq4$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: Building Code Again
Date: Thu, 15 Feb 2024 21:29:17 +0000
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <uqlvnc$3fuq4$1@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uqhtvp$2ilrc$1@dont-email.me>
<uqi1f2$2j7mt$1@dont-email.me> <uqi3k1$2jhr8$1@dont-email.me>
<uqi886$2kcqi$1@dont-email.me> <20240214141410.00005ea0@yahoo.com>
<uqii13$2m36v$1@dont-email.me> <3v5zN.88071$GX69.76625@fx46.iad>
<uqirrb$2o09g$1@dont-email.me> <Sa7zN.358881$xHn7.264957@fx14.iad>
<uqj4ml$2pnqa$1@dont-email.me> <uqj6iv$2q00f$1@dont-email.me>
<uqj9nj$2ql12$1@dont-email.me> <3yazN.324761$Wp_8.75995@fx17.iad>
<uqjo4k$2t0ca$1@dont-email.me> <ePpzN.357617$c3Ea.27488@fx10.iad>
<uqlb13$3c78i$1@dont-email.me> <uqluuo$3fr0j$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 15 Feb 2024 21:29:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="02d8ac7ffc12f179390259c847a21c25";
logging-data="3668804"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vxYffq4njr7NqjnzYDvnEzd+9mAJfBFI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:N2GSGnyIY7SG+wAtQhUv4nw6xAw=
Content-Language: en-GB
In-Reply-To: <uqluuo$3fr0j$1@dont-email.me>
 by: bart - Thu, 15 Feb 2024 21:29 UTC

On 15/02/2024 21:16, David Brown wrote:
> On 15/02/2024 16:36, bart wrote:
>> On 15/02/2024 15:10, Scott Lurndal wrote:
>>> bart <bc@freeuk.com> writes:
>>>> On 14/02/2024 21:47, Scott Lurndal wrote:
>>>
>>>>> I've never read so many complaints from one person.
>>>>
>>>> Here's a challenge: give me a reason not to complain.
>>>
>>> Life is short and there are far better ways to spend
>>> one's time.
>>
>> You've expressed my thoughts exactly. Why should I waste /my/
>> grappling with someone else's mess of a build process?
>
> A lot of us wonder about that too.  Even stranger, you don't waste your
> time trying to understand the issues you are having, or fixing them, you
> waste all of our times griping about them here - to people who didn't
> make the build systems in question, who aren't in a position to fix
> them, don't have the same problems themselves, and are not at all
> interested in the software in question.  And when we /do/ try to help,
> you don't listen - you just whine more.
>
> I recommend you think hard about what you are doing with all that, and
> perhaps consider spending your time some other way.  Like talking about
> C, or asking questions about the many things you don't understand about
> C.  Even whining about the things you don't like about C would be better
> than whining about things you don't like about build processes!
>
>

I was under the impression that applications and libraries that were
written in C, were written in C.

Apparently I was wrong. It seems almost unheard of to be able to create
a runnable version of a C program by simply compiling the source code.

Because there's some unwritten rule that they must use at least half the
features of Linux-Unix in order to achieve that.

How about that, a famously portable language that can only be built if
you have half of Linux to hand.

Re: Building Code Again

<20240215160616.72@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: Building Code Again
Date: Fri, 16 Feb 2024 00:19:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <20240215160616.72@kylheku.com>
References: <uq3s76$28dsr$1@dont-email.me> <uqhtvp$2ilrc$1@dont-email.me>
<uqi1f2$2j7mt$1@dont-email.me> <uqi3k1$2jhr8$1@dont-email.me>
<uqi886$2kcqi$1@dont-email.me> <20240214141410.00005ea0@yahoo.com>
<uqii13$2m36v$1@dont-email.me> <3v5zN.88071$GX69.76625@fx46.iad>
<uqirrb$2o09g$1@dont-email.me> <Sa7zN.358881$xHn7.264957@fx14.iad>
<uqj4ml$2pnqa$1@dont-email.me> <uqj6iv$2q00f$1@dont-email.me>
<uqj9nj$2ql12$1@dont-email.me> <3yazN.324761$Wp_8.75995@fx17.iad>
<uqjo4k$2t0ca$1@dont-email.me> <ePpzN.357617$c3Ea.27488@fx10.iad>
<uqlb13$3c78i$1@dont-email.me> <uqluuo$3fr0j$1@dont-email.me>
<uqlvnc$3fuq4$1@dont-email.me>
Injection-Date: Fri, 16 Feb 2024 00:19:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f030556f6214bbd337b0dcfcbd4d5a3c";
logging-data="3722521"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/AQGpvP6GC5X3FoWh3Q4WvKhXPh/HALZU="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:8LDjbZ3NKqk6vWMKKJsOsFuN0bg=
 by: Kaz Kylheku - Fri, 16 Feb 2024 00:19 UTC

On 2024-02-15, bart <bc@freeuk.com> wrote:
> How about that, a famously portable language that can only be built if
> you have half of Linux to hand.

"I have long stated that 90% of the C programs I have on file will not
compile. Your estimate confirms my observation."

-- Scott Nudds, Feb 3, 1997

https://groups.google.com/g/comp.lang.c/c/J-FqEXoSVj8/m/xBhpjpCYB3cJ

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

Re: Building Code Again

<20240215162005.843@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: Building Code Again
Date: Fri, 16 Feb 2024 00:29:57 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <20240215162005.843@kylheku.com>
References: <uq3s76$28dsr$1@dont-email.me>
<877cj8axo6.fsf@nosuchdomain.example.com> <uqgs2c$29nvr$1@dont-email.me>
<uqhtvp$2ilrc$1@dont-email.me> <uqi1f2$2j7mt$1@dont-email.me>
<uqi3k1$2jhr8$1@dont-email.me> <uqi886$2kcqi$1@dont-email.me>
<20240214141410.00005ea0@yahoo.com> <uqii13$2m36v$1@dont-email.me>
<3v5zN.88071$GX69.76625@fx46.iad> <uqirrb$2o09g$1@dont-email.me>
<Sa7zN.358881$xHn7.264957@fx14.iad> <uqj4ml$2pnqa$1@dont-email.me>
<uqj6iv$2q00f$1@dont-email.me> <uqj9nj$2ql12$1@dont-email.me>
<3yazN.324761$Wp_8.75995@fx17.iad> <uqjo4k$2t0ca$1@dont-email.me>
<20240214190516.111@kylheku.com> <uqktfq$39qk3$1@dont-email.me>
<20240215083205.613@kylheku.com> <uqljk1$3don3$1@dont-email.me>
Injection-Date: Fri, 16 Feb 2024 00:29:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f030556f6214bbd337b0dcfcbd4d5a3c";
logging-data="3722521"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19f3Qe2O5bft/I9yIPyV8xTcRVGo85okM0="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:UogQ57O72GXBgPa243lRkMiw8RU=
 by: Kaz Kylheku - Fri, 16 Feb 2024 00:29 UTC

On 2024-02-15, bart <bc@freeuk.com> wrote:
> On 15/02/2024 16:40, Kaz Kylheku wrote:
>> It would be more productive to take this up with the netpbm project
>> than the comp.lang.c newsgroup.
>
> This is not specific to that product, it's just something that came up,
> which I decided to investigate. But it seems to be quite typical.

I've never seen the above specific problem with the --image-base
passed to the linker.

There are many environments out there; and the people who make the
software only work with a few (sometimes only one). If you only build
your program on Linux, it might not work on WSL, MacOS, Cygwin or
Solaris or what have you.

It's not uncommon for people who build free software programs
("downstream people") into packages and distros to apply patches for one
reason or another.

One problem is that the downstream people don't always communicate
with the developers ("upstream people"). It's less effort to just patch
something in your world, and not inform upstream that you had to do
this.

Sometimes people have a negative experience reporting something
upstream, which results them in having spent extra effort, yet still
having to continue apply their rejected patch. That discourages them
from trying again the next time they have to patch something in the
same program or another.

I've caught distros patching some of my programs for this and that, by
peeking into their repos and bug reporting systems. I would secretly
fixd the problem, making sure to do in a way such that their patch would
not apply any more. Then watch them pick up a new release and remove the
patch. No e-mails or anything exchanged at all.

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

Re: How About Disallowing Assignments In Expressions?

<uqmcjq$3hv8k$4@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Fri, 16 Feb 2024 01:09:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <uqmcjq$3hv8k$4@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uqb66q$136g1$1@dont-email.me>
<uqbrbt$16jcf$3@dont-email.me> <uqg6og$25tpo$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Feb 2024 01:09:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fe3e14ae0e4b82a387ee5a4e24f95846";
logging-data="3734804"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JIJnriUjwY/3drIlUuwFh"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:cedI32/YQAJ6BmZYw/u+Q4F+nv0=
 by: Lawrence D'Oliv - Fri, 16 Feb 2024 01:09 UTC

On Tue, 13 Feb 2024 17:52:31 +0100, Janis Papanagnou wrote:

> On 12.02.2024 02:13, Lawrence D'Oliveiro wrote:
>>
>> But boolean is a subtype of int anyway, so what’s the harm in
>> redefining conditional expressions to return bool instead?
>
> Well, no harm, but some useful constructs would probably not work any
> more.
>
> Just this morning I wrote[*], for example,
>
> size = (size+1+shift)%3; // cycle through three sizes
>
> where 'shift' is actually a boolean (with possible values 0 and 1).

But they are interconvertible anyway, so that will be fine.

> [*] Actually in Javascript, but the expression is also valid in C.

And that is valid in JavaScript. Just tried it:

>> 2 + 2
4
>> 2 + true
3
>> 2 + false
2

Re: How About Disallowing Assignments In Expressions?

<uqmcqi$3hv8o$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.furie.org.uk!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Fri, 16 Feb 2024 01:12:50 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <uqmcqi$3hv8o$1@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me>
<87r0hlef8q.fsf@nosuchdomain.example.com> <uq6nha$2spqe$3@dont-email.me>
<87sf20o4e2.fsf@bsb.me.uk> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqg3dk$258lu$4@dont-email.me> <uqkj5c$379pl$7@dont-email.me>
<aVpzN.357619$c3Ea.195092@fx10.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Feb 2024 01:12:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fe3e14ae0e4b82a387ee5a4e24f95846";
logging-data="3734808"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+iufACHCurCcifYRGPNZsR"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:4JrDAp98qz3OfLR28tbyqsJ7uQM=
 by: Lawrence D'Oliv - Fri, 16 Feb 2024 01:12 UTC

On Thu, 15 Feb 2024 15:16:22 GMT, Scott Lurndal wrote:

> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>
>>The first version of the C++ standard was C++98, and that had bool in
>>it.
>
> The first version of C++ was in the mid-80s and didn't have bool (c.f.
> cfront).

It wasn’t a “standard” back then.

Re: How About Disallowing Assignments In Expressions?

<uqmd23$3hv8k$5@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Fri, 16 Feb 2024 01:16:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <uqmd23$3hv8k$5@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqbrjo$16jcf$6@dont-email.me> <uqg3m0$258lu$5@dont-email.me>
<uqgpd1$29928$3@dont-email.me> <87il2s9fdj.fsf@nosuchdomain.example.com>
<uqj95e$2qhb1$1@dont-email.me> <sEazN.324764$Wp_8.34532@fx17.iad>
<86wmr6z0zg.fsf@linuxsc.com> <uql32m$3apfo$1@dont-email.me>
<uqlerj$3crk6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Feb 2024 01:16:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fe3e14ae0e4b82a387ee5a4e24f95846";
logging-data="3734804"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xp61/awtLT34k0eamifgJ"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:RT+ViTpgxxc+X2M2O8/TwhBqA6s=
 by: Lawrence D'Oliv - Fri, 16 Feb 2024 01:16 UTC

On Thu, 15 Feb 2024 16:41:23 +0000, Malcolm McLean wrote:

> I can't remember the precedence relationships beyond a few very
> conventional and well known ones.

No need to. This is why we have documentation. Keep it handy, and don’t be
ashamed to refer to it often, even in the presence of colleagues.

Re: How About Disallowing Assignments In Expressions?

<uqmd5s$3hv8k$6@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Fri, 16 Feb 2024 01:18:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <uqmd5s$3hv8k$6@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqbrjo$16jcf$6@dont-email.me> <uqg3m0$258lu$5@dont-email.me>
<uqgpd1$29928$3@dont-email.me> <87il2s9fdj.fsf@nosuchdomain.example.com>
<uqj95e$2qhb1$1@dont-email.me> <sEazN.324764$Wp_8.34532@fx17.iad>
<uqkjp1$379pl$11@dont-email.me> <uqlf6g$3crk6$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Feb 2024 01:18:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fe3e14ae0e4b82a387ee5a4e24f95846";
logging-data="3734804"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19E1te5CllREURF+XJ4doaI"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:b7/5s54sPLIpXKL3xTFu8bk79LM=
 by: Lawrence D'Oliv - Fri, 16 Feb 2024 01:18 UTC

On Thu, 15 Feb 2024 16:47:12 +0000, Malcolm McLean wrote:

> That is an issue. It's hard to match parentheses in long expressions.

I have a simple answer to that: take advantage of the two dimensions of
space available to you on the screen/page:

if
(
nrhistentries <= 4
||
nrpixels
/
(
nrpixels
-
(
histogram[0].count
+
histogram[1].count
+
histogram[2].count
+
histogram[3].count
)
) /* won't be zero */
>=
count_factor
)
{
...
} /*if*/

Re: How About Disallowing Assignments In Expressions?

<uqmd92$3hv8k$7@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Fri, 16 Feb 2024 01:20:35 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <uqmd92$3hv8k$7@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uq4nmb$2hive$6@dont-email.me>
<87r0hlef8q.fsf@nosuchdomain.example.com> <uq6nha$2spqe$3@dont-email.me>
<87sf20o4e2.fsf@bsb.me.uk> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqbrjo$16jcf$6@dont-email.me> <uqg3m0$258lu$5@dont-email.me>
<uqgpd1$29928$3@dont-email.me> <uqgtcs$2a1g3$1@dont-email.me>
<uqj976$2qhb1$2@dont-email.me> <uqkcph$36i3s$1@dont-email.me>
<uqkjr0$379pl$12@dont-email.me> <uql39d$3apfo$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Feb 2024 01:20:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fe3e14ae0e4b82a387ee5a4e24f95846";
logging-data="3734804"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9+pTwRh6an/s+QyLWeWY8"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:PEX/zkrxDZ9TL3eTWAd3NhoASs0=
 by: Lawrence D'Oliv - Fri, 16 Feb 2024 01:20 UTC

On Thu, 15 Feb 2024 14:23:57 +0100, David Brown wrote:

> On 15/02/2024 10:00, Lawrence D'Oliveiro wrote:
>
>> If Marie Kondo were to learn C programming, what do you think she would
>> do?
>
> So now ...

“Perfection is achieved, not when there is nothing more to add, but
when there is nothing left to take away.”
-- Antoine De Saint-Exupéry

Re: How About Disallowing Assignments In Expressions?

<20240215182114.463@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Fri, 16 Feb 2024 02:29:24 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 87
Message-ID: <20240215182114.463@kylheku.com>
References: <uq3s76$28dsr$1@dont-email.me> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqbrjo$16jcf$6@dont-email.me> <uqg3m0$258lu$5@dont-email.me>
<uqgpd1$29928$3@dont-email.me> <87il2s9fdj.fsf@nosuchdomain.example.com>
<uqj95e$2qhb1$1@dont-email.me> <sEazN.324764$Wp_8.34532@fx17.iad>
<uqkjp1$379pl$11@dont-email.me> <uqlf6g$3crk6$2@dont-email.me>
<uqmd5s$3hv8k$6@dont-email.me>
Injection-Date: Fri, 16 Feb 2024 02:29:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f030556f6214bbd337b0dcfcbd4d5a3c";
logging-data="3754588"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19uT7lo9Tm1rKJIM3f6U1fKhCj57iI/A80="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:a9xnEzqDXwP1mj7Sa/6yCbD6Pqk=
 by: Kaz Kylheku - Fri, 16 Feb 2024 02:29 UTC

On 2024-02-16, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Thu, 15 Feb 2024 16:47:12 +0000, Malcolm McLean wrote:
>
>> That is an issue. It's hard to match parentheses in long expressions.
>
> I have a simple answer to that: take advantage of the two dimensions of
> space available to you on the screen/page:
>
> if
> (
> nrhistentries <= 4
> ||
> nrpixels
> /
> (
> nrpixels
> -
> (
> histogram[0].count
> +
> histogram[1].count
> +
> histogram[2].count
> +
> histogram[3].count
> )
> ) /* won't be zero */
> >=
> count_factor
> )
> {
> ...
> } /*if*/

At that point you start losing to Lisp. E.g. TXR Lisp:

(if (or (< hrhistentries 4)
(>= (/ nrpixels
(- nrpixels
(+ [histogram 0].count
[histogram 1].count
[histogram 2].count
[histogram 3].count)))
count-factor))
...)

This is idiomatic code, not a joke. I revisit code like this I've
written years ago, or that someone else wrote, and have no trouble
understanding it.

Everything is an expression in Lisp. 200 line function definition?
one giant expression. Breaking it into multiple lines follows
a simple algorithm, with a handful of cases.

Right inside this edit session for this Usenet article, I can do this:

(if (or (< hrhistentries 4)
(>= (/ nrpixels
(- nrpixels
(+ [histogram 0].count
[histogram 1].count
[histogram 2].count
[histogram 3].count)))
count-factor))
....)

Then turn on Lisp mode in Vim using :set lisp, visually select
the block and hit = to reindent it:

(if (or (< hrhistentries 4)
(>= (/ nrpixels
(- nrpixels
(+ [histogram 0].count
[histogram 1].count
[histogram 2].count
[histogram 3].count)))
count-factor))
...)

It knows that if is an operator so the ... body is indented
by two, rather than lined up with (or ...). This is because
if is listed in the "lispwords" variable (:set lispwords=...).

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

Re: How About Disallowing Assignments In Expressions?

<uqmhpf$3imqv$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Fri, 16 Feb 2024 03:37:34 +0100
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <uqmhpf$3imqv$1@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uq6nha$2spqe$3@dont-email.me>
<87sf20o4e2.fsf@bsb.me.uk> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqb1vc$12k3v$1@dont-email.me> <uqd039$1fnp7$1@dont-email.me>
<uqduum$1mm6v$1@dont-email.me> <uqf801$20hb9$1@dont-email.me>
<uqfd4d$21bu6$1@dont-email.me> <uqfgnv$21tva$1@dont-email.me>
<uqfngh$235bb$1@dont-email.me> <uqft7s$2458n$1@dont-email.me>
<uqg1bv$24to4$1@dont-email.me> <877cj8axo6.fsf@nosuchdomain.example.com>
<uqgs2c$29nvr$1@dont-email.me> <uqhtvp$2ilrc$1@dont-email.me>
<uqi1f2$2j7mt$1@dont-email.me> <uqi3k1$2jhr8$1@dont-email.me>
<uqi5gs$2jtp3$1@dont-email.me> <uqibtl$2l0v9$1@dont-email.me>
<uqke4u$36p8j$1@dont-email.me> <uqkja3$379pl$8@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 16 Feb 2024 02:37:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="825c8e77a282dc30ae6902be3a027d99";
logging-data="3758943"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hrRZokrPp1w7YvgqeBJe7"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:F38rAGS5n8GG5Jg1sD6qEb7mNLk=
In-Reply-To: <uqkja3$379pl$8@dont-email.me>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Fri, 16 Feb 2024 02:37 UTC

On 15.02.2024 09:51, Lawrence D'Oliveiro wrote:
> On Thu, 15 Feb 2024 08:23:09 +0100, Janis Papanagnou wrote:
>
>> It's worth to add Awk to your list of script languages, since it's
>> standard on Unix, and its syntax largely resembles the syntax of C.
>
> Perl does everything Awk can do, and do it just as concisely, and it can
> do more besides.

You missed the point; it was about scripting languages and C syntax,
in context of someone trying to make a point whether special C-like
scripting languages were necessary (or C as a scripting language).

It was not about what some scripting language provides as features
or libraries. I wonder why you try to open a completely unnecessary
dispute like that, especially by trying to compare C with Perl.

Perl is not standard and has its own cryptic syntax deviating from C.
And Perl is not a terse language tool but more like a huge tractor.
You can master Awk in few hours, not so Perl. Why do you think that
anyone would feel a need to dispute language richness and compare
Perl with Awk.

Janis

Re: How About Disallowing Assignments In Expressions?

<uqmiav$3ip17$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Fri, 16 Feb 2024 03:46:54 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <uqmiav$3ip17$1@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uq4nmb$2hive$6@dont-email.me>
<87r0hlef8q.fsf@nosuchdomain.example.com> <uq6nha$2spqe$3@dont-email.me>
<87sf20o4e2.fsf@bsb.me.uk> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqbrjo$16jcf$6@dont-email.me> <uqg3m0$258lu$5@dont-email.me>
<uqgpd1$29928$3@dont-email.me> <uqgtcs$2a1g3$1@dont-email.me>
<uqj976$2qhb1$2@dont-email.me> <uqkcph$36i3s$1@dont-email.me>
<uqkjr0$379pl$12@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Feb 2024 02:46:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="825c8e77a282dc30ae6902be3a027d99";
logging-data="3761191"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fojHF3OfuNe6M5g2B1QLb"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:pOtq5frWhX1f5yT4TZcAgNSWpGM=
In-Reply-To: <uqkjr0$379pl$12@dont-email.me>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Fri, 16 Feb 2024 02:46 UTC

On 15.02.2024 10:00, Lawrence D'Oliveiro wrote:
> On Thu, 15 Feb 2024 08:00:00 +0100, Janis Papanagnou wrote:
>
>> On 14.02.2024 21:52, Lawrence D'Oliveiro wrote:
>>
>>> On Wed, 14 Feb 2024 00:18:50 +0100, Janis Papanagnou wrote:
>>>
>>>> Though most precedence rules in C make parenthesis usually unnecessary
>>>> and expressions rarely need parenthesis to provide that certainty.
>>>
>>> And yet you were the one who added unnecessary ones in your example, I
>>> didn’t.
>>
>> Yes, and I explained that with the given rules you have no "clutter"
>> (as you called it) ...
>
> “Clutter” is when you put in ones you don’t need.

You seem to have some specific restricted definition for "need".
You may need it syntactically or not when you have a given semantics.
You may need it to clarify (or ascertain) something or not.

I certainly don't consider it "clutter" if I can make non-obvious
things clearer for the maintainers of a piece of code.

Janis

Re: [OT] Pascal and popularity (was Re: How About Disallowing Assignments In Expressions?)

<uqmign$3ip17$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: [OT] Pascal and popularity (was Re: How About Disallowing
Assignments In Expressions?)
Date: Fri, 16 Feb 2024 03:49:59 +0100
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <uqmign$3ip17$2@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uq4nmb$2hive$6@dont-email.me>
<87r0hlef8q.fsf@nosuchdomain.example.com> <uq6nha$2spqe$3@dont-email.me>
<87sf20o4e2.fsf@bsb.me.uk> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqg3dk$258lu$4@dont-email.me> <uqg4f3$25dn5$1@dont-email.me>
<uqgutd$2a91g$1@dont-email.me> <uqhule$2ilrc$2@dont-email.me>
<uqibhb$2kut0$1@dont-email.me> <uqiinc$2m4rb$1@dont-email.me>
<uqkceb$36go3$1@dont-email.me> <uql3sb$3athj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 16 Feb 2024 02:49:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="825c8e77a282dc30ae6902be3a027d99";
logging-data="3761191"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/t/yXZWOBAyETdxvXe381d"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:LOlNdNnyFYEThqPVbHo4yrKWa2k=
In-Reply-To: <uql3sb$3athj$1@dont-email.me>
 by: Janis Papanagnou - Fri, 16 Feb 2024 02:49 UTC

On 15.02.2024 14:34, David Brown wrote:
>
> Perhaps the most significant Pascal program is TeX, which was written in
> a combined documentation/coding language "Web" using Pascal as the
> programming language.

Oh, that's interesting! (I've never heard much about the TeX internals.)

Janis

Re: How About Disallowing Assignments In Expressions?

<uqmj9t$3mo9o$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.network!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Fri, 16 Feb 2024 04:03:25 +0100
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <uqmj9t$3mo9o$1@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uq4nmb$2hive$6@dont-email.me>
<87r0hlef8q.fsf@nosuchdomain.example.com> <uq6nha$2spqe$3@dont-email.me>
<87sf20o4e2.fsf@bsb.me.uk> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqg3dk$258lu$4@dont-email.me> <uqkj5c$379pl$7@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 16 Feb 2024 03:03:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="825c8e77a282dc30ae6902be3a027d99";
logging-data="3891512"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Jvd8fG2DwReBQh7iZVLYs"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:EzXuFTJc4V+KHxwApbdQx/IMAn4=
In-Reply-To: <uqkj5c$379pl$7@dont-email.me>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Fri, 16 Feb 2024 03:03 UTC

On 15.02.2024 09:48, Lawrence D'Oliveiro wrote:
> On Tue, 13 Feb 2024 16:55:32 +0100, Janis Papanagnou wrote:
>
>> You are mistaken; C++ had no 'bool' type initially. It had been added
>> later.
>
> The first version of the C++ standard was C++98, and that had bool in it.

Yes. But my comment about the other poster being mistaken was where
he wrote about the time "When C++ was forked from C" (and not "When
C++ became standardized").

And then he squirmed by introducing vague terms to muddy this fault
("Pre-history vs history.")

The "fork from C" was (as BJ's book) in the 1980's, the standard in
the late 1990's.

And the other poster makes (obviously) a wrong claim about it being
in the first edition of Stroustrup's book.

(Is spreading "alternative facts" so established meanwhile?)

Janis

Re: How About Disallowing Assignments In Expressions?

<uqmjpt$3mqei$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Fri, 16 Feb 2024 04:11:56 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <uqmjpt$3mqei$1@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uqb66q$136g1$1@dont-email.me>
<uqbrbt$16jcf$3@dont-email.me> <uqg6og$25tpo$1@dont-email.me>
<uqmcjq$3hv8k$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 16 Feb 2024 03:11:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="825c8e77a282dc30ae6902be3a027d99";
logging-data="3893714"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/iWNN00sV59m5hNzId0NkZ"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:5hRHa9HyKFkwitv2RitrMN0ZgxQ=
In-Reply-To: <uqmcjq$3hv8k$4@dont-email.me>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Fri, 16 Feb 2024 03:11 UTC

On 16.02.2024 02:09, Lawrence D'Oliveiro wrote:
>
> And that is valid in JavaScript. Just tried it:
>
> >> 2 + 2
> 4
> >> 2 + true
> 3
> >> 2 + false
> 2
>

Oh, I'm just programming in JS (since I've no web server running),
but I'm not the right one to discuss this language. (I would have
far too much to criticize and my "copious free time" is limited.)

Janis

Re: How About Disallowing Assignments In Expressions?

<uqmjv7$3mqei$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Fri, 16 Feb 2024 04:14:47 +0100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <uqmjv7$3mqei$2@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uq6nha$2spqe$3@dont-email.me>
<87sf20o4e2.fsf@bsb.me.uk> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqb1vc$12k3v$1@dont-email.me> <uqd039$1fnp7$1@dont-email.me>
<uqduum$1mm6v$1@dont-email.me> <uqf801$20hb9$1@dont-email.me>
<uqfd4d$21bu6$1@dont-email.me> <uqfgnv$21tva$1@dont-email.me>
<uqfngh$235bb$1@dont-email.me> <uqft7s$2458n$1@dont-email.me>
<uqg1bv$24to4$1@dont-email.me> <877cj8axo6.fsf@nosuchdomain.example.com>
<uqkjm6$379pl$10@dont-email.me> <20240215092822.297@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Feb 2024 03:14:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="825c8e77a282dc30ae6902be3a027d99";
logging-data="3893714"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Oyht3zTSohG1nvfZYDO1o"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:q+CbDKx56mFhvGzW7f2IYFHR6Po=
In-Reply-To: <20240215092822.297@kylheku.com>
 by: Janis Papanagnou - Fri, 16 Feb 2024 03:14 UTC

On 15.02.2024 18:29, Kaz Kylheku wrote:
> On 2024-02-15, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>> On Tue, 13 Feb 2024 12:58:49 -0800, Keith Thompson wrote:
>>
>>> You're suggesting that correctness doesn't matter unless the software
>>> controls nuclear missiles.
>>
>> I would be hoping that safety-critical software would be written to higher
>> standards than military stuff.
>>
>> After all, in military operations, a “friendly fire” rate of, say, 10-25%,
>> seems to be considered acceptable.
>
> Using garbage collection in a missile should be entirely acceptable; use
> it liberally in development, and then in deployment, have enough RAM
> and tune the parameters so that it strikes the target before the first
> GC cycle.

Great! :-)

Janis

Re: How About Disallowing Assignments In Expressions?

<uqmm80$3n3o5$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Thu, 15 Feb 2024 19:53:35 -0800
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uqmm80$3n3o5$1@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uq6nha$2spqe$3@dont-email.me>
<87sf20o4e2.fsf@bsb.me.uk> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqb1vc$12k3v$1@dont-email.me> <uqd039$1fnp7$1@dont-email.me>
<uqduum$1mm6v$1@dont-email.me> <uqf801$20hb9$1@dont-email.me>
<uqfd4d$21bu6$1@dont-email.me> <uqfgnv$21tva$1@dont-email.me>
<uqfngh$235bb$1@dont-email.me> <uqft7s$2458n$1@dont-email.me>
<uqg1bv$24to4$1@dont-email.me> <877cj8axo6.fsf@nosuchdomain.example.com>
<uqkjm6$379pl$10@dont-email.me> <20240215092822.297@kylheku.com>
<uqmjv7$3mqei$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Feb 2024 03:53:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="34f0c8e038f7a06168c763d47f140a42";
logging-data="3903237"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19O32itP/w8gNThebsUMutLWhyn50N25lU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:0Qh6ouH5Q3Y+4to0KofVClQlfNw=
In-Reply-To: <uqmjv7$3mqei$2@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Fri, 16 Feb 2024 03:53 UTC

On 2/15/2024 7:14 PM, Janis Papanagnou wrote:
> On 15.02.2024 18:29, Kaz Kylheku wrote:
>> On 2024-02-15, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>> On Tue, 13 Feb 2024 12:58:49 -0800, Keith Thompson wrote:
>>>
>>>> You're suggesting that correctness doesn't matter unless the software
>>>> controls nuclear missiles.
>>>
>>> I would be hoping that safety-critical software would be written to higher
>>> standards than military stuff.
>>>
>>> After all, in military operations, a “friendly fire” rate of, say, 10-25%,
>>> seems to be considered acceptable.
>>
>> Using garbage collection in a missile should be entirely acceptable; use
>> it liberally in development, and then in deployment, have enough RAM
>> and tune the parameters so that it strikes the target before the first
>> GC cycle.
>
> Great! :-)

Wow! GC cycles can lose a war? ;^)

Re: Building Code Again

<uqmp4h$3n38k$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: Building Code Again
Date: Fri, 16 Feb 2024 04:42:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <uqmp4h$3n38k$2@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uqhtvp$2ilrc$1@dont-email.me>
<uqi1f2$2j7mt$1@dont-email.me> <uqi3k1$2jhr8$1@dont-email.me>
<uqi886$2kcqi$1@dont-email.me> <20240214141410.00005ea0@yahoo.com>
<uqii13$2m36v$1@dont-email.me> <3v5zN.88071$GX69.76625@fx46.iad>
<uqirrb$2o09g$1@dont-email.me> <Sa7zN.358881$xHn7.264957@fx14.iad>
<uqj4ml$2pnqa$1@dont-email.me> <uqj6iv$2q00f$1@dont-email.me>
<uqj9nj$2ql12$1@dont-email.me> <3yazN.324761$Wp_8.75995@fx17.iad>
<uqjo4k$2t0ca$1@dont-email.me> <ePpzN.357617$c3Ea.27488@fx10.iad>
<uqlb13$3c78i$1@dont-email.me> <uqluuo$3fr0j$1@dont-email.me>
<uqlvnc$3fuq4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Feb 2024 04:42:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fe3e14ae0e4b82a387ee5a4e24f95846";
logging-data="3902740"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CHe2jZmDHb93X7uaFcZDb"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:T3YdX+3RRlu7QUiUw5Nxmu1oG6Q=
 by: Lawrence D'Oliv - Fri, 16 Feb 2024 04:42 UTC

On Thu, 15 Feb 2024 21:29:17 +0000, bart wrote:

> Apparently I was wrong. It seems almost unheard of to be able to create
> a runnable version of a C program by simply compiling the source code.

For some reason, you seem to be particularly obsessed with C programs that
you perceive to have this characteristic.

Here’s some simple advice: avoid those C programs, and stick to ones
written for Microsoft Windows. Problem solved.

Re: Building Code Again

<uqmp95$3n38k$3@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: Building Code Again
Date: Fri, 16 Feb 2024 04:45:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <uqmp95$3n38k$3@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me>
<877cj8axo6.fsf@nosuchdomain.example.com> <uqgs2c$29nvr$1@dont-email.me>
<uqhtvp$2ilrc$1@dont-email.me> <uqi1f2$2j7mt$1@dont-email.me>
<uqi3k1$2jhr8$1@dont-email.me> <uqi886$2kcqi$1@dont-email.me>
<20240214141410.00005ea0@yahoo.com> <uqii13$2m36v$1@dont-email.me>
<3v5zN.88071$GX69.76625@fx46.iad> <uqirrb$2o09g$1@dont-email.me>
<Sa7zN.358881$xHn7.264957@fx14.iad> <uqj4ml$2pnqa$1@dont-email.me>
<uqj6iv$2q00f$1@dont-email.me> <uqj9nj$2ql12$1@dont-email.me>
<3yazN.324761$Wp_8.75995@fx17.iad> <uqjo4k$2t0ca$1@dont-email.me>
<20240214190516.111@kylheku.com> <uqktfq$39qk3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Feb 2024 04:45:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fe3e14ae0e4b82a387ee5a4e24f95846";
logging-data="3902740"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PUNuK1eFtc55QYqDK4cS5"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:xXemXBOaldMMhzDT3vIyxG0/YmQ=
 by: Lawrence D'Oliv - Fri, 16 Feb 2024 04:45 UTC

On Thu, 15 Feb 2024 11:44:58 +0000, bart wrote:

> I need X, Y and Z to do so under WSL, and it still doesn't work.

You have to give Microsoft a chance. WSL2 came out less than 5 years ago,
so you can understand it still has a few bugs in it. You can’t expect WSL
to be the sole focus of its attention, giving it is also trying to port
Windows to ARM, and acquire game-development companies, and also building
some kind of AI functionality into Windows.

Wait for the next version, and see if that’s any better.

Re: How About Disallowing Assignments In Expressions?

<uqmpas$3n38k$4@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Fri, 16 Feb 2024 04:46:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <uqmpas$3n38k$4@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uq6nha$2spqe$3@dont-email.me>
<87sf20o4e2.fsf@bsb.me.uk> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqb1vc$12k3v$1@dont-email.me> <uqd039$1fnp7$1@dont-email.me>
<uqduum$1mm6v$1@dont-email.me> <uqf801$20hb9$1@dont-email.me>
<uqfd4d$21bu6$1@dont-email.me> <uqfgnv$21tva$1@dont-email.me>
<uqfngh$235bb$1@dont-email.me> <uqft7s$2458n$1@dont-email.me>
<uqg1bv$24to4$1@dont-email.me> <877cj8axo6.fsf@nosuchdomain.example.com>
<uqgs2c$29nvr$1@dont-email.me> <uqhtvp$2ilrc$1@dont-email.me>
<uqi1f2$2j7mt$1@dont-email.me> <uqi3k1$2jhr8$1@dont-email.me>
<uqi5gs$2jtp3$1@dont-email.me> <uqibtl$2l0v9$1@dont-email.me>
<uqke4u$36p8j$1@dont-email.me> <uqkja3$379pl$8@dont-email.me>
<uqmhpf$3imqv$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Feb 2024 04:46:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fe3e14ae0e4b82a387ee5a4e24f95846";
logging-data="3902740"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+mt+n8OO7pSw4ZiXFQ7u7n"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:8BXwElMLmrHVWoif2edFOqxzPrA=
 by: Lawrence D'Oliv - Fri, 16 Feb 2024 04:46 UTC

On Fri, 16 Feb 2024 03:37:34 +0100, Janis Papanagnou wrote:

> You can master Awk in few hours, not so Perl.

You can figure out those same functions in Perl in the same amount of
time. I would say that is time better spent.

Re: Building Code Again

<20240215215129.99@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.furie.org.uk!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: Building Code Again
Date: Fri, 16 Feb 2024 05:53:11 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <20240215215129.99@kylheku.com>
References: <uq3s76$28dsr$1@dont-email.me> <uqhtvp$2ilrc$1@dont-email.me>
<uqi1f2$2j7mt$1@dont-email.me> <uqi3k1$2jhr8$1@dont-email.me>
<uqi886$2kcqi$1@dont-email.me> <20240214141410.00005ea0@yahoo.com>
<uqii13$2m36v$1@dont-email.me> <3v5zN.88071$GX69.76625@fx46.iad>
<uqirrb$2o09g$1@dont-email.me> <Sa7zN.358881$xHn7.264957@fx14.iad>
<uqj4ml$2pnqa$1@dont-email.me> <uqj6iv$2q00f$1@dont-email.me>
<uqj9nj$2ql12$1@dont-email.me> <3yazN.324761$Wp_8.75995@fx17.iad>
<uqjo4k$2t0ca$1@dont-email.me> <ePpzN.357617$c3Ea.27488@fx10.iad>
<uqlb13$3c78i$1@dont-email.me> <uqluuo$3fr0j$1@dont-email.me>
<uqlvnc$3fuq4$1@dont-email.me> <uqmp4h$3n38k$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Feb 2024 05:53:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f030556f6214bbd337b0dcfcbd4d5a3c";
logging-data="3932868"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tJP+WK8PPTRe/uNxU7cDCiakh7FYKIxY="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:6ULc2rvGTeN4zqU/e2KUt3heNCw=
 by: Kaz Kylheku - Fri, 16 Feb 2024 05:53 UTC

On 2024-02-16, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Thu, 15 Feb 2024 21:29:17 +0000, bart wrote:
>
>> Apparently I was wrong. It seems almost unheard of to be able to create
>> a runnable version of a C program by simply compiling the source code.
>
> For some reason, you seem to be particularly obsessed with C programs that
> you perceive to have this characteristic.
>
> Here’s some simple advice: avoid those C programs, and stick to ones
> written for Microsoft Windows. Problem solved.

... and have fun opening their Visual Studio 2005 project file in Visual
Studio 2022. :)

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

Re: How About Disallowing Assignments In Expressions?

<uqn4bd$3ovo5$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: How About Disallowing Assignments In Expressions?
Date: Fri, 16 Feb 2024 08:54:21 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <uqn4bd$3ovo5$1@dont-email.me>
References: <uq3s76$28dsr$1@dont-email.me> <uq86e9$37s7s$1@dont-email.me>
<uq93m2$3g3f$2@dont-email.me> <8734tzoli4.fsf@bsb.me.uk>
<uq979e$40n1$1@dont-email.me> <87v86vbx6s.fsf@nosuchdomain.example.com>
<uq98lm$40n1$6@dont-email.me> <87il2vbvza.fsf@nosuchdomain.example.com>
<uqau5o$11nm8$1@dont-email.me> <uqauo4$11vps$1@dont-email.me>
<uqbrjo$16jcf$6@dont-email.me> <uqg3m0$258lu$5@dont-email.me>
<uqgpd1$29928$3@dont-email.me> <87il2s9fdj.fsf@nosuchdomain.example.com>
<uqj95e$2qhb1$1@dont-email.me> <sEazN.324764$Wp_8.34532@fx17.iad>
<86wmr6z0zg.fsf@linuxsc.com> <uql32m$3apfo$1@dont-email.me>
<uqlerj$3crk6$1@dont-email.me> <uqmd23$3hv8k$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Feb 2024 07:54:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="01760729a22a031bc4c36e5d19540552";
logging-data="3964677"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fi4w0vn2eycX9pso6UHoZ/7Yhi3HiwtU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:OBkwLWHx700/Y6nxVFhcUuADMuE=
Content-Language: en-GB
In-Reply-To: <uqmd23$3hv8k$5@dont-email.me>
 by: David Brown - Fri, 16 Feb 2024 07:54 UTC

On 16/02/2024 02:16, Lawrence D'Oliveiro wrote:
> On Thu, 15 Feb 2024 16:41:23 +0000, Malcolm McLean wrote:
>
>> I can't remember the precedence relationships beyond a few very
>> conventional and well known ones.
>
> No need to. This is why we have documentation. Keep it handy, and don’t be
> ashamed to refer to it often, even in the presence of colleagues.

Agreed. Fill your brain with useful things, rather than things that you
rarely need and can easily look up. Or in the case of precedence for
the less commonly used operators, use parentheses or break expressions
into parts. Extra local variables are free.

And use good tools, such as an IDE that gives you suggestions and
auto-completion. Some people are dyslexic - a tool that helps you spell
your identifiers correctly, or tells you the name of function parameters
when you type a function name (so you can get the order right) saves you
effort and lets you concentrate on the important things.


devel / comp.lang.c / Re: How About Disallowing Assignments In Expressions?

Pages:123456789101112131415161718192021
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor