Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Depends on how you define "always". :-) -- Larry Wall in <199710211647.JAA17957@wall.org>


devel / comp.lang.c / Re: iso646.h

SubjectAuthor
* iso646.hLawrence D'Oliveiro
+- Re: iso646.hLew Pitcher
+* Re: iso646.hJames Kuyper
|`- Re: iso646.hLawrence D'Oliveiro
`* Re: iso646.hDavid Brown
 +* Re: iso646.hScott Lurndal
 |`* Re: iso646.hLawrence D'Oliveiro
 | `* Re: iso646.hKeith Thompson
 |  `* Re: iso646.hLawrence D'Oliveiro
 |   `* Re: iso646.hKeith Thompson
 |    `* Re: iso646.hLawrence D'Oliveiro
 |     `- Re: iso646.hKaz Kylheku
 `* Re: iso646.hLawrence D'Oliveiro
  +- Re: iso646.hKaz Kylheku
  +* Re: iso646.hBlue-Maned_Hawk
  |`* Re: iso646.hLawrence D'Oliveiro
  | +- Re: iso646.hKaz Kylheku
  | `* Re: iso646.hJanis Papanagnou
  |  `* Re: iso646.hLawrence D'Oliveiro
  |   +- Re: iso646.hJanis Papanagnou
  |   `- Re: iso646.hKaz Kylheku
  +- Re: iso646.hTim Rentsch
  +* Re: iso646.hJanis Papanagnou
  |`* Re: iso646.hLawrence D'Oliveiro
  | `- Re: iso646.hJanis Papanagnou
  +* Re: iso646.hDavid Brown
  |`* Re: iso646.hKaz Kylheku
  | +- Re: iso646.hbart
  | +* Re: iso646.hJanis Papanagnou
  | |+* Re: iso646.hKeith Thompson
  | ||`* Re: iso646.hLawrence D'Oliveiro
  | || +* Re: iso646.hKeith Thompson
  | || |`* Re: iso646.hDavid Brown
  | || | `- Re: iso646.hJanis Papanagnou
  | || +* Re: iso646.hLew Pitcher
  | || |`* Re: iso646.hLawrence D'Oliveiro
  | || | +- Re: iso646.hLew Pitcher
  | || | +* Re: iso646.hKaz Kylheku
  | || | |`- Re: iso646.hChris M. Thomasson
  | || | `- Re: iso646.hScott Lurndal
  | || `- Re: iso646.hKaz Kylheku
  | |`* Re: iso646.hKaz Kylheku
  | | +- Re: iso646.hJanis Papanagnou
  | | `* Re: iso646.hJanis Papanagnou
  | |  `- Re: iso646.hKaz Kylheku
  | `- Re: iso646.hDavid Brown
  +- Re: iso646.hbart
  `* Re: iso646.hMalcolm McLean
   +* Re: iso646.hLew Pitcher
   |+- Re: iso646.hKaz Kylheku
   |+* Re: iso646.hLawrence D'Oliveiro
   ||+* Re: iso646.hKeith Thompson
   |||`* Re: iso646.hLawrence D'Oliveiro
   ||| +* Re: iso646.hKeith Thompson
   ||| |+- Re: iso646.hLawrence D'Oliveiro
   ||| |`- Re: iso646.hMalcolm McLean
   ||| `- Re: iso646.hJanis Papanagnou
   ||`- Re: iso646.hJanis Papanagnou
   |`* C/CPP macro conventions (was Re: iso646.h)Janis Papanagnou
   | `* Re: C/CPP macro conventions (was Re: iso646.h)Kaz Kylheku
   |  +- Re: C/CPP macro conventions (was Re: iso646.h)Janis Papanagnou
   |  +- Re: C/CPP macro conventions (was Re: iso646.h)David Brown
   |  `- Re: C/CPP macro conventions (was Re: iso646.h)Blue-Maned_Hawk
   +* Re: iso646.hbart
   |+* Re: iso646.hScott Lurndal
   ||`* Re: iso646.hJames Kuyper
   || +* Re: iso646.hKalevi Kolttonen
   || |+* Re: iso646.hLawrence D'Oliveiro
   || ||`* Re: iso646.hKaz Kylheku
   || || +* Re: iso646.hKalevi Kolttonen
   || || |`* Re: iso646.hJanis Papanagnou
   || || | `* Re: iso646.hJames Kuyper
   || || |  +* Re: iso646.hJanis Papanagnou
   || || |  |+- Re: iso646.hJanis Papanagnou
   || || |  |+* Re: iso646.hKalevi Kolttonen
   || || |  ||`* Re: iso646.hKalevi Kolttonen
   || || |  || `* Re: iso646.hLawrence D'Oliveiro
   || || |  ||  `- Re: iso646.hDavid Brown
   || || |  |`* Re: iso646.hKeith Thompson
   || || |  | `- Re: iso646.hKalevi Kolttonen
   || || |  +- Re: iso646.hLawrence D'Oliveiro
   || || |  `* Re: iso646.hKaz Kylheku
   || || |   `* Re: iso646.hJames Kuyper
   || || |    +* Re: iso646.hDavid Brown
   || || |    |+* Re: iso646.hJanis Papanagnou
   || || |    ||`* Re: iso646.hDavid Brown
   || || |    || `- Re: iso646.hJanis Papanagnou
   || || |    |`* Re: iso646.hbart
   || || |    | `- Re: iso646.hDavid Brown
   || || |    `- Re: iso646.hTim Rentsch
   || || `- Re: iso646.hJanis Papanagnou
   || |`- Unix shell conditionals (was Re: iso646.h)Janis Papanagnou
   || `* Re: iso646.hScott Lurndal
   ||  +* Re: iso646.hKaz Kylheku
   ||  |`* Re: iso646.hbart
   ||  | `- Re: iso646.hKaz Kylheku
   ||  +- Re: iso646.hKeith Thompson
   ||  `* Re: iso646.hJames Kuyper
   ||   `- Re: iso646.hJanis Papanagnou
   |+* Python (Re: iso646.h)Kalevi Kolttonen
   ||+* Re: Python (Re: iso646.h)bart
   ||+* Re: Python (Re: iso646.h)Keith Thompson
   ||+* Re: Python (Re: iso646.h)Lawrence D'Oliveiro
   ||`- Re: Python (Re: iso646.h)Dan Cross
   |+* Re: iso646.hKeith Thompson
   |`* Re: iso646.hMalcolm McLean
   `* Re: iso646.hLawrence D'Oliveiro

Pages:1234567891011121314151617181920212223242526
Re: iso646.h

<upimhk$2jhn0$1@dont-email.me>

  copy mid

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

  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: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Fri, 2 Feb 2024 13:17:55 +0100
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <upimhk$2jhn0$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me>
<87frym7l3p.fsf@nosuchdomain.example.com> <uot08a$278i2$1@dont-email.me>
<uotmed$2ack6$2@dont-email.me> <up17f9$313qt$4@dont-email.me>
<up197h$31jct$1@dont-email.me> <up1t0r$37v5a$4@dont-email.me>
<up2mor$3bjgb$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com> <upd0pj$1elmk$1@dont-email.me>
<updl0s$1i2he$3@dont-email.me> <updopb$1iv0b$1@dont-email.me>
<upe310$1kjiu$4@dont-email.me> <uphhmb$2abr1$1@dont-email.me>
<upi4t5$2gn4l$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Feb 2024 12:17:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="477ce05e86656f73ba155ebb4f46fbc9";
logging-data="2737888"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LxtowzGtA0sFR4K+ICUoJ"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:BFhV1UJCDFjT6JOKHvUxSzlH8Jk=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <upi4t5$2gn4l$1@dont-email.me>
 by: Janis Papanagnou - Fri, 2 Feb 2024 12:17 UTC

On 02.02.2024 08:16, Malcolm McLean wrote:
>
> In Perl you have an implict variable called $_. Some Perl statements
> will operate on $_ without it actually being specified, and you then
> have to reference $_ exoictitly to obtain the result. It's highly
> confusing for anyone used to a conventional language with only one type
> of named varibales. And that's one of the main decisions which makes
> Perl hard to read.

Yes, I remember that '$_', and even though I'm not the typical Perl
programmer (I told you about my only few contacts with Perl) it was
not the least confusing to me. I think, what also generally holds,
that if you want to use some tool you should at least make yourself
familiar with its basic concepts. (This appears to be a quite common
view, despite here we often see complaints complaints from folks with
only basic or no knowledge about the objects of their complain.)
But Perl is also a large language, and it needs some time to learn
or master it. But $_ seemed to me to be some basic thing.

That said, now consider in comparison (e.g.) Ksh that has also a
variable '_' (with value '$_'); and the contents of Ksh's '_' is
even depending on the runtime context!

>
> However often you can write slightly less idiomatic Perl code which
> doesn't make use of this feature, and then it's clearer. Or you can lay
> the code out so that all the places where $_ are used in the same way
> are together and make it a bit easier to work out what is going on.
> There are thing you can do and Perl doesn't have to look like a
> confusing mess.

Yes. Quite typical for many scripting languages. Sometimes there's
even some desire to produce short, cryptic, "clever", forms of code.

Janis

Re: iso646.h

<upinhd$2jn3t$1@dont-email.me>

  copy mid

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

  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: iso646.h
Date: Fri, 2 Feb 2024 13:34:52 +0100
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <upinhd$2jn3t$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up197h$31jct$1@dont-email.me>
<up1t0r$37v5a$4@dont-email.me> <up2mor$3bjgb$1@dont-email.me>
<up2ogd$3bs86$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <865xzaas3m.fsf@linuxsc.com>
<upd0pj$1elmk$1@dont-email.me> <86jzno9v19.fsf@linuxsc.com>
<upgc3u$23u8i$2@dont-email.me> <874jesq6p7.fsf@nosuchdomain.example.com>
<uphb4u$29f8k$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Feb 2024 12:34:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="477ce05e86656f73ba155ebb4f46fbc9";
logging-data="2743421"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zfFay48rCTqAyXgV2Ugsr"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:7VYd9RzjnC7gtLiA5YQY1OEdSlw=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <uphb4u$29f8k$1@dont-email.me>
 by: Janis Papanagnou - Fri, 2 Feb 2024 12:34 UTC

On 02.02.2024 00:57, Malcolm McLean wrote:
>
> The difference is that the syntax for redirecting output in the UNIX
> shell is ony of the slightest use if you happen to run that particular
> type of system.

Hasn't DOS adopted the basic redirections as well?
And hasn't it even tried to mimic pipes?

Of course redirection and its specific syntaxes are depending on
the supporting OS. So what?

In Unix they developed a terse version at a time where on other
OSes you need to "formulate novels" to invoke such features.
And that version was good enough to have been adopted by other
tools. And it's also simple enough that many users use these in
their programming contexts effectively (and without complaints).

> [...] And whilst pipes are a concept, they are no way
> comparable in depth and fundamental importance to the concept of
> functions of functions.
>
> The point is the two are not comparable. [...]

Of course. This point sounds completely reasonable to me.

So the confusion was only about some inappropriate statement that
had been used. (I seem to recall, and think I commented on that.)

Janis

Re: iso646.h

<upiql7$2k41a$1@dont-email.me>

  copy mid

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

  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: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Fri, 2 Feb 2024 13:28:07 +0000
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <upiql7$2k41a$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me>
<87frym7l3p.fsf@nosuchdomain.example.com> <uot08a$278i2$1@dont-email.me>
<uotmed$2ack6$2@dont-email.me> <up17f9$313qt$4@dont-email.me>
<up197h$31jct$1@dont-email.me> <up1t0r$37v5a$4@dont-email.me>
<up2mor$3bjgb$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<87v879qdmc.fsf@bsb.me.uk> <upetj9$1p0ag$1@dont-email.me>
<upgbd6$23tto$2@dont-email.me> <upge2t$24gnk$1@dont-email.me>
<uph4kp$28ebd$2@dont-email.me> <uph6hf$28p5f$1@dont-email.me>
<upiado$2h7rf$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Feb 2024 13:28:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d8c43ab9e9cdd975da47d122eadf0349";
logging-data="2756650"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+sgYOTMCzHxFKw7pyq7gzxjHvze1c1PmU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:l56x1pWPttPpORxqw4nawSg8AM0=
In-Reply-To: <upiado$2h7rf$4@dont-email.me>
Content-Language: en-GB
 by: Malcolm McLean - Fri, 2 Feb 2024 13:28 UTC

On 02/02/2024 08:51, David Brown wrote:
> On 01/02/2024 23:38, Malcolm McLean wrote:
>> I'm sure you're capable of going through the exercise and then you
>> might gain a bit of insight on how to design such software systems.
>> And, no, arguing that you'd go for a monolithic program doesn't
>> necessarily mean that you are a "quivering jelly" at the thought of
>> writing several simpler ones. And in fact to start you off I actually
>> mentioned a few advantages of the pipeline approach.
>
> I am perfectly aware of the advantages and disadvantages of monolithic
> approaches.
>
Well it's kind of poroof of the pudding. Ben has several programs
connected by piplines and asked me what I thought of the design. I said
I'd go for a monolithinc approach. You criticised mem giving no reason
ither than that my oreferred approach was monolithic. So any reasonable
erson would assume that you think that a monolithic approach is in and
of itself bad.

When invited to list the advantages and disadvantages if either, you
refused to do so. I am sure that you are capable of doing this, and you
are basically right. But you haven't actually done so. And it's proof of
the pudding.

Thne fact is there is case for `Ben's approach, there's a case for my
approach, and maybe Ben's case is better. I've no objection to anyone
weighing in on that. But fundamentally you do not understand what it
means to offer an argument or how to make a case.

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

Re: iso646.h

<upiv9p$2ku97$1@dont-email.me>

  copy mid

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

  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: iso646.h
Date: Fri, 2 Feb 2024 15:47:21 +0100
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <upiv9p$2ku97$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me>
<87frym7l3p.fsf@nosuchdomain.example.com> <uot08a$278i2$1@dont-email.me>
<uotmed$2ack6$2@dont-email.me> <up17f9$313qt$4@dont-email.me>
<up197h$31jct$1@dont-email.me> <up1t0r$37v5a$4@dont-email.me>
<up2mor$3bjgb$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<87v879qdmc.fsf@bsb.me.uk> <upetj9$1p0ag$1@dont-email.me>
<upgbd6$23tto$2@dont-email.me> <upge2t$24gnk$1@dont-email.me>
<uph4kp$28ebd$2@dont-email.me> <uph6hf$28p5f$1@dont-email.me>
<upiado$2h7rf$4@dont-email.me> <upiql7$2k41a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 14:47:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c86dda6c8b577cf8da0f36021cd06541";
logging-data="2783527"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GNa6cMVZr5dFeWIssyoJa24qCk5dF/bQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:DzowoQRcL55M9/zPhZkCbz/lPx4=
Content-Language: en-GB
In-Reply-To: <upiql7$2k41a$1@dont-email.me>
 by: David Brown - Fri, 2 Feb 2024 14:47 UTC

On 02/02/2024 14:28, Malcolm McLean wrote:
> On 02/02/2024 08:51, David Brown wrote:
>> On 01/02/2024 23:38, Malcolm McLean wrote:
>>> I'm sure you're capable of going through the exercise and then you
>>> might gain a bit of insight on how to design such software systems.
>>> And, no, arguing that you'd go for a monolithic program doesn't
>>> necessarily mean that you are a "quivering jelly" at the thought of
>>> writing several simpler ones. And in fact to start you off I actually
>>> mentioned a few advantages of the pipeline approach.
>>
>> I am perfectly aware of the advantages and disadvantages of monolithic
>> approaches.
>>
> Well it's kind of poroof of the pudding. Ben has several programs
> connected by piplines and asked me what I thought of the design. I said
> I'd go for a monolithinc approach. You criticised mem giving no reason
> ither than that my oreferred approach was  monolithic. So any reasonable
> erson would assume that you think that a monolithic approach is in and
> of itself bad.

No, they would not.

But I don't think, based on your postings, you count as a "reasonable
person".

>
> When invited to list the advantages and disadvantages if either, you
> refused to do so. I am sure that you are capable of doing this, and you
> are basically right. But you haven't actually done so. And it's proof of
> the pudding.
>
> Thne fact is there is case for `Ben's approach, there's a case for my
> approach, and maybe Ben's case is better. I've no objection to anyone
> weighing in on that. But fundamentally you do not understand what it
> means to offer an argument or how to make a case.
>

I know exactly what it means. But I know when it is pointless, when the
person on the other side pays not the slightest attention to what is
being said and instead wanders off in their own little world with their
own little ideas and their own independent terminology.

What would be the point in giving reasons for anything, when you won't
read them? Why should I give arguments, when you will "counter" them by
telling us that grass is blue, using your own definition for "blue"?
I've put a lot of effort into trying to explain things to you - enough
is enough. I get more intelligent responses talking to my cat.

Re: iso646.h

<BS7vN.377813$p%Mb.265238@fx15.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.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: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <upas3j$10bft$1@dont-email.me> <upb5q3$11vej$1@dont-email.me> <K79uN.374649$p%Mb.218835@fx15.iad> <upb8c8$12do6$1@dont-email.me> <upbj9c$14443$2@dont-email.me> <updj1q$1hif4$1@dont-email.me> <upe7sm$1lg8f$1@dont-email.me> <87le85s1j2.fsf@nosuchdomain.example.com> <upekt5$1nomb$1@dont-email.me> <uphfjc$29ukk$4@dont-email.me> <JeYuN.420684$83n7.159115@fx18.iad> <uphtbs$2fg0v$9@dont-email.me>
Lines: 19
Message-ID: <BS7vN.377813$p%Mb.265238@fx15.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 02 Feb 2024 15:28:33 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 02 Feb 2024 15:28:33 GMT
X-Received-Bytes: 1881
 by: Scott Lurndal - Fri, 2 Feb 2024 15:28 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>On Fri, 02 Feb 2024 02:15:05 GMT, Scott Lurndal wrote:
>
>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>
>>>On Wed, 31 Jan 2024 23:25:25 +0000, Malcolm McLean wrote:
>>>
>>>Fun fact: one of the names for hex 7F was “rubout”.
>>
>> Additional fun fact. Rubout was the legend on the keycap on the ASR-33
>> used to rub out the prior character (the A in ASR means it has the
>> reader/punch). On paper tape, it means ignore the prior character.
>
>No, you had to overpunch the character to be ignored. Did that key
>automatically backspace the tape for you, or did you have to do it
>manually?

1) either way worked, depending on the software reading the tape
2) there was a button on the pt unit that backed up one character.

Re: iso646.h

<upj2a2$2lhgs$1@dont-email.me>

  copy mid

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

  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: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Fri, 2 Feb 2024 15:38:41 +0000
Organization: A noiseless patient Spider
Lines: 117
Message-ID: <upj2a2$2lhgs$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me>
<87frym7l3p.fsf@nosuchdomain.example.com> <uot08a$278i2$1@dont-email.me>
<uotmed$2ack6$2@dont-email.me> <up17f9$313qt$4@dont-email.me>
<up197h$31jct$1@dont-email.me> <up1t0r$37v5a$4@dont-email.me>
<up2mor$3bjgb$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<87v879qdmc.fsf@bsb.me.uk> <upetj9$1p0ag$1@dont-email.me>
<upgbd6$23tto$2@dont-email.me> <upge2t$24gnk$1@dont-email.me>
<uph4kp$28ebd$2@dont-email.me> <uph6hf$28p5f$1@dont-email.me>
<upiado$2h7rf$4@dont-email.me> <upiql7$2k41a$1@dont-email.me>
<upiv9p$2ku97$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 15:38:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d8c43ab9e9cdd975da47d122eadf0349";
logging-data="2803228"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+fK2YL6SQCWzX41Ry+IfJDbijj0qS0Ycs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:rg/F4e2S/mRfL/DKELjTOECd460=
Content-Language: en-GB
In-Reply-To: <upiv9p$2ku97$1@dont-email.me>
 by: Malcolm McLean - Fri, 2 Feb 2024 15:38 UTC

On 02/02/2024 14:47, David Brown wrote:
> On 02/02/2024 14:28, Malcolm McLean wrote:
>> On 02/02/2024 08:51, David Brown wrote:
>>> On 01/02/2024 23:38, Malcolm McLean wrote:
>>>> I'm sure you're capable of going through the exercise and then you
>>>> might gain a bit of insight on how to design such software systems.
>>>> And, no, arguing that you'd go for a monolithic program doesn't
>>>> necessarily mean that you are a "quivering jelly" at the thought of
>>>> writing several simpler ones. And in fact to start you off I
>>>> actually mentioned a few advantages of the pipeline approach.
>>>
>>> I am perfectly aware of the advantages and disadvantages of
>>> monolithic approaches.
>>>
>> Well it's kind of poroof of the pudding. Ben has several programs
>> connected by piplines and asked me what I thought of the design. I
>> said I'd go for a monolithinc approach. You criticised mem giving no
>> reason ither than that my oreferred approach was  monolithic. So any
>> reasonable erson would assume that you think that a monolithic
>> approach is in and of itself bad.
>
> No, they would not.
>
> But I don't think, based on your postings, you count as a "reasonable
> person".
>
>>
>> When invited to list the advantages and disadvantages if either, you
>> refused to do so. I am sure that you are capable of doing this, and
>> you are basically right. But you haven't actually done so. And it's
>> proof of the pudding.
>>
>> Thne fact is there is case for `Ben's approach, there's a case for my
>> approach, and maybe Ben's case is better. I've no objection to anyone
>> weighing in on that. But fundamentally you do not understand what it
>> means to offer an argument or how to make a case.
>>
>
> I know exactly what it means.  But I know when it is pointless, when the
> person on the other side pays not the slightest attention to what is
> being said and instead wanders off in their own little world with their
> own little ideas and their own independent terminology.
>
> What would be the point in giving reasons for anything, when you won't
> read them?  Why should I give arguments, when you will "counter" them by
> telling us that grass is blue, using your own definition for "blue"?
> I've put a lot of effort into trying to explain things to you - enough
> is enough.  I get more intelligent responses talking to my cat.
>
>
OK so here's how it went.

>> On 31/01/2024 23:36, Ben Bacarisse wrote:
>>>
>> An example where it's really useful not to care: I have a suite of
tools
>>> for doing toy cryptanalysis. Some apply various transformations and/or
>>> filters to byte streams and others collect and output (on stderr)
>>> various statistics. Plugging them together in various pipelines is
very
>>> handy when investigating an encrypted text. The output is almost
always
>>> "binary" in the sense that there would be not point in looking at on a
>> terminal.
>>
>> According to you, these tools are poorly designed. I don't think so.
>> How would you design them? Endless input and output file names to be
>> juggled and tidied up afterwards?
>>
> I'd write a monolithic program.

[David Brown]
It's very strange to me to see people that consider themselves
programmers talk about having multiple small functions to do specific
tasks and combining them into bigger functions to solve bigger problems,
yet are reduced to quivering jellies at the thought of multiple small
programs to do specific tasks that can be combined to solve bigger tasks.

Do you think the C standard library would be improved by a single
function "flubadub" that takes 20 parameters and can calculate
logarithms, print formatted text, allocate memory and write it all to a
file?

So Ben describes his system, then asks how I woud design to to remove
the pipelines (they don't actually seem to be binary pipelines, which is
what I was objecting to, but Ben says that because of the type of data
they pass they are as good as. Let that pass.) Would I create a lot of
temporary intermediate files? That would be one approach. But my answer
is no I wouldn't, I'd merge the programs into one monolithic program.
Then you wouldn't need either intermediate files or pipelines.

Now that shoukd be regarded as an entirely reasonable, unexceptional
answer to the question. Of course you can say "actually you are only
pretending to be reasonable. You're concocting a post hoc justification
for not having pipelines. You wouldn't really do that." And maybe
there's something in that. I represent and stand for hope, charity, and
reason, and always try to express these values. But I'm not pure reason.
I do have my human failings. However bascially it's an answer. And I go
on to discuss the pros and cons.

Now lets look at your contribution. It's unnecessarily contentious. It's
insulting. And whilst it does make a point, it's a rather silly one and
not really addressing the issue, which is about communications. And it
does seem that you think "distributed good, monolithic bad". You might
not exacty say it in as many words. But it's hard to see how someone
wouldn't gain that impression.

But of course you do have a reasonable degree of intelligence, and you
can easily be brought to see that monolithic systems have their
advantages as well as their disadvantages. You know that really already.
You've just blinded yourself to it through pure contentiousness.

Try to see these things.
--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: iso646.h

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

  copy mid

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

  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: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Fri, 02 Feb 2024 08:39:28 -0800
Organization: None to speak of
Lines: 24
Message-ID: <87y1c2om67.fsf@nosuchdomain.example.com>
References: <uokhnk$eiln$1@dont-email.me> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<87v879qdmc.fsf@bsb.me.uk> <upf9ug$1uf0j$1@dont-email.me>
<upg4ol$22tss$1@dont-email.me> <upg65m$235lp$1@dont-email.me>
<upgc4f$2454d$1@dont-email.me> <upgekv$24gnk$2@dont-email.me>
<JGPuN.297652$PuZ9.135961@fx11.iad> <upgmdd$2605r$1@dont-email.me>
<878r44q73s.fsf@nosuchdomain.example.com>
<upikd9$2j68u$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="a25c07b6296b5291e04aff5e5cd7fea7";
logging-data="2817526"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vVNXn+NsIGCBfjdvUXTAf"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:54IUzombCPw2eV79a2V6FNV8tB4=
sha1:V+mb5vCfkReo7ZkuVE2C1pUp/nE=
 by: Keith Thompson - Fri, 2 Feb 2024 16:39 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
> On 01.02.2024 21:09, Keith Thompson wrote:
>> [...] I would use semicolons instead:
>>
>> $ if file /tmp/garage.jpg | grep JPEG > /dev/null ; then echo "it is a jpeg" ; fi
>> it is a jpeg
>>
>> (I might also use "grep -q" rather than redirecting to /dev/null.)
>
> And probably also avoid multi-line code (to prevent the ^J confusion)
>
> file /tmp/garage.jpg | grep -q JPEG && echo "it is a jpeg"

Sure, that works, but I usually find the "if" form clearer. (It's not
multi-line.)

In C code or in a shell script, I'd write a similar "if" statement
across multiple lines. In an interactive shell, I commonly write
complex commands lie that on one line. YMMV.

--
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: iso646.h

<upj6h9$2m5jv$2@dont-email.me>

  copy mid

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

  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: richard....@gmail.invalid (Richard Harnden)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Fri, 2 Feb 2024 16:50:49 +0000
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <upj6h9$2m5jv$2@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<upas3j$10bft$1@dont-email.me> <upb5q3$11vej$1@dont-email.me>
<K79uN.374649$p%Mb.218835@fx15.iad> <upb8c8$12do6$1@dont-email.me>
<upbj9c$14443$2@dont-email.me> <updj1q$1hif4$1@dont-email.me>
<upe7sm$1lg8f$1@dont-email.me> <87le85s1j2.fsf@nosuchdomain.example.com>
<upekt5$1nomb$1@dont-email.me> <uphfjc$29ukk$4@dont-email.me>
Reply-To: nospam.harnden@invalid.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 16:50:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="096f3fb45299463c783afc9c5cd31db5";
logging-data="2823807"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wruFT842cZQ2MiOZcXSAXYR2k9xBudxA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:um1r8p4a1kYkbNUkL2fPbx/h6rs=
In-Reply-To: <uphfjc$29ukk$4@dont-email.me>
Content-Language: en-GB
 by: Richard Harnden - Fri, 2 Feb 2024 16:50 UTC

On 02/02/2024 01:13, Lawrence D'Oliveiro wrote:
> On Wed, 31 Jan 2024 23:25:25 +0000, Malcolm McLean wrote:
>
>> In ASCII, 0 means NUL, or "ignore".
>
> Fun fact: one of the names for hex 7F was “rubout”. On seven-track paper
> tape, if you made a mistake typing your program, intead of throwing away
> the tape and starting again, you could go back and punch out all the holes
> at that position to produce a “rubout” character. The meaning was “ignore
> this character”.

Also, over-punching all seven holes ment there was never any possibility
of it ever getting misread as anything else.

Re: iso646.h

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

  copy mid

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

  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: iso646.h
Date: Fri, 02 Feb 2024 21:40:41 +0000
Organization: A noiseless patient Spider
Lines: 75
Message-ID: <87a5oir1d2.fsf@bsb.me.uk>
References: <uokhnk$eiln$1@dont-email.me> <up2mor$3bjgb$1@dont-email.me>
<up2ogd$3bs86$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <87v879qdmc.fsf@bsb.me.uk>
<upf9ug$1uf0j$1@dont-email.me> <upg4ol$22tss$1@dont-email.me>
<upg65m$235lp$1@dont-email.me> <upgc4f$2454d$1@dont-email.me>
<upgekv$24gnk$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="371de0394fc134e2e3b0aeb37b850a8b";
logging-data="2925542"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JT0qxkeBB0F6iMgZHOjGw+PrOkXP8sRI="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:MqxE5ABC0bS2cxHcJJ5MtUx8k1Y=
sha1:Y0rlDlavZzZTK0B0LWk67ICJx+I=
X-BSB-Auth: 1.aee6fc9cca3afb147816.20240202214041GMT.87a5oir1d2.fsf@bsb.me.uk
 by: Ben Bacarisse - Fri, 2 Feb 2024 21:40 UTC

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

> On 01/02/2024 15:07, Janis Papanagnou wrote:
>> On 01.02.2024 14:26, Malcolm McLean wrote:
>>> On 01/02/2024 13:02, Janis Papanagnou wrote:
>>>> Well, not necessarily. Let's leave the typical use case for a moment...
>>>>
>>>> It might also be analyzed and converted to a digitally represented
>>>> formula, say some TeX code, or e.g. like the formal syntax that the
>>>> lilypond program uses.
>>>>
>>> And ultimately converted to a non binary form. A list of 1s and 0s is
>>> seldom any use to the final consumer of the data.
>> No, I was speaking about an application that creates lilypond _input_,
>> which is a formal language to write notes, e.g. for evaluation by the
>> lilypond software, but not excluding other usages.
>>
>>>
>>>>> The two problems with hex
>>>>> dumps are that you've got to do mental arithmetic to convert 8 bit hex
>>>>> values into 16 or 32 bit fields,
>>>>
>>>> Hmm.. - have you inspected the man pages of the tools?
>>>>
>>> I just ran "man xxd". The man page contains this statement.
>>>
>>> The tool's weirdness matches its creator's brain. Use entirely at your
>>> own risk. Copy files. Trace it. Become a wizard.
>> This statement repelled you? (Can't help you here.)
>>
>>>> At least for 'od' I know it's easy per option...
>>>> od -c file # characters (or escapes and octals)
>>>> od -t x1 file # hex octets
>>>> od -t x2 file # words (two octets)
>>>> od -c -t x1 file # characters and octets
>>>>
>>> So a JPEG file starts with
>>> FF D8
>>> FF E0
>>> hi lo (length of the FF E0 segment)
>>>
>>> So we want the output
>>>
>>> FF D8 FF E0 [1000] to check that the segment markers are correct and FF
>>> E0 segment is genuinely a thousand bytes (or whatever it is). This isn't
>>> easy to achieve with a hex dump utility.
>> I don't know binary format details about jpg, so I cannot help you here.
>>
> JPEG is an extremely common binary file format and JPEG files will be found
> on most general purpose computers.

No. The loose term "JPEG file" usually refers to a file encoded using
either the JFIF or EXIF standard. Prior to the introduction of EXIF,
the loose term was used to refer only to JFIF files.

JPEG is the name for the image encoding usually carried in JFIF (or
EXIF) format files, but since you are actually discussing the file
format, you should probably use the right name for it: JFIF.

> All you need to know for the purposes of the discussion is that the first
> four bytes are segment identifiers and must have the values I gave,

My laptop contains lots of "JPEG files" that start FF D8 FF E1.

> So how would you achieve that in a convenient and non-error prone way?

One way is to use od like this:

$ od --endian=big -N6 -t x1u2 x.jpg
0000000 ff d8 ff e0 00 10
65496 65504 16
0000006

--
Ben.

Re: iso646.h

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

  copy mid

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

  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: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Fri, 02 Feb 2024 23:38:22 +0000
Organization: A noiseless patient Spider
Lines: 89
Message-ID: <87v876phch.fsf@bsb.me.uk>
References: <uokhnk$eiln$1@dont-email.me> <uotmed$2ack6$2@dont-email.me>
<up17f9$313qt$4@dont-email.me> <up197h$31jct$1@dont-email.me>
<up1t0r$37v5a$4@dont-email.me> <up2mor$3bjgb$1@dont-email.me>
<up2ogd$3bs86$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <87v879qdmc.fsf@bsb.me.uk>
<upetj9$1p0ag$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="cb58ad19b0b72632ed1c623e73af5513";
logging-data="2958804"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/OiyUmoGoip89EZP54j/6KlUD0yGXRSuw="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:xOaKQRAU+B5zG/Q5TxwaViGHimA=
sha1:wgXHJi7CRd7e4sC2+sjP3r1kDuA=
X-BSB-Auth: 1.3db56ae3890eaa2ed8d4.20240202233822GMT.87v876phch.fsf@bsb.me.uk
 by: Ben Bacarisse - Fri, 2 Feb 2024 23:38 UTC

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

> On 31/01/2024 23:36, Ben Bacarisse wrote:
>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>
>>> On 30/01/2024 07:27, Tim Rentsch wrote:
>>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>>
>>>>> On 29/01/2024 20:10, Tim Rentsch wrote:
>>>>>
>>>>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>>>>
>>>>>> [...]
>>>>>>
>>>>>>> I've never used standard output for binary data.
>>>>>>> [...] it strikes me as a poor design decision.
>>>>>>
>>>>>> How so?
>>>>>
>>>>> Because the output can't be inspected by humans, and because it might
>>>>> have unusual effects if passed though systems designed to handle
>>>>> human-readable text.
>> Maybe you are not used to a system where it's trivial to inspect such
>> data. When "some_prog" produces data that are not compatible with the
>> current terminal settings, "some_prog | hd" shows a hex dump instead.
>> The need to do this does not make "some_prog" poorly designed. It may
>> simply mean that the output is /intended/ for further processing.
>>
>>> For instance in some systems designed to receive
>>>>> ASCII text, there is no distinction between the nul byte and "waiting
>>>>> for next data byte". Obviously this will cause difficuties if the data
>>>>> is binary.
>>>>> Also many binary formats can't easily be extended, so you can pass one
>>>>> image and that's all. While it is possible to devise a text format
>>>>> which is similar, in practice text formats usually have enough
>>>>> redundancy to be easily extended.
>>>>>
>>>>> So it's harder to correct errors, more prone to errors, and harder to
>>>>> extend.
>>>> Your reasoning is all gobbledygook. Your comments reflect only
>>>> limitations in your thinking, not any essential truth about using
>>>> standard out for binary data.
>>>>
>>> I must admit that it's nothing I have ever done or considered doing.
>>>
>>> However standard output is designed for text and not binary ouput.
>> What is your evidence? stdout was just designed for output (as far as I
>> can tell) and, anyway, what is the distinction you are making between
>> binary and text? iconv --from ACSII --to EBCDIC-UK will produce
>> something that is "logically" text on stdout, but it might look like
>> binary to you.
>> An example where it's really useful not to care: I have a suite of tools
>> for doing toy cryptanalysis. Some apply various transformations and/or
>> filters to byte streams and others collect and output (on stderr)
>> various statistics. Plugging them together in various pipelines is very
>> handy when investigating an encrypted text. The output is almost always
>> "binary" in the sense that there would be not point in looking at on a
>> terminal.
>> According to you, these tools are poorly designed. I don't think so.
>> How would you design them? Endless input and output file names to be
>> juggled and tidied up afterwards?
>>
> I'd write a monolithic program.
> Load the encryoted text into memory, and then pass it to subroutines to do
> the various analyses.
> You can of course process it, and then pass the processed output to other
> programs. And that does have a point if the program which is acceoting the
> processed outout is doing something which has no necessary connection to
> cryptanalysis. So for example a program to produce a pie chart from a list
> of letter frequencies. But if it's transforming the encrypted text in
> intricate and specialised ways, then analysing the transformed text in
> other specialised and intricate ways, then firstly you've probably
> introduced coupling and dependency between the two programs, and secondly
> you're probably at some point going to want to modify the second program in
> the pipeline to look at the raw data.

I don't think you understand the design at all. What coupling? And why
would I modify the program to inspect the data when there are several
inspection program that can be inserted before or after to do just that?

I've commented elsewhere on why I think a monolithic program is not a
good design, so I won't repeat that here. I just don't understand any
of your objections to my design. Specifically, you don't address the
fact that you claim it's wrong simply because the data going to stdout
are binary. Have you abandoned that generic criticism? Is there why
you split the thread with two replies?

--
Ben.

Re: iso646.h

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

  copy mid

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

  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: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Fri, 02 Feb 2024 23:41:01 +0000
Organization: A noiseless patient Spider
Lines: 77
Message-ID: <87plxeph82.fsf@bsb.me.uk>
References: <uokhnk$eiln$1@dont-email.me> <uotmed$2ack6$2@dont-email.me>
<up17f9$313qt$4@dont-email.me> <up197h$31jct$1@dont-email.me>
<up1t0r$37v5a$4@dont-email.me> <up2mor$3bjgb$1@dont-email.me>
<up2ogd$3bs86$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <87v879qdmc.fsf@bsb.me.uk>
<upeo6c$1oa6o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="cb58ad19b0b72632ed1c623e73af5513";
logging-data="2958804"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hSwRLoBuSFI51n4JTeiuSPXSudkMkn4g="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:uEqIhITb+QJVSTVGeFIBxX1SI2w=
sha1:bSVm9mLMdCjgiO147sxQ/ryx/uQ=
X-BSB-Auth: 1.a2f8257b6012523c44b8.20240202234101GMT.87plxeph82.fsf@bsb.me.uk
 by: Ben Bacarisse - Fri, 2 Feb 2024 23:41 UTC

bart <bc@freeuk.com> writes:

> On 31/01/2024 23:36, Ben Bacarisse wrote:
>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>
>>> On 30/01/2024 07:27, Tim Rentsch wrote:
>>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>>
>>>>> On 29/01/2024 20:10, Tim Rentsch wrote:
>>>>>
>>>>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>>>>
>>>>>> [...]
>>>>>>
>>>>>>> I've never used standard output for binary data.
>>>>>>> [...] it strikes me as a poor design decision.
>>>>>>
>>>>>> How so?
>>>>>
>>>>> Because the output can't be inspected by humans, and because it might
>>>>> have unusual effects if passed though systems designed to handle
>>>>> human-readable text.
>> Maybe you are not used to a system where it's trivial to inspect such
>> data. When "some_prog" produces data that are not compatible with the
>> current terminal settings, "some_prog | hd" shows a hex dump instead.
>> The need to do this does not make "some_prog" poorly designed. It may
>> simply mean that the output is /intended/ for further processing.
>>
>>> For instance in some systems designed to receive
>>>>> ASCII text, there is no distinction between the nul byte and "waiting
>>>>> for next data byte". Obviously this will cause difficuties if the data
>>>>> is binary.
>>>>> Also many binary formats can't easily be extended, so you can pass one
>>>>> image and that's all. While it is possible to devise a text format
>>>>> which is similar, in practice text formats usually have enough
>>>>> redundancy to be easily extended.
>>>>>
>>>>> So it's harder to correct errors, more prone to errors, and harder to
>>>>> extend.
>>>> Your reasoning is all gobbledygook. Your comments reflect only
>>>> limitations in your thinking, not any essential truth about using
>>>> standard out for binary data.
>>>>
>>> I must admit that it's nothing I have ever done or considered doing.
>>>
>>> However standard output is designed for text and not binary ouput.
>> What is your evidence? stdout was just designed for output (as far as I
>> can tell) and, anyway, what is the distinction you are making between
>> binary and text? iconv --from ACSII --to EBCDIC-UK will produce
>> something that is "logically" text on stdout, but it might look like
>> binary to you.
>> An example where it's really useful not to care: I have a suite of tools
>> for doing toy cryptanalysis. Some apply various transformations and/or
>> filters to byte streams and others collect and output (on stderr)
>> various statistics. Plugging them together in various pipelines is very
>> handy when investigating an encrypted text. The output is almost always
>> "binary" in the sense that there would be not point in looking at on a
>> terminal.
>> According to you, these tools are poorly designed. I don't think so.
>> How would you design them? Endless input and output file names to be
>> juggled and tidied up afterwards?
>
> I think they're poorly designed too.

I am curious to read your reasoning...

> From the POV of interactive console programs, they /are/ poor. But the
> mistake is thinking that they are actual programs or commands, when really
> they are just filters. They are not designed to be standalone
> commands.

So it's a bad design, not because of the nature of the data ("binary"
vs. "text") but because you claim a filter is not a command? Where does
that notion come from?

--
Ben.

Re: iso646.h

<20240202155824.923@kylheku.com>

  copy mid

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

  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: iso646.h
Date: Fri, 2 Feb 2024 23:59:49 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <20240202155824.923@kylheku.com>
References: <uokhnk$eiln$1@dont-email.me> <uotmed$2ack6$2@dont-email.me>
<up17f9$313qt$4@dont-email.me> <up197h$31jct$1@dont-email.me>
<up1t0r$37v5a$4@dont-email.me> <up2mor$3bjgb$1@dont-email.me>
<up2ogd$3bs86$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <87v879qdmc.fsf@bsb.me.uk>
<upetj9$1p0ag$1@dont-email.me> <87v876phch.fsf@bsb.me.uk>
Injection-Date: Fri, 2 Feb 2024 23:59:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a58f70bfa6ec786111791429e53cb52";
logging-data="2964927"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GcdpxvCfRUVQNOMPSfNO18BRzl6OGioc="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:807bpZyC8aB8C70BrXhfubkCVe4=
 by: Kaz Kylheku - Fri, 2 Feb 2024 23:59 UTC

On 2024-02-02, Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
> I've commented elsewhere on why I think a monolithic program is not a
> good design, so I won't repeat that here.

All the programs I use are some kind of "lithic"; not so much mono-
as neo-.

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

Re: [OT] Unix shells and POSIX shell (was Re: iso646.h)

<upk5nt$2r6q8$8@dont-email.me>

  copy mid

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

  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: [OT] Unix shells and POSIX shell (was Re: iso646.h)
Date: Sat, 3 Feb 2024 01:43:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <upk5nt$2r6q8$8@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com> <20240131124332.00002c05@yahoo.com>
<gDtuN.273514$Wp_8.83091@fx17.iad> <20240131174249.00006e06@yahoo.com>
<updr44$1jcmu$1@dont-email.me> <20240131181820.00007acc@yahoo.com>
<updtj6$1jqdh$1@dont-email.me> <yjvuN.94320$STLe.5998@fx34.iad>
<upe60i$1latn$1@dont-email.me> <5bxuN.131493$q3F7.74522@fx45.iad>
<upg1qm$22d24$1@dont-email.me> <upg42u$22q13$1@dont-email.me>
<uphsna$2fg0v$5@dont-email.me> <upihra$2ii1u$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 3 Feb 2024 01:43:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="30ce9394578c0c104a3323bda7e13968";
logging-data="2988872"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Z7airiAFIVesftgE6sZMu"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:4ekDxYYR//KpA4mGd5sT+OXjnhc=
 by: Lawrence D'Oliv - Sat, 3 Feb 2024 01:43 UTC

On Fri, 2 Feb 2024 10:57:46 +0000, bart wrote:

> On 02/02/2024 04:57, Lawrence D'Oliveiro wrote:
>
>> On Thu, 1 Feb 2024 12:50:36 +0000, bart wrote:
>>
>>> For all I know, this is the usenet equivalent of Mornington Crescent
>>> ...
>> You can’t get far in C without knowing POSIX. C on Windows is, let’s
>> face it, a crippled language.
>
> It sounds like you're the one who would be crippled without your beloved
> POSIX.

Given your ongoing tales of woe, wrestling cross-platform C code to behave
nicely on Windows, I wouldn’t change places for the world.

Re: [OT] Unix shells and POSIX shell (was Re: iso646.h)

<upk5p8$2r6q8$9@dont-email.me>

  copy mid

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

  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: [OT] Unix shells and POSIX shell (was Re: iso646.h)
Date: Sat, 3 Feb 2024 01:44:08 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <upk5p8$2r6q8$9@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com> <20240131124332.00002c05@yahoo.com>
<gDtuN.273514$Wp_8.83091@fx17.iad> <20240131174249.00006e06@yahoo.com>
<updr44$1jcmu$1@dont-email.me> <20240131181820.00007acc@yahoo.com>
<updtj6$1jqdh$1@dont-email.me> <yjvuN.94320$STLe.5998@fx34.iad>
<upe60i$1latn$1@dont-email.me> <5bxuN.131493$q3F7.74522@fx45.iad>
<upg1qm$22d24$1@dont-email.me> <upg42u$22q13$1@dont-email.me>
<uphsna$2fg0v$5@dont-email.me> <upi50r$2gn4l$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 3 Feb 2024 01:44:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="30ce9394578c0c104a3323bda7e13968";
logging-data="2988872"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0hLyIHz/5V/5Zsoroaoho"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:qqYRUfeG0huMac/2QaZd/HR30Eg=
 by: Lawrence D'Oliv - Sat, 3 Feb 2024 01:44 UTC

On Fri, 2 Feb 2024 07:18:51 +0000, Malcolm McLean wrote:

> On 02/02/2024 04:57, Lawrence D'Oliveiro wrote:
>
>> On Thu, 1 Feb 2024 12:50:36 +0000, bart wrote:
>>
>>> For all I know, this is the usenet equivalent of Mornington Crescent
>>> ...
>>
>> You can’t get far in C without knowing POSIX. C on Windows is, let’s
>> face it, a crippled language.
>
> My program Crossword Designer is a Windows program and is written
> entirely in C.

As the saying goes about teaching a bear to dance, it’s not that the bear
dances badly, but that it can be persuaded to dance at all.

Re: iso646.h

<upki3l$30n6a$1@dont-email.me>

  copy mid

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

  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: iso646.h
Date: Sat, 3 Feb 2024 05:14:28 +0000
Organization: A noiseless patient Spider
Lines: 93
Message-ID: <upki3l$30n6a$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up2mor$3bjgb$1@dont-email.me>
<up2ogd$3bs86$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <87v879qdmc.fsf@bsb.me.uk>
<upf9ug$1uf0j$1@dont-email.me> <upg4ol$22tss$1@dont-email.me>
<upg65m$235lp$1@dont-email.me> <upgc4f$2454d$1@dont-email.me>
<upgekv$24gnk$2@dont-email.me> <87a5oir1d2.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 3 Feb 2024 05:14:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e8299f3f736bf93f9780492f85801191";
logging-data="3169482"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HyufBOjN4xRxWapeS55uzgyVTLK8BXho="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:G+J75cF1p6uPqAQ1cvEDYNcYEv0=
Content-Language: en-GB
In-Reply-To: <87a5oir1d2.fsf@bsb.me.uk>
 by: Malcolm McLean - Sat, 3 Feb 2024 05:14 UTC

On 02/02/2024 21:40, Ben Bacarisse wrote:
> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>
>> On 01/02/2024 15:07, Janis Papanagnou wrote:
>>> On 01.02.2024 14:26, Malcolm McLean wrote:
>>>> On 01/02/2024 13:02, Janis Papanagnou wrote:
>>>>> Well, not necessarily. Let's leave the typical use case for a moment...
>>>>>
>>>>> It might also be analyzed and converted to a digitally represented
>>>>> formula, say some TeX code, or e.g. like the formal syntax that the
>>>>> lilypond program uses.
>>>>>
>>>> And ultimately converted to a non binary form. A list of 1s and 0s is
>>>> seldom any use to the final consumer of the data.
>>> No, I was speaking about an application that creates lilypond _input_,
>>> which is a formal language to write notes, e.g. for evaluation by the
>>> lilypond software, but not excluding other usages.
>>>
>>>>
>>>>>> The two problems with hex
>>>>>> dumps are that you've got to do mental arithmetic to convert 8 bit hex
>>>>>> values into 16 or 32 bit fields,
>>>>>
>>>>> Hmm.. - have you inspected the man pages of the tools?
>>>>>
>>>> I just ran "man xxd". The man page contains this statement.
>>>>
>>>> The tool's weirdness matches its creator's brain. Use entirely at your
>>>> own risk. Copy files. Trace it. Become a wizard.
>>> This statement repelled you? (Can't help you here.)
>>>
>>>>> At least for 'od' I know it's easy per option...
>>>>> od -c file # characters (or escapes and octals)
>>>>> od -t x1 file # hex octets
>>>>> od -t x2 file # words (two octets)
>>>>> od -c -t x1 file # characters and octets
>>>>>
>>>> So a JPEG file starts with
>>>> FF D8
>>>> FF E0
>>>> hi lo (length of the FF E0 segment)
>>>>
>>>> So we want the output
>>>>
>>>> FF D8 FF E0 [1000] to check that the segment markers are correct and FF
>>>> E0 segment is genuinely a thousand bytes (or whatever it is). This isn't
>>>> easy to achieve with a hex dump utility.
>>> I don't know binary format details about jpg, so I cannot help you here.
>>>
>> JPEG is an extremely common binary file format and JPEG files will be found
>> on most general purpose computers.
>
> No. The loose term "JPEG file" usually refers to a file encoded using
> either the JFIF or EXIF standard. Prior to the introduction of EXIF,
> the loose term was used to refer only to JFIF files.
>
> JPEG is the name for the image encoding usually carried in JFIF (or
> EXIF) format files, but since you are actually discussing the file
> format, you should probably use the right name for it: JFIF.
>
>> All you need to know for the purposes of the discussion is that the first
>> four bytes are segment identifiers and must have the values I gave,
>
> My laptop contains lots of "JPEG files" that start FF D8 FF E1.
>

Which is of course exactly the sort of problem we are talking about.

The users will say "I've got a JPEG file on my machine and it doesn't
work". And obviously you will assume that the JPEGs are in the same
format that all the other customers are using. So tech support will go
through with them "Is it in the right directory? Have you selected
"JPEG"? Did you press "Load"? It still doesn't work, and they have to
escalate to the programmers.
And it's only when you actually get the binaries that you realise why it
isn't working.
>> So how would you achieve that in a convenient and non-error prone way?
>
> One way is to use od like this:
>
> $ od --endian=big -N6 -t x1u2 x.jpg
> 0000000 ff d8 ff e0 00 10
> 65496 65504 16
> 0000006
>
Yes, that's what we want. Hex and decimal fields. Now we can see what's
wrong. In the example, we were expecting a thousand bytes, and in fact
it's sixteen. So obviously someone somewhere is very mistaken about what
the segment should hold.
--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: iso646.h

<86cytd8i1i.fsf@linuxsc.com>

  copy mid

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

  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: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Sat, 03 Feb 2024 11:27:37 -0800
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <86cytd8i1i.fsf@linuxsc.com>
References: <uokhnk$eiln$1@dont-email.me> <up197h$31jct$1@dont-email.me> <up1t0r$37v5a$4@dont-email.me> <up2mor$3bjgb$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <865xzaas3m.fsf@linuxsc.com> <upd0pj$1elmk$1@dont-email.me> <86jzno9v19.fsf@linuxsc.com> <upgc3u$23u8i$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="86b83c500004563f07cda2ade1e7584b";
logging-data="3430523"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lSFqiG6Gcd86bBp0yZtBHN706wNpKYMQ="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:mtbA7uumC+gAd+AuF3IT+lFLelc=
sha1:FxbOY8Xqqboh3qUePsRTX0JpkFE=
 by: Tim Rentsch - Sat, 3 Feb 2024 19:27 UTC

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

> On 01/02/2024 13:24, Tim Rentsch wrote:
>
>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>
>>> You admit this with "not tested". Says it all. '"Understandig Unix" is
>>> an intellectually useless achievement. You might have to do it if you
>>> have to use the system and debug and trouble shoot. But it's nothing
>>> to be proud about.
>>
>> You're an idiot. As usual trying to have a useful discussion
>> with you has turned out to be a complete waste of time.
>
> Some things are interesting in themselves and worth talking about at
> lenght. Like how Haskell builds up functions of functions. Other
> things really aren't. And how to set up a Unix pipeline is one of
> those that really aren't (unless actually faced with a such a system
> and with a practical need to do it).
>
> I think you have the intelligence to understand this, if you'd just
> understand where I am coming from. This arrogant and dismissive
> attitude does not become you.

The arrogance and dismissive attitude is on your side, not
mine. I don't think everyone is an idiot. Just you.

Re: iso646.h

<868r418hp7.fsf@linuxsc.com>

  copy mid

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

  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: iso646.h
Date: Sat, 03 Feb 2024 11:35:00 -0800
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <868r418hp7.fsf@linuxsc.com>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me> <uomjfr$sopf$1@dont-email.me> <uoopm9$1blvh$1@dont-email.me> <uop0r1$1d4d4$1@dont-email.me> <GVTrN.46982$U1cc.26176@fx04.iad> <uop3ml$1d8ao$2@dont-email.me> <uop7p7$1eahb$1@dont-email.me> <uopcfr$1f17i$6@dont-email.me> <20240123140604.828@kylheku.com> <uopf3q$1fgi6$1@dont-email.me> <uoqgmf$1nog8$3@dont-email.me> <uorh4g$1sonk$2@dont-email.me> <20240124130851.640@kylheku.com> <uospuh$26fqu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="86b83c500004563f07cda2ade1e7584b";
logging-data="3430523"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18YBtNjwqY2kKgDMM2n31HAa3gJyokq5Gk="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:jZNhX/C/qvbZqSHdxQYVm6jpOjk=
sha1:yGdMFROLJ55TyvIzfiqmRWQ7yqg=
 by: Tim Rentsch - Sat, 3 Feb 2024 19:35 UTC

James Kuyper <jameskuyper@alumni.caltech.edu> writes:

> On 1/24/24 16:11, Kaz Kylheku wrote:
>
>> On 2024-01-24, James Kuyper <jameskuyper@alumni.caltech.edu> wrote:
>>
>>> On 1/24/24 03:10, Janis Papanagnou wrote:
>>>
>>>> On 23.01.2024 23:37, Kalevi Kolttonen wrote:
>>>>
>>>>> [...] I am
>>>>> pretty sure that not all computer languages
>>>>> provide guarantees about the order of evaluation.
>>>>
>>>> What?!
>>>
>>> Could you explain what surprises you about that statement? As quoted,
>>> it's a general statement which includes C: "Except as specified later,
>>> side effects and value computations of subexpressions are unsequenced."
>>
>> Pretty much any language has to guarantee *something* about
>> order of evaluation, somewhere.
>
> Not the functional languages, I believe - but I've only heard about such
> languages, not used them.
>
>> Like for instance that calculating output is not possible before a
>> needed input is available.
>
> Oddly enough, for a long time the C standard never said anything about
> that issue. I argued that this was logically necessary, and few people
> disagreed with that argument, but I couldn't point to wording in the
> standard to support that claim.
>
> That changed when they added support for multi-threaded code to C in
> C2011. That required the standard to be very explicit about which things
> could happen simultaneously in different threads, and which things had
> to occur in a specified order. All of the wording about "sequenced" was
> first introduced at that time. [...]

The timing may have been the same, but the motivation for the
new language about sequencing actually occurred much earlier.
For quite a long time before C11, and IIRC even before C99,
the ISO C committee was looking for a formal model to describe
the sequencing rules. There were proposals for various formal
models, none of which were thought to suffice. So it wasn't
just adding threading to C that prompted adding better language
regarding sequencing rules.

Re: [OT] Unix shells and POSIX shell (was Re: iso646.h)

<upm8p1$39d9n$2@dont-email.me>

  copy mid

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

  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: [OT] Unix shells and POSIX shell (was Re: iso646.h)
Date: Sat, 3 Feb 2024 12:47:29 -0800
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <upm8p1$39d9n$2@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com> <20240131124332.00002c05@yahoo.com>
<gDtuN.273514$Wp_8.83091@fx17.iad> <20240131174249.00006e06@yahoo.com>
<updr44$1jcmu$1@dont-email.me> <20240131181820.00007acc@yahoo.com>
<updtj6$1jqdh$1@dont-email.me> <yjvuN.94320$STLe.5998@fx34.iad>
<upe60i$1latn$1@dont-email.me> <5bxuN.131493$q3F7.74522@fx45.iad>
<upg1qm$22d24$1@dont-email.me> <upg42u$22q13$1@dont-email.me>
<uphsna$2fg0v$5@dont-email.me> <upihra$2ii1u$2@dont-email.me>
<upk5nt$2r6q8$8@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 3 Feb 2024 20:47:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="701cdbc117df9d402df8754b470a5d48";
logging-data="3454263"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dssjN62H5dLxU9N1PvJDpl9A3+++7vWU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2PRjveiKzQhGkQoMrvn+/now3v8=
In-Reply-To: <upk5nt$2r6q8$8@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Sat, 3 Feb 2024 20:47 UTC

On 2/2/2024 5:43 PM, Lawrence D'Oliveiro wrote:
> On Fri, 2 Feb 2024 10:57:46 +0000, bart wrote:
>
>> On 02/02/2024 04:57, Lawrence D'Oliveiro wrote:
>>
>>> On Thu, 1 Feb 2024 12:50:36 +0000, bart wrote:
>>>
>>>> For all I know, this is the usenet equivalent of Mornington Crescent
>>>> ...
>>> You can’t get far in C without knowing POSIX. C on Windows is, let’s
>>> face it, a crippled language.
>>
>> It sounds like you're the one who would be crippled without your beloved
>> POSIX.
>
> Given your ongoing tales of woe, wrestling cross-platform C code to behave
> nicely on Windows, I wouldn’t change places for the world.

vcpkg is not all that bad. :^)

Re: [OT] Unix shells and POSIX shell (was Re: iso646.h)

<upp3hs$3s4nc$2@dont-email.me>

  copy mid

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

  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: [OT] Unix shells and POSIX shell (was Re: iso646.h)
Date: Sun, 4 Feb 2024 22:36:44 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <upp3hs$3s4nc$2@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com> <20240131124332.00002c05@yahoo.com>
<gDtuN.273514$Wp_8.83091@fx17.iad> <20240131174249.00006e06@yahoo.com>
<updr44$1jcmu$1@dont-email.me> <20240131181820.00007acc@yahoo.com>
<updtj6$1jqdh$1@dont-email.me> <yjvuN.94320$STLe.5998@fx34.iad>
<upe60i$1latn$1@dont-email.me> <5bxuN.131493$q3F7.74522@fx45.iad>
<upg1qm$22d24$1@dont-email.me> <upg42u$22q13$1@dont-email.me>
<uphsna$2fg0v$5@dont-email.me> <upihra$2ii1u$2@dont-email.me>
<upk5nt$2r6q8$8@dont-email.me> <upm8p1$39d9n$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 4 Feb 2024 22:36:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="29ee133c86c3ce52220b03c91f891a2d";
logging-data="4068076"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2TC9LFbZoCSYKNAEp0V3Q"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:KLhICwdSKfH9BliEYZkJtLcKSso=
 by: Lawrence D'Oliv - Sun, 4 Feb 2024 22:36 UTC

On Sat, 3 Feb 2024 12:47:29 -0800, Chris M. Thomasson wrote:

> On 2/2/2024 5:43 PM, Lawrence D'Oliveiro wrote:
>
>> Given your ongoing tales of woe, wrestling cross-platform C code to
>> behave nicely on Windows, I wouldn’t change places for the world.
>
> vcpkg is not all that bad. :^)

I’m sure vcpkg, winget, nuget, chocolatey, anaconda and all the rest of
them are not all that bad, at least not individually.

Having to use more than one of them, on the same system, would be where it
starts to go downhill ...

Re: [OT] Unix shells and POSIX shell (was Re: iso646.h)

<upp6ea$3t3ai$1@dont-email.me>

  copy mid

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

  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: [OT] Unix shells and POSIX shell (was Re: iso646.h)
Date: Sun, 4 Feb 2024 15:26:02 -0800
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <upp6ea$3t3ai$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com> <20240131124332.00002c05@yahoo.com>
<gDtuN.273514$Wp_8.83091@fx17.iad> <20240131174249.00006e06@yahoo.com>
<updr44$1jcmu$1@dont-email.me> <20240131181820.00007acc@yahoo.com>
<updtj6$1jqdh$1@dont-email.me> <yjvuN.94320$STLe.5998@fx34.iad>
<upe60i$1latn$1@dont-email.me> <5bxuN.131493$q3F7.74522@fx45.iad>
<upg1qm$22d24$1@dont-email.me> <upg42u$22q13$1@dont-email.me>
<uphsna$2fg0v$5@dont-email.me> <upihra$2ii1u$2@dont-email.me>
<upk5nt$2r6q8$8@dont-email.me> <upm8p1$39d9n$2@dont-email.me>
<upp3hs$3s4nc$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 4 Feb 2024 23:26:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e85c8ff53645b7d4213f2214e8730b82";
logging-data="4099410"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gRL1QlHAXg7qCPE4sh3+iaScjBq5Nd2E="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:56FqTWlpxoHD6CaKmb+rygANst4=
Content-Language: en-US
In-Reply-To: <upp3hs$3s4nc$2@dont-email.me>
 by: Chris M. Thomasson - Sun, 4 Feb 2024 23:26 UTC

On 2/4/2024 2:36 PM, Lawrence D'Oliveiro wrote:
> On Sat, 3 Feb 2024 12:47:29 -0800, Chris M. Thomasson wrote:
>
>> On 2/2/2024 5:43 PM, Lawrence D'Oliveiro wrote:
>>
>>> Given your ongoing tales of woe, wrestling cross-platform C code to
>>> behave nicely on Windows, I wouldn’t change places for the world.
>>
>> vcpkg is not all that bad. :^)
>
> I’m sure vcpkg, winget, nuget, chocolatey, anaconda and all the rest of
> them are not all that bad, at least not individually.
>
> Having to use more than one of them, on the same system, would be where it
> starts to go downhill ...

Pick one that works for your current setup, and use it. Fair enough?

Re: [OT] Unix shells and POSIX shell (was Re: iso646.h)

<uppero$3v3vn$2@dont-email.me>

  copy mid

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

  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: [OT] Unix shells and POSIX shell (was Re: iso646.h)
Date: Mon, 5 Feb 2024 01:49:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <uppero$3v3vn$2@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com> <20240131124332.00002c05@yahoo.com>
<gDtuN.273514$Wp_8.83091@fx17.iad> <20240131174249.00006e06@yahoo.com>
<updr44$1jcmu$1@dont-email.me> <20240131181820.00007acc@yahoo.com>
<updtj6$1jqdh$1@dont-email.me> <yjvuN.94320$STLe.5998@fx34.iad>
<upe60i$1latn$1@dont-email.me> <5bxuN.131493$q3F7.74522@fx45.iad>
<upg1qm$22d24$1@dont-email.me> <upg42u$22q13$1@dont-email.me>
<uphsna$2fg0v$5@dont-email.me> <upihra$2ii1u$2@dont-email.me>
<upk5nt$2r6q8$8@dont-email.me> <upm8p1$39d9n$2@dont-email.me>
<upp3hs$3s4nc$2@dont-email.me> <upp6ea$3t3ai$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 5 Feb 2024 01:49:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d066ee1eb99f413075c29d170f61e465";
logging-data="4165623"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183rGz0rBscbPone37kdjwt"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:EVMOQ+R3Lya+21VAYmRjuisGiiw=
 by: Lawrence D'Oliv - Mon, 5 Feb 2024 01:49 UTC

On Sun, 4 Feb 2024 15:26:02 -0800, Chris M. Thomasson wrote:

> On 2/4/2024 2:36 PM, Lawrence D'Oliveiro wrote:
>
>> On Sat, 3 Feb 2024 12:47:29 -0800, Chris M. Thomasson wrote:
>>
>>> On 2/2/2024 5:43 PM, Lawrence D'Oliveiro wrote:
>>>
>>>> Given your ongoing tales of woe, wrestling cross-platform C code to
>>>> behave nicely on Windows, I wouldn’t change places for the world.
>>>
>>> vcpkg is not all that bad. :^)
>>
>> I’m sure vcpkg, winget, nuget, chocolatey, anaconda and all the rest of
>> them are not all that bad, at least not individually.
>>
>> Having to use more than one of them, on the same system, would be where
>> it starts to go downhill ...
>
> Pick one that works for your current setup, and use it. Fair enough?

But their application areas only partially overlap, if at all. What if the
package you want is only available in a different, incompatible format?

This is all part of the fragmentation of Windows development.

Re: [OT] Unix shells and POSIX shell (was Re: iso646.h)

<uppfua$3vc1h$1@dont-email.me>

  copy mid

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

  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: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c
Subject: Re: [OT] Unix shells and POSIX shell (was Re: iso646.h)
Date: Sun, 4 Feb 2024 18:08:11 -0800
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <uppfua$3vc1h$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com> <20240131124332.00002c05@yahoo.com>
<gDtuN.273514$Wp_8.83091@fx17.iad> <20240131174249.00006e06@yahoo.com>
<updr44$1jcmu$1@dont-email.me> <20240131181820.00007acc@yahoo.com>
<updtj6$1jqdh$1@dont-email.me> <yjvuN.94320$STLe.5998@fx34.iad>
<upe60i$1latn$1@dont-email.me> <5bxuN.131493$q3F7.74522@fx45.iad>
<upg1qm$22d24$1@dont-email.me> <upg42u$22q13$1@dont-email.me>
<uphsna$2fg0v$5@dont-email.me> <upihra$2ii1u$2@dont-email.me>
<upk5nt$2r6q8$8@dont-email.me> <upm8p1$39d9n$2@dont-email.me>
<upp3hs$3s4nc$2@dont-email.me> <upp6ea$3t3ai$1@dont-email.me>
<uppero$3v3vn$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 5 Feb 2024 02:08:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e85c8ff53645b7d4213f2214e8730b82";
logging-data="4173873"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/D1KTrC0h5ybyys6RE0J74uv+qaffqGbM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:t0mqt23F4RaO0lB+CosRJXt/f/A=
In-Reply-To: <uppero$3v3vn$2@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Mon, 5 Feb 2024 02:08 UTC

On 2/4/2024 5:49 PM, Lawrence D'Oliveiro wrote:
> On Sun, 4 Feb 2024 15:26:02 -0800, Chris M. Thomasson wrote:
>
>> On 2/4/2024 2:36 PM, Lawrence D'Oliveiro wrote:
>>
>>> On Sat, 3 Feb 2024 12:47:29 -0800, Chris M. Thomasson wrote:
>>>
>>>> On 2/2/2024 5:43 PM, Lawrence D'Oliveiro wrote:
>>>>
>>>>> Given your ongoing tales of woe, wrestling cross-platform C code to
>>>>> behave nicely on Windows, I wouldn’t change places for the world.
>>>>
>>>> vcpkg is not all that bad. :^)
>>>
>>> I’m sure vcpkg, winget, nuget, chocolatey, anaconda and all the rest of
>>> them are not all that bad, at least not individually.
>>>
>>> Having to use more than one of them, on the same system, would be where
>>> it starts to go downhill ...
>>
>> Pick one that works for your current setup, and use it. Fair enough?
>
> But their application areas only partially overlap, if at all. What if the
> package you want is only available in a different, incompatible format?

Shit happens.

> This is all part of the fragmentation of Windows development.

Make it work! ;^)

Re: iso646.h

<hqlotitqo9var5gm0bcba7nubfuba4bulk@4ax.com>

  copy mid

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

  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: dave_tho...@comcast.net
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 26 Feb 2024 04:18:16 -0500
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <hqlotitqo9var5gm0bcba7nubfuba4bulk@4ax.com>
References: <up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <upas3j$10bft$1@dont-email.me> <upb5q3$11vej$1@dont-email.me> <upb7ts$12b6n$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="4fc000dd80b5f2898b8276ffc73dd31d";
logging-data="2591599"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18S9GgbKdotAbq4kOz5+NN8PDODE3Xerc8="
Cancel-Lock: sha1:cTCxi8vgFB9cTuagUVD60xfAcMk=
X-Newsreader: Forte Agent 3.3/32.846
 by: dave_tho...@comcast.net - Mon, 26 Feb 2024 09:18 UTC

On Tue, 30 Jan 2024 17:25:31 +0100, David Brown
<david.brown@hesbynett.no> wrote:

> On 30/01/2024 16:49, Malcolm McLean wrote:
[nonsense as usual]
> Mixing binary data with formatted text data is very unlikely to be
> useful. fwrite() is perfectly good for writing binary data - it would
> make no sense to have some awkward printf specifier to do this. (What
> would the specifier even be? It would need to take two items of data -
> a pointer and a length - and thus be very different from existing
> specifiers.)
>
"%.*s" takes length and pointer, which IMO is not VERY different.

It does stop (prematurely?) if the data/buffer contains \0 .

[snip rest]

Re: iso646.h

<krlotitcq1kglcb5e5nhab8cs38ooqlh23@4ax.com>

  copy mid

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

  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: dave_tho...@comcast.net
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Mon, 26 Feb 2024 04:20:23 -0500
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <krlotitcq1kglcb5e5nhab8cs38ooqlh23@4ax.com>
References: <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <upas3j$10bft$1@dont-email.me> <upb5q3$11vej$1@dont-email.me> <upb7ts$12b6n$1@dont-email.me> <9S9uN.374651$p%Mb.321185@fx15.iad> <upbimd$143k9$2@dont-email.me> <upco9g$1db7v$8@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="4fc000dd80b5f2898b8276ffc73dd31d";
logging-data="2591599"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18MgfxGZjGvlLiCKN58EPst7p9WOcaX7y8="
Cancel-Lock: sha1:vrmUdUPG6UYB5iWXxTe+Tkzr3vI=
X-Newsreader: Forte Agent 3.3/32.846
 by: dave_tho...@comcast.net - Mon, 26 Feb 2024 09:20 UTC

On Wed, 31 Jan 2024 06:10:56 -0000 (UTC), Lawrence D'Oliveiro
<ldo@nz.invalid> wrote:

> On Tue, 30 Jan 2024 20:29:17 +0100, David Brown wrote:
>
> > stdout and stdin were apparently available in FORTRAN in the 1950's.
>
> There was a convention that channel 5 was the card reader, and 6 was the
> line printer.
>
and 7 the card punch, at least from FIV/66 up. Data you expected to
reprocess, like a Unix filter's stdout, would go to 7, and data you
wanted a human to see, like stderr, to 6.

> When interactive systems came along later, this became channel 5 for
> keyboard input, and 6 for terminal output.
>
and 7 got lost -- the same way that ssh -t (and docker -t) loses the
distinction between stdout and stderr, it's all just output

> What happened to channels 1, 2, 3 & 4? Don’t know.

Pages:1234567891011121314151617181920212223242526
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor