Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

On a clear disk you can seek forever.


devel / comp.lang.c / Re: What I've learned in comp.lang.c

SubjectAuthor
* What I've learned in comp.lang.cbart
+* Re: What I've learned in comp.lang.cKaz Kylheku
|+* Re: What I've learned in comp.lang.cChris M. Thomasson
||`* Re: What I've learned in comp.lang.cKaz Kylheku
|| `* Re: What I've learned in comp.lang.cChris M. Thomasson
||  `* Re: What I've learned in comp.lang.cChris M. Thomasson
||   `- Re: What I've learned in comp.lang.cJan van den Broek
|+- Re: What I've learned in comp.lang.cMichael S
|+* Re: What I've learned in comp.lang.cMichael S
||`* Re: What I've learned in comp.lang.cDavid Brown
|| `* Re: What I've learned in comp.lang.cKaz Kylheku
||  `* Re: What I've learned in comp.lang.cDavid Brown
||   +- Re: What I've learned in comp.lang.cChris M. Thomasson
||   +* Re: What I've learned in comp.lang.cMichael S
||   |`- Re: What I've learned in comp.lang.cDavid Brown
||   `* Re: What I've learned in comp.lang.cLawrence D'Oliveiro
||    `* Re: What I've learned in comp.lang.cDavid Brown
||     +* Re: What I've learned in comp.lang.cMalcolm McLean
||     |+* Re: What I've learned in comp.lang.cBen Bacarisse
||     ||+* Re: What I've learned in comp.lang.cbart
||     |||+* Re: What I've learned in comp.lang.cDavid Brown
||     ||||`* Re: What I've learned in comp.lang.cbart
||     |||| `- Re: What I've learned in comp.lang.cDavid Brown
||     |||`* Re: What I've learned in comp.lang.cBen Bacarisse
||     ||| `* Re: What I've learned in comp.lang.cbart
||     |||  +* Re: What I've learned in comp.lang.cScott Lurndal
||     |||  |`* Re: What I've learned in comp.lang.cbart
||     |||  | `* Re: What I've learned in comp.lang.cLawrence D'Oliveiro
||     |||  |  `- Re: What I've learned in comp.lang.cMalcolm McLean
||     |||  +* Re: What I've learned in comp.lang.cDavid Brown
||     |||  |`* Re: What I've learned in comp.lang.cbart
||     |||  | +* Re: What I've learned in comp.lang.cKaz Kylheku
||     |||  | |`* Re: What I've learned in comp.lang.cbart
||     |||  | | +* Re: What I've learned in comp.lang.cKaz Kylheku
||     |||  | | |`- Re: What I've learned in comp.lang.cbart
||     |||  | | `* Re: What I've learned in comp.lang.cTim Rentsch
||     |||  | |  `* Re: What I've learned in comp.lang.cbart
||     |||  | |   +- Re: What I've learned in comp.lang.cDavid Brown
||     |||  | |   `- Re: What I've learned in comp.lang.cTim Rentsch
||     |||  | `- Re: What I've learned in comp.lang.cDavid Brown
||     |||  `* Re: What I've learned in comp.lang.cBen Bacarisse
||     |||   +* Re: What I've learned in comp.lang.cMalcolm McLean
||     |||   |+* Re: What I've learned in comp.lang.cDavid Brown
||     |||   ||+- Re: What I've learned in comp.lang.cMalcolm McLean
||     |||   ||`* Re: What I've learned in comp.lang.cbart
||     |||   || `- Re: What I've learned in comp.lang.cDavid Brown
||     |||   |`- Re: What I've learned in comp.lang.cBen Bacarisse
||     |||   `- Re: What I've learned in comp.lang.cTim Rentsch
||     ||`* Re: What I've learned in comp.lang.cMalcolm McLean
||     || +- Re: What I've learned in comp.lang.cDavid Brown
||     || +- Re: What I've learned in comp.lang.cBen Bacarisse
||     || `- Re: What I've learned in comp.lang.cKeith Thompson
||     |+* Re: What I've learned in comp.lang.cDavid Brown
||     ||+- Re: What I've learned in comp.lang.cRichard Harnden
||     ||+* Re: What I've learned in comp.lang.cMalcolm McLean
||     |||`- Re: What I've learned in comp.lang.cDavid Brown
||     ||`- Re: What I've learned in comp.lang.cLawrence D'Oliveiro
||     |`* Re: What I've learned in comp.lang.cScott Lurndal
||     | `- Re: What I've learned in comp.lang.cMichael S
||     `* Re: What I've learned in comp.lang.cBen Bacarisse
||      `* Re: What I've learned in comp.lang.cDavid Brown
||       `* Re: What I've learned in comp.lang.cBen Bacarisse
||        +* Re: What I've learned in comp.lang.cMalcolm McLean
||        |+* Re: What I've learned in comp.lang.cDavid Brown
||        ||`* Re: What I've learned in comp.lang.cMalcolm McLean
||        || +- Re: What I've learned in comp.lang.cKaz Kylheku
||        || `* Re: What I've learned in comp.lang.cLawrence D'Oliveiro
||        ||  `* Re: What I've learned in comp.lang.cMalcolm McLean
||        ||   `- Re: What I've learned in comp.lang.cKaz Kylheku
||        |`* Re: What I've learned in comp.lang.cBen Bacarisse
||        | `* Re: What I've learned in comp.lang.cMalcolm McLean
||        |  `* Re: What I've learned in comp.lang.cDavid Brown
||        |   +* Re: What I've learned in comp.lang.cMalcolm McLean
||        |   |`- Re: What I've learned in comp.lang.cDavid Brown
||        |   `* Re: What I've learned in comp.lang.cScott Lurndal
||        |    +- Re: What I've learned in comp.lang.cRichard Harnden
||        |    `- Re: What I've learned in comp.lang.cBen Bacarisse
||        `- Re: What I've learned in comp.lang.cTim Rentsch
|+* Re: What I've learned in comp.lang.cMichael S
||`* Re: What I've learned in comp.lang.cLawrence D'Oliveiro
|| +- Re: What I've learned in comp.lang.cRichard Harnden
|| +* Re: What I've learned in comp.lang.cMichael S
|| |`- Re: What I've learned in comp.lang.cDavid Brown
|| +* Re: What I've learned in comp.lang.cChris M. Thomasson
|| |`- Re: What I've learned in comp.lang.cChris M. Thomasson
|| `* Re: What I've learned in comp.lang.cDavid Brown
||  +- Re: What I've learned in comp.lang.cChris M. Thomasson
||  `* Re: What I've learned in comp.lang.cLawrence D'Oliveiro
||   `* Re: What I've learned in comp.lang.cDavid Brown
||    +* Re: What I've learned in comp.lang.cMichael S
||    |`- Re: What I've learned in comp.lang.cDavid Brown
||    `* Re: What I've learned in comp.lang.cScott Lurndal
||     +* Re: What I've learned in comp.lang.cDavid Brown
||     |+- Re: What I've learned in comp.lang.cChris M. Thomasson
||     |`* Re: What I've learned in comp.lang.cMichael S
||     | `* Re: What I've learned in comp.lang.cDavid Brown
||     |  `* Re: What I've learned in comp.lang.cMichael S
||     |   `* Re: What I've learned in comp.lang.cDavid Brown
||     |    `* Re: What I've learned in comp.lang.cMichael S
||     |     `* Re: What I've learned in comp.lang.cDavid Brown
||     |      `* Re: What I've learned in comp.lang.cLawrence D'Oliveiro
||     `- Re: What I've learned in comp.lang.cLawrence D'Oliveiro
|`* Re: What I've learned in comp.lang.cbart
+* Re: What I've learned in comp.lang.cTim Rentsch
+* Re: What I've learned in comp.lang.cMalcolm McLean
+- Re: What I've learned in comp.lang.cDan Purgert
+* Re: What I've learned in comp.lang.cDavid Brown
`- Re: What I've learned in comp.lang.cLawrence D'Oliveiro

Pages:123456
Re: What I've learned in comp.lang.c

<uq2hev$1v5v8$2@dont-email.me>

  copy mid

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

  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: What I've learned in comp.lang.c
Date: Thu, 8 Feb 2024 13:29:19 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uq2hev$1v5v8$2@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me>
<20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me>
<upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me>
<874jekvbdh.fsf@bsb.me.uk> <uq01ti$1erim$2@dont-email.me>
<87msscthq3.fsf@bsb.me.uk> <uq08i5$1fvu8$1@dont-email.me>
<87cyt7rxh8.fsf@bsb.me.uk> <uq2gk5$1uvp4$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 8 Feb 2024 12:29:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a878e37942be30dcab60787af34a441b";
logging-data="2070504"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/azoaOYMsBUDKSEAUTiYS3Kz316tZ4JtA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:NjfpejR9XdOVs+6LRIfGnqdqYMw=
Content-Language: en-GB
In-Reply-To: <uq2gk5$1uvp4$2@dont-email.me>
 by: David Brown - Thu, 8 Feb 2024 12:29 UTC

On 08/02/2024 13:15, Malcolm McLean wrote:
> On 08/02/2024 11:45, Ben Bacarisse wrote:
>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>
>>> No. It means writing the code in a way which is common in C and has
>>> certain
>>> advantages, but is not so in other languages.
>>
>> Where do you get your superior knowledge of English from, and is there a
>> way anyone else can hope to achieve your level of competence?
>>
> Degree in English literature.

I would never have guessed that from the way you write and from how
often you fail to read other people's posts.

Re: What I've learned in comp.lang.c

<uq2j01$1vg9n$1@dont-email.me>

  copy mid

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

  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: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Thu, 8 Feb 2024 12:55:28 +0000
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <uq2j01$1vg9n$1@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me>
<20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me>
<upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me>
<874jekvbdh.fsf@bsb.me.uk> <uq01ti$1erim$2@dont-email.me>
<87msscthq3.fsf@bsb.me.uk> <uq08i5$1fvu8$1@dont-email.me>
<87cyt7rxh8.fsf@bsb.me.uk> <uq2gk5$1uvp4$2@dont-email.me>
<uq2hev$1v5v8$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 8 Feb 2024 12:55:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="018f36612d262c17e7dc51364aa6f64d";
logging-data="2081079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RATOiKO2MTjdtU3zMuemF3uCQHQCJ2xA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:kdVjGZyJVDtsia8OU+USjzuDiuA=
In-Reply-To: <uq2hev$1v5v8$2@dont-email.me>
Content-Language: en-GB
 by: Malcolm McLean - Thu, 8 Feb 2024 12:55 UTC

On 08/02/2024 12:29, David Brown wrote:
> On 08/02/2024 13:15, Malcolm McLean wrote:
>> On 08/02/2024 11:45, Ben Bacarisse wrote:
>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>
>>>> No. It means writing the code in a way which is common in C and has
>>>> certain
>>>> advantages, but is not so in other languages.
>>>
>>> Where do you get your superior knowledge of English from, and is there a
>>> way anyone else can hope to achieve your level of competence?
>>>
>> Degree in English literature.
>
> I would never have guessed that from the way you write and from how
> often you fail to read other people's posts.
>

What an Oxford English tutor mostly cares about is that the essay is
produced. Not so much what it says. You'll always get some marks for
writing something and will therefore pass, but you can get no marks for
nothing and can only fail. So handing in a stupid essay is acceptable
but not handing in the essay at all is a big no no and tutors really
hate that. It's all about pulling something together in a tight deadline
on a subject about which you knew absolutely nothing last week, and
that's what they value. So it does encourage a rather slapdash approach
and reading things quickly, and maybe that is a fault.

--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: What I've learned in comp.lang.c

<uq2jec$1vg9n$2@dont-email.me>

  copy mid

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

  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: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Thu, 8 Feb 2024 13:03:08 +0000
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <uq2jec$1vg9n$2@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me>
<20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me>
<upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me>
<upvgp1$1bs8q$1@dont-email.me> <87y1bwtuss.fsf@bsb.me.uk>
<upvo4c$1d64i$1@dont-email.me> <87h6ikthg4.fsf@bsb.me.uk>
<uq0gpd$1hiun$1@dont-email.me> <87il2zrxtn.fsf@bsb.me.uk>
<uq2gav$1uvp4$1@dont-email.me> <uq2h63$1v5v8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Feb 2024 13:03:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="018f36612d262c17e7dc51364aa6f64d";
logging-data="2081079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zgbZxoRW+bet3Gx+tuAASTAdXJaANcyc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:nivF0rUuwiEXYB7Da5FQDKtd1vY=
In-Reply-To: <uq2h63$1v5v8$1@dont-email.me>
Content-Language: en-GB
 by: Malcolm McLean - Thu, 8 Feb 2024 13:03 UTC

On 08/02/2024 12:24, David Brown wrote:
> On 08/02/2024 13:10, Malcolm McLean wrote:
>> On 08/02/2024 11:37, Ben Bacarisse wrote:
>>> bart <bc@freeuk.com> writes:
>>>
>>>> That sounds like your opinion against mine. It's nothing to do with
>>>> spin,
>>>> whatever that means.
>>>
>>> It's spin, because the term is emotive.Ā  "Cluttering up" is how you feel
>>> about it.Ā  The phrase is just a mildly pejorative one about appearances.
>>> There's no substance there.Ā  To make a technical point you would have to
>>> explain how, for example,
>>>
>>> Ā Ā Ā  struct item *items;
>>> Ā Ā Ā  ...
>>> Ā Ā Ā  n_elements = get_number_of_items(...);
>>> Ā Ā Ā  items = malloc(n_elements * sizeof *items);
>>> Ā Ā Ā  ...
>>>
>>> is technically better than
>>>
>>> Ā Ā Ā  n_elements = get_number_of_items(...);
>>> Ā Ā Ā  struct item *items = malloc(n_elements * sizeof *items);
>>>
>>> I've explained (more than once) how I find reasoning about the direct
>>> initialise at first use style easier with fewer distractions.
>>>
>> items = malloc(n_elements * sizeof *items);
>>
>> is shorter than
>>
>> struct item *items = malloc(n_elements * sizeof *items);
>>
>> and that is an objective statement about which there can be no dispute.
>>
>
> But that is not the comparison.
>
> Ā Ā Ā Ā struct item *items = malloc(n_elements * sizeof *items);
>
> is shorter than:
>
> Ā Ā Ā Ā struct item *items;
> Ā Ā Ā Ā items = malloc(n_elements * sizeof *items);
>
> You have to define the variable somewhere.Ā  Doing so when you initialise
> it when you first need it, is, without doubt, objectively shorter.
> Opinions may differ on whether it is clearer, or "cluttered", but which
> is shorter is not in doubt.Ā  (What relevance that might have, is much
> more in doubt.)
>

Sure. But it doesn't look like that. The first line is squirrelled away
at the top and you don't read it.
Of course you can say that you now don't now know that items is a
pointer to the right type of structure, and so the shortening makes it
harder rather than easier to understand. But the claim that the second
one is more "cluttered" is fair.

--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: What I've learned in comp.lang.c

<uq2k9f$1vnhi$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!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: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Thu, 8 Feb 2024 13:17:34 +0000
Organization: A noiseless patient Spider
Lines: 100
Message-ID: <uq2k9f$1vnhi$1@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me>
<20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me>
<upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me>
<upvgp1$1bs8q$1@dont-email.me> <87y1bwtuss.fsf@bsb.me.uk>
<upvo4c$1d64i$1@dont-email.me> <87h6ikthg4.fsf@bsb.me.uk>
<uq0gpd$1hiun$1@dont-email.me> <87il2zrxtn.fsf@bsb.me.uk>
<uq2gav$1uvp4$1@dont-email.me> <uq2h63$1v5v8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Feb 2024 13:17:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="467e1f63ec7a511011c681490b409044";
logging-data="2088498"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0zslP9A+ctjle13K+vBbphODXwi+i6DM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:66dTqPSc4G+W6SaGP+hu6zfbleE=
In-Reply-To: <uq2h63$1v5v8$1@dont-email.me>
Content-Language: en-GB
 by: bart - Thu, 8 Feb 2024 13:17 UTC

On 08/02/2024 12:24, David Brown wrote:
> On 08/02/2024 13:10, Malcolm McLean wrote:
>> On 08/02/2024 11:37, Ben Bacarisse wrote:
>>> bart <bc@freeuk.com> writes:
>>>
>>>> That sounds like your opinion against mine. It's nothing to do with
>>>> spin,
>>>> whatever that means.
>>>
>>> It's spin, because the term is emotive.Ā  "Cluttering up" is how you feel
>>> about it.Ā  The phrase is just a mildly pejorative one about appearances.
>>> There's no substance there.Ā  To make a technical point you would have to
>>> explain how, for example,
>>>
>>> Ā Ā Ā  struct item *items;
>>> Ā Ā Ā  ...
>>> Ā Ā Ā  n_elements = get_number_of_items(...);
>>> Ā Ā Ā  items = malloc(n_elements * sizeof *items);
>>> Ā Ā Ā  ...
>>>
>>> is technically better than
>>>
>>> Ā Ā Ā  n_elements = get_number_of_items(...);
>>> Ā Ā Ā  struct item *items = malloc(n_elements * sizeof *items);
>>>
>>> I've explained (more than once) how I find reasoning about the direct
>>> initialise at first use style easier with fewer distractions.
>>>
>> items = malloc(n_elements * sizeof *items);
>>
>> is shorter than
>>
>> struct item *items = malloc(n_elements * sizeof *items);
>>
>> and that is an objective statement about which there can be no dispute.
>>
>
> But that is not the comparison.
>
> Ā Ā Ā Ā struct item *items = malloc(n_elements * sizeof *items);
>
> is shorter than:
>
> Ā Ā Ā Ā struct item *items;
> Ā Ā Ā Ā items = malloc(n_elements * sizeof *items);
>
> You have to define the variable somewhere.Ā  Doing so when you initialise
> it when you first need it, is, without doubt, objectively shorter.
> Opinions may differ on whether it is clearer, or "cluttered", but which
> is shorter is not in doubt.Ā  (What relevance that might have, is much
> more in doubt.)
>
>

If you want to isolate the executable code then you'd write it like this:

struct item *items;
...
items = malloc(n_elements * sizeof *items);

That code is now cleaner. It also doesn't have that somewhat confusing
(partly due to spacing) '... *items = malloc ...' which makes it look
like an indirect assignment to a pointer called 'item' (compounded by
that '*items' term as the sizeof operand).

It doesn't have the distracting juxtasposition in 'item * items'.

If there was a subsequence assignment to 'items':

items = malloc(n_elements * sizeof *items);
...
items = malloc(m_elements * sizeof *items);

the two look the same; you don't have one pushed over to the right. (I
was able to copy&paste with only a small tweak.)

If I decided I didn't need that first assignment, I don't now need to
transfer that declaration to the next use.

If the assinment is within a nested block, but I decide it needs to be
visible outside the block, I don't need to refactor; it is already visible.

If I decided to change the type of 'items', it's easier if it's at the
top; perhaps there are related variables whose types need changing.

This is especially the case if I have 'aitems' and 'bitems' of the same
type:

struct item *aitems, *bitems;

* I don't need a separate declaration for each

* I can instantly see they are the same type without needing to infer

* I can change the type of both in one place; they can't get out of step

Shall I go on?

Did you see my post where I established that C programs typically have
only 3 locals per function on average?

Re: What I've learned in comp.lang.c

<uq2np1$20cdn$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!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: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Thu, 8 Feb 2024 14:17:04 +0000
Organization: A noiseless patient Spider
Lines: 90
Message-ID: <uq2np1$20cdn$1@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me>
<20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me>
<upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me>
<upvgp1$1bs8q$1@dont-email.me> <87y1bwtuss.fsf@bsb.me.uk>
<upvo4c$1d64i$1@dont-email.me> <87h6ikthg4.fsf@bsb.me.uk>
<uq0gpd$1hiun$1@dont-email.me> <uq0pmc$1j1v4$2@dont-email.me>
<uq11j7$1kemh$1@dont-email.me> <20240207164047.820@kylheku.com>
<uq1d3t$1m1tc$1@dont-email.me> <20240207185645.15@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 8 Feb 2024 14:17:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="467e1f63ec7a511011c681490b409044";
logging-data="2109879"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+CtOaNY4tNSf6U69v5u/djpkcEUMm01aI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:pe5Qg81W7nuyBDFtTOPnOZbEVXQ=
Content-Language: en-GB
In-Reply-To: <20240207185645.15@kylheku.com>
 by: bart - Thu, 8 Feb 2024 14:17 UTC

On 08/02/2024 03:07, Kaz Kylheku wrote:
> On 2024-02-08, bart <bc@freeuk.com> wrote:
>> On 08/02/2024 01:13, Kaz Kylheku wrote:
>>> On 2024-02-07, bart <bc@freeuk.com> wrote:
>>
>>>> This is to me is all a bit mixed up. Much as you dislike other languages
>>>> being brought in, they can give an enlightening perspective.
>>>
>>> Right, nobody here knows anything outside of C, or can think outside of
>>> the C box, except for you.
>>
>> Well, quite. AFAIK, nobody here HAS (1) used a comparable language to C;
>> (2) over such a long term; (3) which they have invented themselves; (4)
>> have implemented themselves; (5) is similar enough to C yet different
>> enough in how it works to give that perspective.
>
> You've taken a perspective is not transferrable to others.
>
> If one can only see something after using your own invention for many
> years, and other people don't have that same invention and
> implementation experience, then they just cannot see what you see.
>
> You cannot teach (2) through (4), just like a basketball coach cannot
> teach a player to be seven foot tall.
>
>> See, I gave an interesting comparison of how my module scheme works
>> orthogonally across all kinds of entities, compared with the confusing
>> mess of C, and you shut down that view.
>>
>> You're never in a million years going to admit that my language has some
>> good points are you? Exactly as I said in my OP.
>
> I have no idea what it is;

You can't understand the concept of having local/exported/imported
attributes apply to any kind of top-level identifier?

C is just an incredible mess when it comes to this. If you can at least
see how it ought to be done, it can be easier to see how to apply that to C.

For example (here I'm using English pseudo-code if you can't stomach my
using examples from a real, working, tested language):

Local int A static int A;

Import int B [extern] int B; // do not initialise

Export int C [extern] int C; // can initialise

Local typedef int D typedef int D;

Import typedef int E typedef int E; // in shared header, or duplicate

Export typedef int F typedef int F; // in shared header

Local #define G #define G

It's poor. 'extern' is generally optional. There is weak separation
between imported and exported names. It's often not clear which module,
if any, 'owns' a entity that uses resources such as code or data memory.

Often any entity that is imported or exported has two declarations: one
inside the module (if it's a defined function, or initialised variable),
and a declaration-only in a shared header.

A typedef like E may be shared across 3 modules (by arranging for them
all to see the same definition), but you can also have a different
typedef 'E' shared across 4 other modules.

If a module includes a header that defines typedef E, it can't shadow
that at file-scope with a different E, only inside a function (which
will allow one million different E's).

If a module wants to use headers from all those 7 headers mentioned,
than that E will clash.

C allows you to have multiple declarations of many of these entities
visible in the same module. You can mix up static and extern versions
provided they're in a certain order.

Did I say it was an incredible mess?

Anyway, very little of this is actually to do with 'linking'; that is
more to do with implementation.

See, you can take a idealised model of how this stuff ought to work, and
from that see how to emulate the needs in C. And also see where C has
weak points, of which there are many.

Re: What I've learned in comp.lang.c

<uq2tbi$21cs3$1@dont-email.me>

  copy mid

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

  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: What I've learned in comp.lang.c
Date: Thu, 8 Feb 2024 16:52:18 +0100
Organization: A noiseless patient Spider
Lines: 157
Message-ID: <uq2tbi$21cs3$1@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me>
<20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me>
<upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me>
<upvgp1$1bs8q$1@dont-email.me> <87y1bwtuss.fsf@bsb.me.uk>
<upvo4c$1d64i$1@dont-email.me> <87h6ikthg4.fsf@bsb.me.uk>
<uq0gpd$1hiun$1@dont-email.me> <87il2zrxtn.fsf@bsb.me.uk>
<uq2gav$1uvp4$1@dont-email.me> <uq2h63$1v5v8$1@dont-email.me>
<uq2k9f$1vnhi$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Feb 2024 15:52:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a878e37942be30dcab60787af34a441b";
logging-data="2143107"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TCgiGhwiw1MiwT5EZDLac36HHytKtlDU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:ppWwR+22YvN+ymn2nTGOkK2i0PY=
Content-Language: en-GB
In-Reply-To: <uq2k9f$1vnhi$1@dont-email.me>
 by: David Brown - Thu, 8 Feb 2024 15:52 UTC

On 08/02/2024 14:17, bart wrote:
> On 08/02/2024 12:24, David Brown wrote:
>> On 08/02/2024 13:10, Malcolm McLean wrote:
>>> On 08/02/2024 11:37, Ben Bacarisse wrote:
>>>> bart <bc@freeuk.com> writes:
>>>>
>>>>> That sounds like your opinion against mine. It's nothing to do with
>>>>> spin,
>>>>> whatever that means.
>>>>
>>>> It's spin, because the term is emotive.Ā  "Cluttering up" is how you
>>>> feel
>>>> about it.Ā  The phrase is just a mildly pejorative one about
>>>> appearances.
>>>> There's no substance there.Ā  To make a technical point you would
>>>> have to
>>>> explain how, for example,
>>>>
>>>> Ā Ā Ā  struct item *items;
>>>> Ā Ā Ā  ...
>>>> Ā Ā Ā  n_elements = get_number_of_items(...);
>>>> Ā Ā Ā  items = malloc(n_elements * sizeof *items);
>>>> Ā Ā Ā  ...
>>>>
>>>> is technically better than
>>>>
>>>> Ā Ā Ā  n_elements = get_number_of_items(...);
>>>> Ā Ā Ā  struct item *items = malloc(n_elements * sizeof *items);
>>>>
>>>> I've explained (more than once) how I find reasoning about the direct
>>>> initialise at first use style easier with fewer distractions.
>>>>
>>> items = malloc(n_elements * sizeof *items);
>>>
>>> is shorter than
>>>
>>> struct item *items = malloc(n_elements * sizeof *items);
>>>
>>> and that is an objective statement about which there can be no dispute.
>>>
>>
>> But that is not the comparison.
>>
>> Ā Ā Ā Ā Ā struct item *items = malloc(n_elements * sizeof *items);
>>
>> is shorter than:
>>
>> Ā Ā Ā Ā Ā struct item *items;
>> Ā Ā Ā Ā Ā items = malloc(n_elements * sizeof *items);
>>
>> You have to define the variable somewhere.Ā  Doing so when you
>> initialise it when you first need it, is, without doubt, objectively
>> shorter. Opinions may differ on whether it is clearer, or "cluttered",
>> but which is shorter is not in doubt.Ā  (What relevance that might
>> have, is much more in doubt.)
>>
>>
>
> If you want to isolate the executable code then you'd write it like this:
>
> Ā Ā Ā Ā  struct item *items;
> Ā Ā Ā Ā  ...
> Ā Ā Ā Ā  items = malloc(n_elements * sizeof *items);
>

Yes - /if/ you want to do this.

But I don't see a reason to make such a distinction - I see no benefit
in "isolating the executable code". Both lines are essential parts of
the program, they are used together, and IMHO they belong together.

I appreciate that you prefer to keep them separate. I believe the
arguments for keeping them separate are far weaker than the arguments
for declaring and defining variables only when you are ready to use
them, and within the smallest practical scope.

> That code is now cleaner.

That is an opinion, and no more than that.

> It also doesn't have that somewhat confusing
> (partly due to spacing) '... *items = malloc ...' which makes it look
> like an indirect assignment to a pointer called 'item' (compounded by
> that '*items' term as the sizeof operand).

I personally put spaces on either side of the "*", whether the
declaration is separate or not. But spacing habits are /definitely/ a
matter of personal preference. (And I'd also typedef the struct, which
is again a personal preference.)

>
> It doesn't have the distracting juxtasposition in 'item * items'.
>
> If there was a subsequence assignment to 'items':
>
> Ā Ā Ā Ā  items = malloc(n_elements * sizeof *items);
> Ā Ā Ā Ā  ...
> Ā Ā Ā Ā  items = malloc(m_elements * sizeof *items);
>
> the two look the same; you don't have one pushed over to the right. (I
> was able to copy&paste with only a small tweak.)

Agreed - but it is not something you actually have very often.

I can accept that there are occasions when the particular format of the
code or repetitive patterns would make the code clearer to have a single
declaration at the top and multiple assignments like this. But it is
not a common situation. I am quite happy for general rules to be
overridden on a case-by-case basis if it significantly improves clarity.

> This is especially the case if I have 'aitems' and 'bitems' of the same
> type:
>
> Ā Ā Ā Ā  struct item *aitems, *bitems;

A trick to writing clear and maintainable code is not to do that. It is
very rare IME that it is a good idea with multiple declarations on one
line, and it is never a good thing if there are pointers, arrays, or
other bits and pieces involved.

So if the only benefit from "only declare your variables when you have
an initial value" is that you never again write such multiple
declaration lines, then it would be a good thing.

>
> * I don't need a separate declaration for each

That doesn't matter when the declaration is part of the initialisation.

>
> * I can instantly see they are the same type without needing to infer
>

No, you can't. You have to look further up the function and find it in
the list of variables. With the declare and initialise pattern, the
type is right there in the relevant code - not elsewhere.

> * I can change the type of both in one place; they can't get out of step
>

And you have to re-arrange things if you want to change the type of just
one of them.

> Shall I go on?
>

No. We've heard all these arguments before. They are not new. I don't
think the points are worthless, I simply think they are not nearly
enough to sway the balance.

> Did you see my post where I established that C programs typically have
> only 3 locals per function on average?

I ignored that one. I can't reply to everything!

Re: What I've learned in comp.lang.c

<N07xN.342025$c3Ea.10589@fx10.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.hispagatos.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx10.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: What I've learned in comp.lang.c
Newsgroups: comp.lang.c
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com> <20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me> <20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me> <upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me> <874jekvbdh.fsf@bsb.me.uk> <uq01ti$1erim$2@dont-email.me> <87msscthq3.fsf@bsb.me.uk> <uq08i5$1fvu8$1@dont-email.me> <87cyt7rxh8.fsf@bsb.me.uk> <uq2gk5$1uvp4$2@dont-email.me> <uq2hev$1v5v8$2@dont-email.me>
Lines: 18
Message-ID: <N07xN.342025$c3Ea.10589@fx10.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Thu, 08 Feb 2024 16:09:17 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 08 Feb 2024 16:09:17 GMT
X-Received-Bytes: 1703
 by: Scott Lurndal - Thu, 8 Feb 2024 16:09 UTC

David Brown <david.brown@hesbynett.no> writes:
>On 08/02/2024 13:15, Malcolm McLean wrote:
>> On 08/02/2024 11:45, Ben Bacarisse wrote:
>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>
>>>> No. It means writing the code in a way which is common in C and has
>>>> certain
>>>> advantages, but is not so in other languages.
>>>
>>> Where do you get your superior knowledge of English from, and is there a
>>> way anyone else can hope to achieve your level of competence?
>>>
>> Degree in English literature.
>
>I would never have guessed that from the way you write and from how
>often you fail to read other people's posts.

And Malcolm doesn't apparently recognize sarcasm.

Re: What I've learned in comp.lang.c

<uq2vev$21oav$1@dont-email.me>

  copy mid

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

  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: richard....@gmail.invalid (Richard Harnden)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Thu, 8 Feb 2024 16:28:15 +0000
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <uq2vev$21oav$1@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me>
<20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me>
<upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me>
<874jekvbdh.fsf@bsb.me.uk> <uq01ti$1erim$2@dont-email.me>
<87msscthq3.fsf@bsb.me.uk> <uq08i5$1fvu8$1@dont-email.me>
<87cyt7rxh8.fsf@bsb.me.uk> <uq2gk5$1uvp4$2@dont-email.me>
<uq2hev$1v5v8$2@dont-email.me> <N07xN.342025$c3Ea.10589@fx10.iad>
Reply-To: richard.harnden@invalid.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 8 Feb 2024 16:28:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="48ca7c2093ea018eea44c0bbe20e7920";
logging-data="2154847"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GvIV0sY/W4CIS2Xg3FrUABIuvRBIEdkI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:7OBF5tWCplYwvUBjk//jKxv4+C8=
In-Reply-To: <N07xN.342025$c3Ea.10589@fx10.iad>
Content-Language: en-GB
 by: Richard Harnden - Thu, 8 Feb 2024 16:28 UTC

On 08/02/2024 16:09, Scott Lurndal wrote:
> David Brown <david.brown@hesbynett.no> writes:
>> On 08/02/2024 13:15, Malcolm McLean wrote:
>>> On 08/02/2024 11:45, Ben Bacarisse wrote:
>>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>>
>>>>> No. It means writing the code in a way which is common in C and has
>>>>> certain
>>>>> advantages, but is not so in other languages.
>>>>
>>>> Where do you get your superior knowledge of English from, and is there a
>>>> way anyone else can hope to achieve your level of competence?
>>>>
>>> Degree in English literature.
>>
>> I would never have guessed that from the way you write and from how
>> often you fail to read other people's posts.
>
> And Malcolm doesn't apparently recognize sarcasm.

I think they only teach that at Cambridge.

Re: What I've learned in comp.lang.c

<87v86yria3.fsf@bsb.me.uk>

  copy mid

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

  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: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Thu, 08 Feb 2024 17:13:24 +0000
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <87v86yria3.fsf@bsb.me.uk>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me>
<20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me>
<upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me>
<874jekvbdh.fsf@bsb.me.uk> <uq01ti$1erim$2@dont-email.me>
<87msscthq3.fsf@bsb.me.uk> <uq08i5$1fvu8$1@dont-email.me>
<87cyt7rxh8.fsf@bsb.me.uk> <uq2gk5$1uvp4$2@dont-email.me>
<uq2hev$1v5v8$2@dont-email.me> <N07xN.342025$c3Ea.10589@fx10.iad>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="54eb84d17df285f842deffe57bcb859c";
logging-data="2160516"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18uG2Ar+qRXwXttwV4JUi7tgnDutwFHIAc="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:k9c0fam36okT0Sv6kNJBNLmD4cg=
sha1:j1/SYKj6k1F3z7lEar/oUgNGVg0=
X-BSB-Auth: 1.aa8c20ca00a5ed15af25.20240208171324GMT.87v86yria3.fsf@bsb.me.uk
 by: Ben Bacarisse - Thu, 8 Feb 2024 17:13 UTC

scott@slp53.sl.home (Scott Lurndal) writes:

> David Brown <david.brown@hesbynett.no> writes:
>>On 08/02/2024 13:15, Malcolm McLean wrote:
>>> On 08/02/2024 11:45, Ben Bacarisse wrote:
>>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>>
>>>>> No. It means writing the code in a way which is common in C and has
>>>>> certain
>>>>> advantages, but is not so in other languages.
>>>>
>>>> Where do you get your superior knowledge of English from, and is there a
>>>> way anyone else can hope to achieve your level of competence?
>>>>
>>> Degree in English literature.
>>
>>I would never have guessed that from the way you write and from how
>>often you fail to read other people's posts.
>
> And Malcolm doesn't apparently recognize sarcasm.

I think it's extremely unlikely that he missed it.

--
Ben.

Re: What I've learned in comp.lang.c

<87plx6ri37.fsf@bsb.me.uk>

  copy mid

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

  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: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Thu, 08 Feb 2024 17:17:32 +0000
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <87plx6ri37.fsf@bsb.me.uk>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me>
<20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me>
<upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me>
<upvgp1$1bs8q$1@dont-email.me> <87y1bwtuss.fsf@bsb.me.uk>
<upvo4c$1d64i$1@dont-email.me> <87h6ikthg4.fsf@bsb.me.uk>
<uq0gpd$1hiun$1@dont-email.me> <87il2zrxtn.fsf@bsb.me.uk>
<uq2gav$1uvp4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="54eb84d17df285f842deffe57bcb859c";
logging-data="2160516"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GDfncBIsuWPS2oXPWRykBrU9SFTIWq6A="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:jNP+MxB1hCZkEhlFl4ozYTJNEho=
sha1:ked9CUfDd+cikZKdoY9Q+W2wQak=
X-BSB-Auth: 1.ce093c9a62104eed173c.20240208171733GMT.87plx6ri37.fsf@bsb.me.uk
 by: Ben Bacarisse - Thu, 8 Feb 2024 17:17 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:

> On 08/02/2024 11:37, Ben Bacarisse wrote:
>> bart <bc@freeuk.com> writes:
>>
>>> That sounds like your opinion against mine. It's nothing to do with spin,
>>> whatever that means.
>> It's spin, because the term is emotive. "Cluttering up" is how you feel
>> about it. The phrase is just a mildly pejorative one about appearances.
>> There's no substance there. To make a technical point you would have to
>> explain how, for example,
>> struct item *items;
>> ...
>> n_elements = get_number_of_items(...);
>> items = malloc(n_elements * sizeof *items);
>> ...
>> is technically better than
>> n_elements = get_number_of_items(...);
>> struct item *items = malloc(n_elements * sizeof *items);
>> I've explained (more than once) how I find reasoning about the direct
>> initialise at first use style easier with fewer distractions.
>>
> items = malloc(n_elements * sizeof *items);
>
> is shorter than
>
> struct item *items = malloc(n_elements * sizeof *items);
>
> and that is an objective statement about which there can be no
> dispute.

Yes, but is it relevant or even interesting?

--
Ben.

Re: What I've learned in comp.lang.c

<20240208094507.61@kylheku.com>

  copy mid

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

  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: What I've learned in comp.lang.c
Date: Thu, 8 Feb 2024 17:48:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <20240208094507.61@kylheku.com>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<upupab$14ugp$1@dont-email.me> <20240207135635.906@kylheku.com>
<uq1bqi$1ls91$1@dont-email.me> <20240207180750.491@kylheku.com>
<20240208131010.00000ee8@yahoo.com>
Injection-Date: Thu, 8 Feb 2024 17:48:38 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="163263dc92baed57fd9aed84cf1a8c15";
logging-data="2178246"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/nj1/qZtUrCB7kT21REWNeYY2ENYrGRos="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:2mWvcywNfzSO/iQ2OxXuh4cIaLA=
 by: Kaz Kylheku - Thu, 8 Feb 2024 17:48 UTC

On 2024-02-08, Michael S <already5chosen@yahoo.com> wrote:
> $ /mingw32/bin/as.exe --version
> GNU assembler (GNU Binutils) 2.40
> Copyright (C) 2023 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms
> of the GNU General Public License version 3 or later.
> This program has absolutely no warranty.
> This assembler was configured for a target of `i686-w64-mingw32'.
>
> $ size /mingw32/bin/as.exe
> text data bss dec hex filename
> 2941952 10392 43416 2995760 2db630
> C:/bin/msys64a/mingw32/bin/as.exe

LOL, even a 400 kilobyte assembler is bat shit crazy.

Can you imagine working with that on a 512 Kb IBM PC?

GNU as probably doesn't have half the features of, say, Randy Hyde's
LISA for APPLE II. (Lazer Systems Interactive Symbolic Assembler).

Might that be statically linking numerous libraries, like libbfd and
whatnot? Possibly it supports unnecessary object formats that the MinGW
user will never use.

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

Re: What I've learned in comp.lang.c

<20240208213010.00006110@yahoo.com>

  copy mid

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

  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: already5...@yahoo.com (Michael S)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Thu, 8 Feb 2024 21:30:10 +0200
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <20240208213010.00006110@yahoo.com>
References: <uppcfk$3ui34$1@dont-email.me>
<20240204191630.146@kylheku.com>
<upupab$14ugp$1@dont-email.me>
<20240207135635.906@kylheku.com>
<uq1bqi$1ls91$1@dont-email.me>
<20240207180750.491@kylheku.com>
<20240208131010.00000ee8@yahoo.com>
<20240208094507.61@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="881df8e6859c4216aa76a0962ccfcf9e";
logging-data="2215207"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19c0YEqupQ3QmFRSOQhZtxd0ynuHawBxVU="
Cancel-Lock: sha1:Evsp+ooCjqN05MBtLpqk8E7WA0I=
X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
 by: Michael S - Thu, 8 Feb 2024 19:30 UTC

On Thu, 8 Feb 2024 17:48:38 -0000 (UTC)
Kaz Kylheku <433-929-6894@kylheku.com> wrote:

> On 2024-02-08, Michael S <already5chosen@yahoo.com> wrote:
> > $ /mingw32/bin/as.exe --version
> > GNU assembler (GNU Binutils) 2.40
> > Copyright (C) 2023 Free Software Foundation, Inc.
> > This program is free software; you may redistribute it under the
> > terms of the GNU General Public License version 3 or later.
> > This program has absolutely no warranty.
> > This assembler was configured for a target of `i686-w64-mingw32'.
> >
> > $ size /mingw32/bin/as.exe
> > text data bss dec hex filename
> > 2941952 10392 43416 2995760 2db630
> > C:/bin/msys64a/mingw32/bin/as.exe
>
> LOL, even a 400 kilobyte assembler is bat shit crazy.
>
> Can you imagine working with that on a 512 Kb IBM PC?
>
> GNU as probably doesn't have half the features of, say, Randy Hyde's
> LISA for APPLE II. (Lazer Systems Interactive Symbolic Assembler).
>
> Might that be statically linking numerous libraries, like libbfd and
> whatnot? Possibly it supports unnecessary object formats that the
> MinGW user will never use.
>

I am pretty sure that it is because of static libraries (which by
itself is a reasonable choice on platform like msys2) but don't want to
guess which library is in fault.

Re: What I've learned in comp.lang.c

<uq3e5d$24dno$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!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: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Thu, 8 Feb 2024 20:39:08 +0000
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <uq3e5d$24dno$1@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<upupab$14ugp$1@dont-email.me> <20240207135635.906@kylheku.com>
<uq1bqi$1ls91$1@dont-email.me> <20240207180750.491@kylheku.com>
<20240208131010.00000ee8@yahoo.com> <20240208094507.61@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 8 Feb 2024 20:39:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="467e1f63ec7a511011c681490b409044";
logging-data="2242296"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gGiC/0oWpq699DcOeCzUxW+uQeiKuOGM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:1/zeXeCBqBKC2jKhSthM2MXSRpc=
Content-Language: en-GB
In-Reply-To: <20240208094507.61@kylheku.com>
 by: bart - Thu, 8 Feb 2024 20:39 UTC

On 08/02/2024 17:48, Kaz Kylheku wrote:
> On 2024-02-08, Michael S <already5chosen@yahoo.com> wrote:
>> $ /mingw32/bin/as.exe --version
>> GNU assembler (GNU Binutils) 2.40
>> Copyright (C) 2023 Free Software Foundation, Inc.
>> This program is free software; you may redistribute it under the terms
>> of the GNU General Public License version 3 or later.
>> This program has absolutely no warranty.
>> This assembler was configured for a target of `i686-w64-mingw32'.
>>
>> $ size /mingw32/bin/as.exe
>> text data bss dec hex filename
>> 2941952 10392 43416 2995760 2db630
>> C:/bin/msys64a/mingw32/bin/as.exe
>
> LOL, even a 400 kilobyte assembler is bat shit crazy.

That's how I feel about a lot of programs.

You think it's crazy because you understand the task that is to be done
and know that 4MB or 40MB would be over the top.

The code part section of my own x64 assembler, if I strip out exraneous
things like the disassembler, is 70KB. That includes a .EXE target. If I
take that out (so only .OBJ target) then it's 61KB, of which 21KB is the
standard library of the language anyway.

So code just for the assembler is about 40KB, which is for a subset of x64.

> Can you imagine working with that on a 512 Kb IBM PC?

Can you imagine working with any of the compilers that are highly
regarded here on such a machine? And with floppy disks?

Re: What I've learned in comp.lang.c

<uq3hmh$24ngq$2@dont-email.me>

  copy mid

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

  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: What I've learned in comp.lang.c
Date: Thu, 8 Feb 2024 13:39:30 -0800
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <uq3hmh$24ngq$2@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<upupab$14ugp$1@dont-email.me> <20240207135635.906@kylheku.com>
<uq1bqi$1ls91$1@dont-email.me> <20240207180750.491@kylheku.com>
<20240208131010.00000ee8@yahoo.com> <20240208094507.61@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 8 Feb 2024 21:39:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cc08f72a34b5a985cecd1925fc46b3c5";
logging-data="2252314"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ce5uR76icCJhqd2mFJQ2Xq6KV9YAIcIU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:48+Zq6tyct8eQIrYq4NezP6bgds=
Content-Language: en-US
In-Reply-To: <20240208094507.61@kylheku.com>
 by: Chris M. Thomasson - Thu, 8 Feb 2024 21:39 UTC

On 2/8/2024 9:48 AM, Kaz Kylheku wrote:
> On 2024-02-08, Michael S <already5chosen@yahoo.com> wrote:
[...]
> LOL, even a 400 kilobyte assembler is bat shit crazy.
>
> Can you imagine working with that on a 512 Kb IBM PC?

This assembler was pretty small... ;^D

https://youtu.be/bCSDkjhVM2A

>
> GNU as probably doesn't have half the features of, say, Randy Hyde's
> LISA for APPLE II. (Lazer Systems Interactive Symbolic Assembler).
>
> Might that be statically linking numerous libraries, like libbfd and
> whatnot? Possibly it supports unnecessary object formats that the MinGW
> user will never use.
>

Re: What I've learned in comp.lang.c

<87il2yfvmp.fsf@nosuchdomain.example.com>

  copy mid

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

  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: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Thu, 08 Feb 2024 14:18:06 -0800
Organization: None to speak of
Lines: 17
Message-ID: <87il2yfvmp.fsf@nosuchdomain.example.com>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<upupab$14ugp$1@dont-email.me> <20240207135635.906@kylheku.com>
<uq1bqi$1ls91$1@dont-email.me> <20240207180750.491@kylheku.com>
<20240208131010.00000ee8@yahoo.com> <20240208094507.61@kylheku.com>
<uq3hmh$24ngq$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="93a22936c47851e9e74d3b604d07c7bb";
logging-data="2277881"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fLMfEMpNnowxsDFVjVxLW"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:s79/yQ6N2HQrRVPXmpjEf0d7WOA=
sha1:JanMfHHJWVNa8bQgPRFlQnErqWw=
 by: Keith Thompson - Thu, 8 Feb 2024 22:18 UTC

"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
> On 2/8/2024 9:48 AM, Kaz Kylheku wrote:
>> On 2024-02-08, Michael S <already5chosen@yahoo.com> wrote:
> [...]
>> LOL, even a 400 kilobyte assembler is bat shit crazy.
>> Can you imagine working with that on a 512 Kb IBM PC?
>
> This assembler was pretty small... ;^D
>
> https://youtu.be/bCSDkjhVM2A

Please stop doing this.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: What I've learned in comp.lang.c

<uq3kkt$131u9$1@news.xmission.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!nntp.comgw.net!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Thu, 8 Feb 2024 22:29:49 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uq3kkt$131u9$1@news.xmission.com>
References: <uppcfk$3ui34$1@dont-email.me> <20240208094507.61@kylheku.com> <uq3hmh$24ngq$2@dont-email.me> <87il2yfvmp.fsf@nosuchdomain.example.com>
Injection-Date: Thu, 8 Feb 2024 22:29:49 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="1148873"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Thu, 8 Feb 2024 22:29 UTC

In article <87il2yfvmp.fsf@nosuchdomain.example.com>,
Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
>> On 2/8/2024 9:48 AM, Kaz Kylheku wrote:
>>> On 2024-02-08, Michael S <already5chosen@yahoo.com> wrote:
>> [...]
>>> LOL, even a 400 kilobyte assembler is bat shit crazy.
>>> Can you imagine working with that on a 512 Kb IBM PC?
>>
>> This assembler was pretty small... ;^D
>>
>> https://youtu.be/bCSDkjhVM2A
>
>Please keep doing this.

"Introduction to Assembly Language Programming on the Apple IIgs - Lesson 1"

--
"He is exactly as they taught in KGB school: an egoist, a liar, but talented - he
knows the mind of the wrestling-loving, under-educated, authoritarian-admiring
white male populous."
- Malcolm Nance, p59. -

Re: What I've learned in comp.lang.c

<uq3lf8$26039$1@dont-email.me>

  copy mid

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

  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: What I've learned in comp.lang.c
Date: Thu, 8 Feb 2024 14:43:53 -0800
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uq3lf8$26039$1@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240208094507.61@kylheku.com>
<uq3hmh$24ngq$2@dont-email.me> <87il2yfvmp.fsf@nosuchdomain.example.com>
<uq3kkt$131u9$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 8 Feb 2024 22:43:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cc08f72a34b5a985cecd1925fc46b3c5";
logging-data="2293865"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193ICoRq93by2YA4BjsZ188DeeO6yqQ9+4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:pCJT5RVr+Y1E22DVgxb/fqGsfrM=
In-Reply-To: <uq3kkt$131u9$1@news.xmission.com>
Content-Language: en-US
 by: Chris M. Thomasson - Thu, 8 Feb 2024 22:43 UTC

On 2/8/2024 2:29 PM, Kenny McCormack wrote:
> In article <87il2yfvmp.fsf@nosuchdomain.example.com>,
> Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
>>> On 2/8/2024 9:48 AM, Kaz Kylheku wrote:
>>>> On 2024-02-08, Michael S <already5chosen@yahoo.com> wrote:
>>> [...]
>>>> LOL, even a 400 kilobyte assembler is bat shit crazy.
>>>> Can you imagine working with that on a 512 Kb IBM PC?
>>>
>>> This assembler was pretty small... ;^D
>>>
>>> https://youtu.be/bCSDkjhVM2A
>>
>> Please keep doing this.
>
> "Introduction to Assembly Language Programming on the Apple IIgs - Lesson 1"
>

Yup. I forgot to put in the title. Sorry everybody. ;^o

Re: What I've learned in comp.lang.c

<867cje7ber.fsf@linuxsc.com>

  copy mid

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

  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: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Thu, 08 Feb 2024 16:02:04 -0800
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <867cje7ber.fsf@linuxsc.com>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com> <20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me> <20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me> <upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me> <upvgp1$1bs8q$1@dont-email.me> <87y1bwtuss.fsf@bsb.me.uk> <upvo4c$1d64i$1@dont-email.me> <87h6ikthg4.fsf@bsb.me.uk> <uq0gpd$1hiun$1@dont-email.me> <uq0pmc$1j1v4$2@dont-email.me> <uq11j7$1kemh$1@dont-email.me> <20240207164047.820@kylheku.com> <uq1d3t$1m1tc$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="5ded87dca6ebfa6cbf5e6333b6958a23";
logging-data="2338809"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ASbahaVwwA4VfOBgqXjPmtDkOZEbDnEM="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:4nep7TV7PUNyAWn/kG4clzRtWrU=
sha1:YxhcN9yAg4jpccqyjg6v4jSQuww=
 by: Tim Rentsch - Fri, 9 Feb 2024 00:02 UTC

bart <bc@freeuk.com> writes:

> You're never in a million years going to admit that my language
> has some good points are you?

Where can I get a user manual for it?

Re: What I've learned in comp.lang.c

<uq3so5$28lqh$1@dont-email.me>

  copy mid

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

  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: What I've learned in comp.lang.c
Date: Fri, 9 Feb 2024 00:48:05 +0000
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uq3so5$28lqh$1@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me>
<20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me>
<upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me>
<upvgp1$1bs8q$1@dont-email.me> <87y1bwtuss.fsf@bsb.me.uk>
<upvo4c$1d64i$1@dont-email.me> <87h6ikthg4.fsf@bsb.me.uk>
<uq0gpd$1hiun$1@dont-email.me> <uq0pmc$1j1v4$2@dont-email.me>
<uq11j7$1kemh$1@dont-email.me> <20240207164047.820@kylheku.com>
<uq1d3t$1m1tc$1@dont-email.me> <867cje7ber.fsf@linuxsc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 9 Feb 2024 00:48:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7249358d931a886a5d72096d92eeb1eb";
logging-data="2381649"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KUSncVCI8CMVojcIpmI5/xxWCZsw01pE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:hzMGl9BX03d5XwjQQV3uEIL8BAU=
Content-Language: en-GB
In-Reply-To: <867cje7ber.fsf@linuxsc.com>
 by: bart - Fri, 9 Feb 2024 00:48 UTC

On 09/02/2024 00:02, Tim Rentsch wrote:
> bart <bc@freeuk.com> writes:
>
>> You're never in a million years going to admit that my language
>> has some good points are you?
>
> Where can I get a user manual for it?

Why? I haven't read a language manual since the 1980s.

I can still appreciate interesting ideas another language might have, or
even just ideas in isolation.

This is just churlishness.

Re: What I've learned in comp.lang.c

<86plx65roq.fsf@linuxsc.com>

  copy mid

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

  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: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Thu, 08 Feb 2024 17:53:25 -0800
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <86plx65roq.fsf@linuxsc.com>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com> <20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me> <20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me> <upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me> <874jekvbdh.fsf@bsb.me.uk> <uq01ti$1erim$2@dont-email.me> <87msscthq3.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="5ded87dca6ebfa6cbf5e6333b6958a23";
logging-data="2422627"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+u+K+pyaIYFbf5p+alkHdpd4JdMGr1Y18="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:BELX5LeNECOqi+mH+ZY8vmdvTIQ=
sha1:SAsRXum8A4pw9jQ22hhC8tr9pr8=
 by: Tim Rentsch - Fri, 9 Feb 2024 01:53 UTC

Ben Bacarisse <ben.usenet@bsb.me.uk> writes:

> The most common meaning of "idiomatic", and the one I usually
> associate with it in [the context of some C coding conventions],
> is "containing expressions that are natural and correct". [...]

It surprised me to read this. In my lexicon "idiomatic" usually
means something more like "easily understood by a native speaker
but resistant to literal translation". An example might be
"raining cats and dogs".

Looking up "idiom" and "idiomatic" in several online dictionaries,
the meanings are definitely multi-valued. In C we might say that
Duff's Device is idiomatic. On the other hand we could say K&R
style function definitions are unusual in contemporary C idiom
(and so by implication ANSI/ISO C style function definitions are
idiomatic). So one meaning is more or less "normal practice"
whereas another meaning is more like "strange although often used
construction".

Please note that I am expressing no opinion on which meaning is
"better" or "worse", or anything along those lines. I just found
it interesting that these words have somewhat divergent meanings.

Re: What I've learned in comp.lang.c

<uq4ll3$2hive$1@dont-email.me>

  copy mid

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

  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: What I've learned in comp.lang.c
Date: Fri, 9 Feb 2024 08:53:07 +0100
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <uq4ll3$2hive$1@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me>
<20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me>
<upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me>
<upvgp1$1bs8q$1@dont-email.me> <87y1bwtuss.fsf@bsb.me.uk>
<upvo4c$1d64i$1@dont-email.me> <87h6ikthg4.fsf@bsb.me.uk>
<uq0gpd$1hiun$1@dont-email.me> <uq0pmc$1j1v4$2@dont-email.me>
<uq11j7$1kemh$1@dont-email.me> <20240207164047.820@kylheku.com>
<uq1d3t$1m1tc$1@dont-email.me> <867cje7ber.fsf@linuxsc.com>
<uq3so5$28lqh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 9 Feb 2024 07:53:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9c8bd9f8f89cf9a03af351ae8d81a71b";
logging-data="2673646"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19B9Zw0P4JNKADW+VfkW74aoxMS3D3Rfvo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:521qI7YXqSJjSNtT8VIML1f7ExY=
Content-Language: en-GB
In-Reply-To: <uq3so5$28lqh$1@dont-email.me>
 by: David Brown - Fri, 9 Feb 2024 07:53 UTC

On 09/02/2024 01:48, bart wrote:
> On 09/02/2024 00:02, Tim Rentsch wrote:
>> bart <bc@freeuk.com> writes:
>>
>>> You're never in a million years going to admit that my language
>>> has some good points are you?
>>
>> Where can I get a user manual for it?
>
> Why? I haven't read a language manual since the 1980s.
>

It's perhaps uncommon to read entire language manuals, but it is
extremely common to read parts, and use other parts for reference. I
have read large parts of the C standards from C99 to C23. More
relevantly here is the tools manuals - I have read much of the gcc
manual (and the manuals for ld, as, and make), and re-read parts that
change for new versions. For all the C compilers I have used in my
professional work, I have read at least the parts covering
compatibility, flags, options, C standard versions, and extensions.

I expect I read more manuals than most developers, but it would be
inconceivable for me to use a language tool seriously if it did not have
a manual that I could at least refer to as needed.

> I can still appreciate interesting ideas another language might have, or
> even just ideas in isolation.

Sure.

>
> This is just churlishness.
>

I can't speak for Tim's motives, but for my own part, the lack of good
documentation and specifications would rule out a language or compiler
for my use on anything beyond play and experimentation.

Re: What I've learned in comp.lang.c

<uq4m64$2hive$2@dont-email.me>

  copy mid

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

  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: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Fri, 9 Feb 2024 09:02:12 +0100
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <uq4m64$2hive$2@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<20240205183233.00000632@yahoo.com> <uprec5$eb3i$2@dont-email.me>
<20240205124031.788@kylheku.com> <upsrh5$qb8m$1@dont-email.me>
<upuf0v$13gvv$1@dont-email.me> <upvcv5$1bcum$1@dont-email.me>
<874jekvbdh.fsf@bsb.me.uk> <uq01ti$1erim$2@dont-email.me>
<87msscthq3.fsf@bsb.me.uk> <uq08i5$1fvu8$1@dont-email.me>
<87cyt7rxh8.fsf@bsb.me.uk> <uq2gk5$1uvp4$2@dont-email.me>
<uq2hev$1v5v8$2@dont-email.me> <uq2j01$1vg9n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 9 Feb 2024 08:02:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9c8bd9f8f89cf9a03af351ae8d81a71b";
logging-data="2673646"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18IhDxWsizMo0GGdUqfKtQshlYnK6X5Pms="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:sAnnDlXAv8VxwFK2yxdX6VkZ72s=
Content-Language: en-GB
In-Reply-To: <uq2j01$1vg9n$1@dont-email.me>
 by: David Brown - Fri, 9 Feb 2024 08:02 UTC

On 08/02/2024 13:55, Malcolm McLean wrote:
> On 08/02/2024 12:29, David Brown wrote:
>> On 08/02/2024 13:15, Malcolm McLean wrote:
>>> On 08/02/2024 11:45, Ben Bacarisse wrote:
>>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>>
>>>>> No. It means writing the code in a way which is common in C and has
>>>>> certain
>>>>> advantages, but is not so in other languages.
>>>>
>>>> Where do you get your superior knowledge of English from, and is
>>>> there a
>>>> way anyone else can hope to achieve your level of competence?
>>>>
>>> Degree in English literature.
>>
>> I would never have guessed that from the way you write and from how
>> often you fail to read other people's posts.
>>
>
> What an Oxford English tutor mostly cares about is that the essay is
> produced. Not so much what it says. You'll always get some marks for
> writing something and will therefore pass, but you can get no marks for
> nothing and can only fail. So handing in a stupid essay is acceptable
> but not handing in the essay at all is a big no no and tutors really
> hate that. It's all about pulling something together in a tight deadline
> on a subject about which you knew absolutely nothing last week, and
> that's what they value. So it does encourage a rather slapdash approach
> and reading things quickly, and maybe that is a fault.
>

I guess there are good tutors and bad tutors, even at Oxford. What you
describe bears no relation to the experiences of friends at Oxford
university who studied English literature. My /maths/ tutor would have
failed someone who handed in work as carelessly and thoughtlessly
written as some of your posts, regardless of whether the mathematics
itself were correct.

Are you really suggesting your tutor merely counted the number of pages
you handed in, and didn't care if you had read the texts or not? He/she
didn't care if you talked about Shakespeare's plays, or if you called
them "actions" since that's what actors perform, and because you
consider the use of standard terms to be beneath you?

Re: What I've learned in comp.lang.c

<uq4moj$2hive$3@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!nyheter.lysator.liu.se!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: What I've learned in comp.lang.c
Date: Fri, 9 Feb 2024 09:12:03 +0100
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <uq4moj$2hive$3@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240208094507.61@kylheku.com>
<uq3hmh$24ngq$2@dont-email.me> <87il2yfvmp.fsf@nosuchdomain.example.com>
<uq3kkt$131u9$1@news.xmission.com> <uq3lf8$26039$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 9 Feb 2024 08:12:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9c8bd9f8f89cf9a03af351ae8d81a71b";
logging-data="2673646"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196nZV5pINgwCiWo3b7ZzrONLD2V8HebvU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:stuKGfi0Ms+Rzi8I21V0oo3OyhM=
Content-Language: en-GB
In-Reply-To: <uq3lf8$26039$1@dont-email.me>
 by: David Brown - Fri, 9 Feb 2024 08:12 UTC

On 08/02/2024 23:43, Chris M. Thomasson wrote:
> On 2/8/2024 2:29 PM, Kenny McCormack wrote:
>> In article <87il2yfvmp.fsf@nosuchdomain.example.com>,
>> Keith ThompsonĀ  <Keith.S.Thompson+u@gmail.com> wrote:
>>> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
>>>> On 2/8/2024 9:48 AM, Kaz Kylheku wrote:
>>>>> On 2024-02-08, Michael S <already5chosen@yahoo.com> wrote:
>>>> [...]
>>>>> LOL, even a 400 kilobyte assembler is bat shit crazy.
>>>>> Can you imagine working with that on a 512 Kb IBM PC?
>>>>
>>>> This assembler was pretty small... ;^D
>>>>
>>>> https://youtu.be/bCSDkjhVM2A
>>>
>>> Please keep doing this.
>>
>> "Introduction to Assembly Language Programming on the Apple IIgs -
>> Lesson 1"
>>
>
> Yup. I forgot to put in the title. Sorry everybody. ;^o

Be assured that almost no one will want to follow these links, even if
they know the title. And I think everyone here is capable of using
google, and of using Youtube's search. If someone reads a post here
mentioning assembly and thinks they'd like to spend a half hour watching
a history video on assembly programming on old computers, then they will
manage that fine.

Please do not post these links - with or without titles - unless they
are extremely relevant and somehow outstanding videos that add so much
to the thread that they are worth watching. And even then, accompany
the link with information, a summary and justification for the link.

I appreciate your many positive contributions to discussions in c.l.c.
and c.l.c++, and your knowledge and opinions on threading and
synchronisation. But I doubt if anyone is interested in yet another
"This made me think of <https://youtu.be..." post. (And while we are at
it, please stop the pissing contests with Bonita on c.l.c++. Take your
pantomime fights to email, or drop them altogether.)

Thanks.

(Cue stupid comment from Kenny as a follow-up.)

Re: What I've learned in comp.lang.c

<20240209155524.00006022@yahoo.com>

  copy mid

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

  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: already5...@yahoo.com (Michael S)
Newsgroups: comp.lang.c
Subject: Re: What I've learned in comp.lang.c
Date: Fri, 9 Feb 2024 15:55:24 +0200
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <20240209155524.00006022@yahoo.com>
References: <uppcfk$3ui34$1@dont-email.me>
<20240204191630.146@kylheku.com>
<20240205190209.00002c1f@yahoo.com>
<uprqu3$gcqc$4@dont-email.me>
<upsrrq$qb8m$2@dont-email.me>
<upuf3o$13gvv$2@dont-email.me>
<upvd2v$1bcum$2@dont-email.me>
<daOwN.308693$7sbb.250916@fx16.iad>
<uq0qdg$1j1v4$4@dont-email.me>
<20240207233706.000068fd@yahoo.com>
<uq217c$1sep3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="f52743512d93bb5249b9875b402dbbbd";
logging-data="2780025"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KODJ/IJYrL3rl4vZLTGbVf3hUjxz4Smc="
Cancel-Lock: sha1:vRwYMZDIgIUMHa3mFfwWUxXRRCU=
X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
 by: Michael S - Fri, 9 Feb 2024 13:55 UTC

On Thu, 8 Feb 2024 08:52:12 +0100
David Brown <david.brown@hesbynett.no> wrote:
>
> You are just a rounding error :-)
>
> But it is interesting to hear of exceptions to the general trend.
>

That is one option.
Another one is you pulling your statistics out of one of your major
anatomical features.

Re: What I've learned in comp.lang.c

<uq5crl$2lqj3$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.hispagatos.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: What I've learned in comp.lang.c
Date: Fri, 9 Feb 2024 15:29:09 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <uq5crl$2lqj3$1@dont-email.me>
References: <uppcfk$3ui34$1@dont-email.me> <20240204191630.146@kylheku.com>
<20240205190209.00002c1f@yahoo.com> <uprqu3$gcqc$4@dont-email.me>
<upsrrq$qb8m$2@dont-email.me> <upuf3o$13gvv$2@dont-email.me>
<upvd2v$1bcum$2@dont-email.me> <daOwN.308693$7sbb.250916@fx16.iad>
<uq0qdg$1j1v4$4@dont-email.me> <20240207233706.000068fd@yahoo.com>
<uq217c$1sep3$1@dont-email.me> <20240209155524.00006022@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 9 Feb 2024 14:29:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9c8bd9f8f89cf9a03af351ae8d81a71b";
logging-data="2812515"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UYxACCvVjBY6GDV2Mb8nowpput5Qo3PM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:6Wfn+c9mmrjEW6dybvw8p0pRuNE=
In-Reply-To: <20240209155524.00006022@yahoo.com>
Content-Language: en-GB
 by: David Brown - Fri, 9 Feb 2024 14:29 UTC

On 09/02/2024 14:55, Michael S wrote:
> On Thu, 8 Feb 2024 08:52:12 +0100
> David Brown <david.brown@hesbynett.no> wrote:
>>
>> You are just a rounding error :-)
>>
>> But it is interesting to hear of exceptions to the general trend.
>>
>
> That is one option.
> Another one is you pulling your statistics out of one of your major
> anatomical features.
>

You do know that embedded Windows - "WinCE" - had its last version
release in 2013, and ended extended support last year? It's share of
the market (whatever market you choose) was never particularly
significant despite significant effort from MS, which is why they
dropped it.

Clearly my comment about "two or three unfortunate people" was not meant
as a serious statistic.

And of course people also make systems that can be classified as
"embedded", but with a desktop (or even server) version of Windows.


devel / comp.lang.c / Re: What I've learned in comp.lang.c

Pages:123456
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor