Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

How can you do 'New Math' problems with an 'Old Math' mind? -- Charles Schulz


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

<uoriir$1tahm$1@dont-email.me>

  copy mid

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

  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: kal...@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 24 Jan 2024 17:49:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Sender: <untosten@0.0.0.0>
Message-ID: <uoriir$1tahm$1@dont-email.me>
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> <uorhuv$1t7db$1@dont-email.me>
Injection-Date: Wed, 24 Jan 2024 17:49:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="111deffd720e9e88b98404b661b2ef46";
logging-data="2009654"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Nx72iHK+sjlBCE683wVC+WAytf6AoVdk="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.6.11-200.fc39.x86_64 (x86_64))
Cancel-Lock: sha1:PL78g/z/cfhWHlsJqacq0/jcZ7Y=
 by: Kalevi Kolttonen - Wed, 24 Jan 2024 17:49 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
> It sounds so wrong, not matching anything I've experienced in the
> programming languages I heard about and about compiler construction
> that I can only express my astonishment about such a statement. The
> poster's statement itself is not explained, though, and if anything,
> the poster should first explain what makes him "pretty sure" about
> it before we can exchange arguments.

Well, I said I was "pretty sure" simply because there are probably
hundreds if not thousands of programming languages out there.

It seems rather likely to me that not all of them have
C-like properties.

I suppose it is possible that in some languages out-of-order
evaluation could be what happens, e.g. the "logical AND" operands
could be evaluated in parallel by different CPUs.

But admittedly I cannot give a concrete example.

br,
KK

Re: iso646.h

<uorli8$1tqmh$1@dont-email.me>

  copy mid

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

  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: kal...@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 24 Jan 2024 18:40:08 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 35
Sender: <untosten@0.0.0.0>
Message-ID: <uorli8$1tqmh$1@dont-email.me>
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> <uorhuv$1t7db$1@dont-email.me> <uoriir$1tahm$1@dont-email.me>
Injection-Date: Wed, 24 Jan 2024 18:40:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="111deffd720e9e88b98404b661b2ef46";
logging-data="2026193"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cTKc/1zHOpeWFAlwGktCea3nn/A/Uurw="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.6.11-200.fc39.x86_64 (x86_64))
Cancel-Lock: sha1:VHWAYtduZ/urxLC5XLUy+HDblto=
 by: Kalevi Kolttonen - Wed, 24 Jan 2024 18:40 UTC

Kalevi Kolttonen <kalevi@kolttonen.fi> wrote:
> I suppose it is possible that in some languages out-of-order
> evaluation could be what happens, e.g. the "logical AND" operands
> could be evaluated in parallel by different CPUs.

I did some searching and finally found a suitable result.
According to:

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

"Logical disjunction is usually short-circuited; that is,
if the first (left) operand evaluates to true, then the
second (right) operand is not evaluated. The logical
disjunction operator thus usually constitutes a
sequence point.

In a parallel (concurrent) language, it is possible to
short-circuit both sides: they are evaluated in
parallel, and if one terminates with value true, the
other is interrupted. This operator is thus called
the parallel or."

So that describes "parallel logical OR". If this is
possible in a parallel language, then surely
"parallel logical AND" is also doable because in
that case you can terminate the evaluation when
one of the operands turns out to be false.

The Wikipedia article seems to assume that these
logical operators take just two operands, but as
we know from some languages (LISP?), AND or OR can
be generalized to accept any number of operands.

br,
KK

Re: iso646.h

<20240124113101.523@kylheku.com>

  copy mid

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

  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: Wed, 24 Jan 2024 19:32:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <20240124113101.523@kylheku.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> <87cytrajvc.fsf@nosuchdomain.example.com>
<uopcv5$1f17i$9@dont-email.me> <87zfwv8x3n.fsf@nosuchdomain.example.com>
<uoqifs$1o2c1$1@dont-email.me>
Injection-Date: Wed, 24 Jan 2024 19:32:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b53ada80e44a49509d1cc2e54e523b05";
logging-data="2041978"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZZlGReQUzMvRzYHr+UV9rgH42v6UNxQo="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:wR5VG/L3WRijTBc4pJFTwF+Nyp8=
 by: Kaz Kylheku - Wed, 24 Jan 2024 19:32 UTC

On 2024-01-24, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
> On 24.01.2024 00:10, Keith Thompson wrote:
>>
>> The header was introduced to make it easier (or possible) to write C
>> code on systems/keyboards that don't support certain characters like '&'
>> and '|' -- similar to digraphs and trigraphs.
>
> I think this is the most likely explanation; the restricted _keyboards_
> (and not the restricted [ASCII] character set). Matches my experiences
> with old keyboards I used decades ago.

Well, keyboards and displays. Your keyboard has something other than a |
key, and when you type that, you get a character similar to the one
on the keyboard. They happen to have the same character code as the
ASCII/ISO 646 base character |. When you read someone's soure code,
you see that character where the code has | and ||.

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

Re: iso646.h

<uorolm$1uaut$1@dont-email.me>

  copy mid

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

  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: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 24 Jan 2024 19:33:09 +0000
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <uorolm$1uaut$1@dont-email.me>
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> <uoqvas$1q40p$1@dont-email.me>
<uor4rf$1r10t$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Jan 2024 19:33:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="30a3621b52039f4ba28278bd7966fb2b";
logging-data="2042845"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/iwotQgDELmgTAEoOpTZ8M0QReXOkdgJk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:SHcXDlRPoSXsO8TnimmmxtVxbek=
Content-Language: en-GB
In-Reply-To: <uor4rf$1r10t$1@dont-email.me>
 by: Malcolm McLean - Wed, 24 Jan 2024 19:33 UTC

On 24/01/2024 13:54, David Brown wrote:
> On 24/01/2024 13:20, Malcolm McLean wrote:
>>
> Many operators in C are not mathematical operations.  "sizeof" is an
> operator, so are indirection operators, structure member access
> operators, function calls, and the comma operator.
>
I've discussed this ad infinitum with people who don't really understand
what the term "function" means. Anththing that maps one set to another
set such that there is one and only one mapping from each member if the
struture set to the result set is mathematically a "function".
Sizeof clearly counts.
>
> Exponentiation is not particularly common in programming, except for a
> few special cases - easily written as "x * x", "x * x * x", "1.0 / x",
> or "sqrt(x)", which are normally significantly more efficient than a
> generic power function or operator would be.
>
It's pretty common in the sort of programming that I do. But this is
fair point. A lot of programs don't apply complex transformations to
data in the way that mine typically do.
>
> That is not an argument against having an operator in C called "pow". It
> is simply not useful enough for there to be a benefit in adding it to
> the language as an operator, when it could (and was) easily be added as
> a function in the standard library.
>
> (It could not have been added as "**", because - as Keith said in
> another post - "x ** y" already has a meaning in C.  While I believe it
> would be possible to distinguish the uses based on the type of "y",
> other than for the literal 0, having "x ** y" mean two /completely/
> different things depending on the type of "y" would not be a good idea
> for C.)
>
Yes, ** and ^, which are the two common ASCII fallbacks, are already
taken. But as you said earlier, in reality most exponentiation
operations are either square or cube, or square root. And in C, that
means either special functions or inefficiently converting the exponent
into a double. If pow were an operator, that wouldn't be an issue.

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

Re: iso646.h

<WNdsN.238449$7sbb.130839@fx16.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.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> <uol92t$l82b$3@dont-email.me> <uomjfr$sopf$1@dont-email.me> <uoopm9$1blvh$1@dont-email.me> <uop0r1$1d4d4$1@dont-email.me> <uoqvas$1q40p$1@dont-email.me> <uor4rf$1r10t$1@dont-email.me> <uorolm$1uaut$1@dont-email.me>
Lines: 16
Message-ID: <WNdsN.238449$7sbb.130839@fx16.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 24 Jan 2024 19:45:58 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 24 Jan 2024 19:45:58 GMT
X-Received-Bytes: 1490
 by: Scott Lurndal - Wed, 24 Jan 2024 19:45 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>On 24/01/2024 13:54, David Brown wrote:
>> On 24/01/2024 13:20, Malcolm McLean wrote:
>>>
>> Many operators in C are not mathematical operations.  "sizeof" is an
>> operator, so are indirection operators, structure member access
>> operators, function calls, and the comma operator.
> >
>I've discussed this ad infinitum with people who don't really understand
>what the term "function" means. Anththing that maps one set to another
>set such that there is one and only one mapping from each member if the
>struture set to the result set is mathematically a "function".
>Sizeof clearly counts.

Just how many angels do you think can dance on that pin?

Re: iso646.h

<uorpig$1ufn8$1@dont-email.me>

  copy mid

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

  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: kal...@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 24 Jan 2024 19:48:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Sender: <untosten@0.0.0.0>
Message-ID: <uorpig$1ufn8$1@dont-email.me>
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> <uoqvas$1q40p$1@dont-email.me> <uor4rf$1r10t$1@dont-email.me> <uorolm$1uaut$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Jan 2024 19:48:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="111deffd720e9e88b98404b661b2ef46";
logging-data="2047720"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Pg5K9ImydMZzpTf5Bev9mo4CMMH0wcrw="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.6.11-200.fc39.x86_64 (x86_64))
Cancel-Lock: sha1:BMJ4pRB6HVZd5m6gqJbO9vFYojk=
 by: Kalevi Kolttonen - Wed, 24 Jan 2024 19:48 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> wrote:
> On 24/01/2024 13:54, David Brown wrote:
>> On 24/01/2024 13:20, Malcolm McLean wrote:
>>>
>> Many operators in C are not mathematical operations.  "sizeof" is an
>> operator, so are indirection operators, structure member access
>> operators, function calls, and the comma operator.
>>
> I've discussed this ad infinitum with people who don't really understand
> what the term "function" means. Anththing that maps one set to another
> set such that there is one and only one mapping from each member if the
> struture set to the result set is mathematically a "function".
> Sizeof clearly counts.

Yes, indeed you are right *if* one accepts that the
mathematical meaning is the only acceptable one.

However, the meanings in mathematics and in programming
languages can be different.

For example, despite that some people still
complain that "=" should not be used for assignment
because in mathematics it means equality. It is
just that the meanings of "=" are different in different
contexts.

One can easily argue that sizeof() is not a function
in C because you cannot use function pointers to
refer to it. With C's meaning of functions, you
always can.

So it is not just a matter of mapping elements
of two sets.

br,
KK

Re: iso646.h

<uorpir$1ufp8$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!paganini.bofh.team!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: Wed, 24 Jan 2024 19:48:42 +0000
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <uorpir$1ufp8$1@dont-email.me>
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>
<uopcd0$1f17i$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Jan 2024 19:48:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="30a3621b52039f4ba28278bd7966fb2b";
logging-data="2047784"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/nOGHxR6HFUXtGID1RnCE1JgjZfkZbVsw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:uyQLjfLtSoa33puIsrekyd+UbOg=
In-Reply-To: <uopcd0$1f17i$4@dont-email.me>
Content-Language: en-GB
 by: Malcolm McLean - Wed, 24 Jan 2024 19:48 UTC

On 23/01/2024 21:51, Lawrence D'Oliveiro wrote:
> On Tue, 23 Jan 2024 16:32:09 +0000, Malcolm McLean wrote:
>
>> It breaks the rule that, in C, variables and functions are alphnumeric,
>> whilst operators are symbols.
>
> Where is there such a “rule”?
>
Valid function names have to begin with an alphabetical symbol or
(annoyingly for me) an underscore, as do variables. They may not contain
non-alphanumerical symbols except for underscore. It's in the C standard
somewhere.
C operators are all non-alphanumerical symbols, with the exception of
"sizeof". Again, the operators are listed in the C standard.

>
>> sizeof is an exception, but a justified one.
>
> This is how religious people argue: they use circular reasoning to say
> something is justified because it is justified.
>
No. This isn't circular reasoning. It's a claim which hasn't been backed
up. It's expected that the reader won't ask for this because it is so
obvious that we can give sensible reasons for "sizeof" being a
function-like alphabetical word rather than a symbol. But if you do, of
course I'm sure someone will provide such a justification.

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

Re: iso646.h

<uUdsN.304853$xHn7.126105@fx14.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx14.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> <uol92t$l82b$3@dont-email.me> <uomjfr$sopf$1@dont-email.me> <uoopm9$1blvh$1@dont-email.me> <uopcd0$1f17i$4@dont-email.me> <uorpir$1ufp8$1@dont-email.me>
Lines: 15
Message-ID: <uUdsN.304853$xHn7.126105@fx14.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 24 Jan 2024 19:52:58 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 24 Jan 2024 19:52:58 GMT
X-Received-Bytes: 1272
 by: Scott Lurndal - Wed, 24 Jan 2024 19:52 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>On 23/01/2024 21:51, Lawrence D'Oliveiro wrote:
>> On Tue, 23 Jan 2024 16:32:09 +0000, Malcolm McLean wrote:
>>
>>> It breaks the rule that, in C, variables and functions are alphnumeric,
>>> whilst operators are symbols.
>>
>> Where is there such a “rule”?
> >
>Valid function names have to begin with an alphabetical symbol or
>(annoyingly for me) an underscore, as do variables. They may not contain
>non-alphanumerical symbols except for underscore

Dollar symbol ($) is an allowed extension.

Re: iso646.h

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

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.1d4.us!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: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 24 Jan 2024 11:52:45 -0800
Organization: None to speak of
Lines: 49
Message-ID: <87y1ce5x0y.fsf@nosuchdomain.example.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> <uorhuv$1t7db$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="1a14796772ccb3100f0d224a23edc517";
logging-data="2049032"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vWqsYmVSIRu4FIPyIFU/C"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:rGEzcr62ZuK+TGNxcbdoIIZyvYc=
sha1:GATVokPswueDFkcCnFbVAPmZK9w=
 by: Keith Thompson - Wed, 24 Jan 2024 19:52 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
> On 24.01.2024 18:24, James Kuyper 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?
>
> It sounds so wrong, not matching anything I've experienced in the
> programming languages I heard about and about compiler construction
> that I can only express my astonishment about such a statement. The
> poster's statement itself is not explained, though, and if anything,
> the poster should first explain what makes him "pretty sure" about
> it before we can exchange arguments.

A concrete example:

#include <stdio.h>

static int count(void) {
static int result = 0;
return ++result;
}

int main(void) {
printf("%d %d %d\n", count(), count(), count());
return 0;
}

C does not specify the order in which the arguments are evaluated
(likewise for operands of most operators). This program could produce
any of 6 possible outputs, at the whim of the compiler. (On my system,
I see "3 2 1" with gcc and "1 2 3" with clang; both are perfectly
valid.)

I'm surprised that that surprises you. It's a fairly fundamental
property of C (and also of C++).

[...]

--
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: Python (Re: iso646.h)

<uorq0d$1ueal$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: Python (Re: iso646.h)
Date: Wed, 24 Jan 2024 19:55:59 +0000
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <uorq0d$1ueal$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <1bbk9a4wi2.fsf@pfeifferfamily.net>
<uor9n1$dcn$1@reader1.panix.com> <uorbbr$1s2e2$1@dont-email.me>
<uordpj$2eh$1@reader1.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 24 Jan 2024 19:55:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c2c105cd8d24f169cc51794302af1cd4";
logging-data="2046293"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/o4GA1F5pYozBhW7gRts30LBjqfXGxkkg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:tEgki/rrScD5Iuc9UaTZglxutgw=
In-Reply-To: <uordpj$2eh$1@reader1.panix.com>
Content-Language: en-GB
 by: bart - Wed, 24 Jan 2024 19:55 UTC

On 24/01/2024 16:27, Dan Cross wrote:
> In article <uorbbr$1s2e2$1@dont-email.me>, bart <bc@freeuk.com> wrote:

>> I think you're just making excuses.
>
> Rather, I'm simply explaining the history.
>
>> I used ASR33s extensively and had no trouble typing on them. (Other than
>> a small latency between pressing a key and having it printed that you
>> got used to, but it didn't affect your typing speed.)
>
> Anecdotal. I, too, have typed on an ASR-33. I did not find it
> pleasant and my hands hurt after a short time.

If this is the same terminal that you have to type program source code
on (especially C source!), and edit it, then clearly having two-letter
shell file commands instead of 3 or 4 letters is giving to make little
overall difference to how long development might take, or any fatigue
experienced.

(I don't remember that bit, but maybe my programs were short, and I
could only book terminals for an hour at a time anyway.)

I think it was suggested somewhere that the characteristics of such a
terminal were a reason for the short commands.

Re: iso646.h

<uorqdv$1uie2$1@dont-email.me>

  copy mid

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

  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: kal...@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 24 Jan 2024 20:03:11 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 57
Sender: <untosten@0.0.0.0>
Message-ID: <uorqdv$1uie2$1@dont-email.me>
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> <uorhuv$1t7db$1@dont-email.me> <87y1ce5x0y.fsf@nosuchdomain.example.com>
Injection-Date: Wed, 24 Jan 2024 20:03:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="111deffd720e9e88b98404b661b2ef46";
logging-data="2050498"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+oF+WXWmMTPqTnXJNobbubH5PcW3nOBYE="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.6.11-200.fc39.x86_64 (x86_64))
Cancel-Lock: sha1:L2dWsHzYjqic775XKIYwJbY6l2Y=
 by: Kalevi Kolttonen - Wed, 24 Jan 2024 20:03 UTC

Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
>> On 24.01.2024 18:24, James Kuyper 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?
>>
>> It sounds so wrong, not matching anything I've experienced in the
>> programming languages I heard about and about compiler construction
>> that I can only express my astonishment about such a statement. The
>> poster's statement itself is not explained, though, and if anything,
>> the poster should first explain what makes him "pretty sure" about
>> it before we can exchange arguments.
>
> A concrete example:
>
> #include <stdio.h>
>
> static int count(void) {
> static int result = 0;
> return ++result;
> }
>
> int main(void) {
> printf("%d %d %d\n", count(), count(), count());
> return 0;
> }
>
> C does not specify the order in which the arguments are evaluated
> (likewise for operands of most operators). This program could produce
> any of 6 possible outputs, at the whim of the compiler. (On my system,
> I see "3 2 1" with gcc and "1 2 3" with clang; both are perfectly
> valid.)
>
> I'm surprised that that surprises you. It's a fairly fundamental
> property of C (and also of C++).
>
> [...]

I believe Janis knows what you are saying. The object of
discussion was logical operators, not the fact that C's
function arguments have no guaranteed order of evaluation.

However, I already posted a link to Wikipedia that is
on-topic and shows that parallel logical OR and parallel
logical AND are available in some parallel/concurrent
programming languages.

br,
KK

Re: iso646.h

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

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 24 Jan 2024 12:09:01 -0800
Organization: None to speak of
Lines: 54
Message-ID: <87r0i65w9u.fsf@nosuchdomain.example.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>
<uopcd0$1f17i$4@dont-email.me> <uorpir$1ufp8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="1a14796772ccb3100f0d224a23edc517";
logging-data="2054292"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19H+BNtq8iwY5qjYrV97MmA"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:Dl8GvgmnyX4TchF9bwW66E7LpQU=
sha1:VSRLxDr6P6ffxav/9sq+JZAySSQ=
 by: Keith Thompson - Wed, 24 Jan 2024 20:09 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
> On 23/01/2024 21:51, Lawrence D'Oliveiro wrote:
>> On Tue, 23 Jan 2024 16:32:09 +0000, Malcolm McLean wrote:
>>> It breaks the rule that, in C, variables and functions are alphnumeric,
>>> whilst operators are symbols.
>> Where is there such a “rule”?
>>
> Valid function names have to begin with an alphabetical symbol or
> (annoyingly for me) an underscore, as do variables. They may not
> contain non-alphanumerical symbols except for underscore. It's in the
> C standard somewhere.

The word you're looking for is "identifier". Function names have to be
identifiers.

> C operators are all non-alphanumerical symbols, with the exception of
> "sizeof". Again, the operators are listed in the C standard.

And _Alignof, introduced in C11.

>>> sizeof is an exception, but a justified one.
>> This is how religious people argue: they use circular reasoning to
>> say
>> something is justified because it is justified.
>>
> No. This isn't circular reasoning. It's a claim which hasn't been
> backed up. It's expected that the reader won't ask for this because it
> is so obvious that we can give sensible reasons for "sizeof" being a
> function-like alphabetical word rather than a symbol. But if you do,
> of course I'm sure someone will provide such a justification.

Most of the operators in C are represented by *punctuators*, sequences
of punctuation characters. The sizeof and _Alignof are keywords, not
punctuators. The standard also refers to "cast operators", so an
operator can have the form ( type-name ).

The above is a statement of facts about the language, not any kind of
value judgement. I see no need to provide a "justification" for the
fact that the sizeof operator is not represented by a punctuator. (All
too often, my explanations of what the C standard says are mistaken for
advocacy.)

You seem to have a strong reaction to the idea that the decision to make
sizeof a keyword was "justified". Would you care to expand on that
reaction? Do you object to it? If so, why?

I've worked in languages where some operators are puncuators (+, -, *, /)
and some are keywords (and, or, xor, rem, mod). I never found it to
be a problem.

--
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

<uorqtl$1ulvh$1@dont-email.me>

  copy mid

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

  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: iso646.h
Date: Wed, 24 Jan 2024 20:11:33 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <uorqtl$1ulvh$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me> <uont40$16rlc$1@dont-email.me>
<20240123131544.17@kylheku.com> <uoqfl1$1nk81$1@dont-email.me>
<87r0i67mff.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Jan 2024 20:11:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ddbacda69116fe6ff0582ac006ad48a0";
logging-data="2054129"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wh0QTI0FCFaPUdZ2Lu+lJ"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:IRkeV1vkP2DNWCSoMFKTHyIXFZg=
 by: Lawrence D'Oliv - Wed, 24 Jan 2024 20:11 UTC

On Wed, 24 Jan 2024 07:58:44 -0800, Keith Thompson wrote:

> Trigraphs, digraphs, and <iso646.h> were all introduced to support
> systems that *don't* support the full ASCII character set.

Where is there a national character set that doesn’t support the symbols
for which iso646.h introduces synonyms?

Re: iso646.h

<uorr2r$1ulvh$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.1d4.us!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: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 24 Jan 2024 20:14:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <uorr2r$1ulvh$2@dont-email.me>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Jan 2024 20:14:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ddbacda69116fe6ff0582ac006ad48a0";
logging-data="2054129"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19+SKDG3xmLyBohJud9U8hQ"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:4WnQC27NZgfAgcMbvCct5ebNiVg=
 by: Lawrence D'Oliv - Wed, 24 Jan 2024 20:14 UTC

On Wed, 24 Jan 2024 12:24:32 -0500, James Kuyper wrote:

> As quoted, it's a general statement which includes C: "Except as
> specified later, side effects and value computations of subexpressions
> are unsequenced."

It always seemed to me, explicitly specifying an order removes the
potential for parallelization on hardware which might allow it.

Re: iso646.h

<uorr5f$1ulvh$3@dont-email.me>

  copy mid

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

  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: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 24 Jan 2024 20:15:43 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <uorr5f$1ulvh$3@dont-email.me>
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> <uorhuv$1t7db$1@dont-email.me>
<uoriir$1tahm$1@dont-email.me> <uorli8$1tqmh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Jan 2024 20:15:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ddbacda69116fe6ff0582ac006ad48a0";
logging-data="2054129"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+aFe2XQovj6O0IL9uCPLjA"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:FVIMLx0gBPT5YgdcmQVmnUd5yqU=
 by: Lawrence D'Oliv - Wed, 24 Jan 2024 20:15 UTC

On Wed, 24 Jan 2024 18:40:08 -0000 (UTC), Kalevi Kolttonen wrote:

> "Logical disjunction is usually short-circuited ...

I wonder why that shouldn’t apply to anything else. E.g. in

a × (b + c)

if “a” evaluates to zero, why not avoid the computation of “b + c” and
just return zero as the value of the expression?

Re: Python (Re: iso646.h)

<uorr9h$1ulvh$4@dont-email.me>

  copy mid

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

  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: Python (Re: iso646.h)
Date: Wed, 24 Jan 2024 20:17:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <uorr9h$1ulvh$4@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uop5rs$1dv1c$1@dont-email.me>
<uop6tv$1e5f9$1@dont-email.me> <1bbk9a4wi2.fsf@pfeifferfamily.net>
<uor9n1$dcn$1@reader1.panix.com> <uorbbr$1s2e2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Jan 2024 20:17:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ddbacda69116fe6ff0582ac006ad48a0";
logging-data="2054129"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rrMUN8LyQit3Dcdsw6h3C"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:2BT6hc+ar7dGV2Tq1jpWb0xU98Q=
 by: Lawrence D'Oliv - Wed, 24 Jan 2024 20:17 UTC

On Wed, 24 Jan 2024 15:46:04 +0000, bart wrote:

> It's also laughable that I get shouted down when I complain about all
> the extra junk you have to type here:
>
> cc prog.c -o prog -lm

We normally have Makefiles to do that for us.

Re: iso646.h

<uorrcf$1ulvh$5@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.chmurka.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: iso646.h
Date: Wed, 24 Jan 2024 20:19:27 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uorrcf$1ulvh$5@dont-email.me>
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> <87cytrajvc.fsf@nosuchdomain.example.com>
<uopcv5$1f17i$9@dont-email.me> <87zfwv8x3n.fsf@nosuchdomain.example.com>
<uopip7$1fs5l$6@dont-email.me> <87il3j8tjm.fsf@nosuchdomain.example.com>
<uopmm7$1ggo3$3@dont-email.me> <uoq59c$1m1bm$2@dont-email.me>
<uoq6um$1meme$3@dont-email.me> <8734un8ewf.fsf@nosuchdomain.example.com>
<uoqb2o$1mu4a$4@dont-email.me> <uor2g0$1qlf1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Jan 2024 20:19:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ddbacda69116fe6ff0582ac006ad48a0";
logging-data="2054129"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qx6/a5xZYxwihq/Ft2MBv"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:zYmcKZ942i43BilbAmznnZ1WF0o=
 by: Lawrence D'Oliv - Wed, 24 Jan 2024 20:19 UTC

On Wed, 24 Jan 2024 14:14:39 +0100, David Brown wrote:

> On 24/01/2024 07:35, Lawrence D'Oliveiro wrote:
>
>> On Tue, 23 Jan 2024 21:43:44 -0800, Keith Thompson wrote:
>>
>>> In the Shift-JIS encoding, character 0x5C, which is the backslash in
>>> ASCII and Unicode, is the Yen sign. That means that if a C source
>>> file contains "Hello, world\n", viewing it as Shift-JIS makes it look
>>> like "Hello, world¥n", but a C compiler that treats its input as ASCII
>>> would see a backslash.
>>
>> So what exactly does iso646.h offer to deal with this?
>>
> In Scandinavian language variants of ASCII ...

Relevance to Shift-JIS being?

Re: iso646.h

<uorrgh$1ulvh$6@dont-email.me>

  copy mid

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

  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: iso646.h
Date: Wed, 24 Jan 2024 20:21:37 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <uorrgh$1ulvh$6@dont-email.me>
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> <87cytrajvc.fsf@nosuchdomain.example.com>
<uoqgdv$1nog8$1@dont-email.me> <uor650$1r462$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Jan 2024 20:21:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ddbacda69116fe6ff0582ac006ad48a0";
logging-data="2054129"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182psnwHP0vhKAX7g+0tY+y"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:NbJBtEm3NAuZ0p1RC0J87S6DMQU=
 by: Lawrence D'Oliv - Wed, 24 Jan 2024 20:21 UTC

On Wed, 24 Jan 2024 14:17:04 -0000 (UTC), Lew Pitcher wrote:

> and, yes, COBOL programmers are still in demand, mostly by financial
> institutions that have hundreds of millions of lines of COBOL code to
> maintain.

I suspect a lot of those institutions have already gone out of business,
or are close to going out of business. And the amounts they have to pay
COBOL programmers to maintain their code are hastening that end.

> Are you certain that you want your taxes to be calculated in
> floatingpoint? ;-)

How else would you handle compound interest?

Re: iso646.h

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

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 24 Jan 2024 12:23:07 -0800
Organization: None to speak of
Lines: 17
Message-ID: <87il3i5vmc.fsf@nosuchdomain.example.com>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me> <uont40$16rlc$1@dont-email.me>
<20240123131544.17@kylheku.com> <uoqfl1$1nk81$1@dont-email.me>
<87r0i67mff.fsf@nosuchdomain.example.com>
<uorqtl$1ulvh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="1a14796772ccb3100f0d224a23edc517";
logging-data="2054292"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+sbtvvT/RphsSjmRJEpyih"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:Dy4HZaFi+y6RtPVqgbFfTkthUcE=
sha1:9TP5DjeaRRkALB6g1WG1Gjhqlds=
 by: Keith Thompson - Wed, 24 Jan 2024 20:23 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Wed, 24 Jan 2024 07:58:44 -0800, Keith Thompson wrote:
>> Trigraphs, digraphs, and <iso646.h> were all introduced to support
>> systems that *don't* support the full ASCII character set.
>
> Where is there a national character set that doesn’t support the symbols
> for which iso646.h introduces synonyms?

Just one example: <https://en.wikipedia.org/wiki/Code_page_1016> has 'ø'
in the slot that ASCII uses for '|'.

I don't believe it's in common use today, but it may have been in 1995.

--
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

<uorrms$1rqu0$1@dont-email.me>

  copy mid

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

  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: lew.pitc...@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 24 Jan 2024 20:25:00 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uorrms$1rqu0$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me> <uont40$16rlc$1@dont-email.me>
<20240123131544.17@kylheku.com> <uoqfl1$1nk81$1@dont-email.me>
<87r0i67mff.fsf@nosuchdomain.example.com> <uorqtl$1ulvh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Jan 2024 20:25:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ddf97977398e498ad3bf239c36b9ae19";
logging-data="1960896"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+w2qUvfIubb9OyKWGi82BP0d0QCsaaZvU="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:d1iAj5US6z/YKY0NgJX/YQyx2Fg=
 by: Lew Pitcher - Wed, 24 Jan 2024 20:25 UTC

On Wed, 24 Jan 2024 20:11:33 +0000, Lawrence D'Oliveiro wrote:

> On Wed, 24 Jan 2024 07:58:44 -0800, Keith Thompson wrote:
>
>> Trigraphs, digraphs, and <iso646.h> were all introduced to support
>> systems that *don't* support the full ASCII character set.
>
> Where is there a national character set that doesn’t support the symbols
> for which iso646.h introduces synonyms?

EBCDIC-US, for one. It lacks the CIRCUMFLEX (^) character.

--
Lew Pitcher
"In Skills We Trust"

Re: iso646.h

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

  copy mid

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

  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: iso646.h
Date: Wed, 24 Jan 2024 12:26:07 -0800
Organization: None to speak of
Lines: 25
Message-ID: <87ede65vhc.fsf@nosuchdomain.example.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>
<87cytrajvc.fsf@nosuchdomain.example.com>
<uoqgdv$1nog8$1@dont-email.me> <uor650$1r462$1@dont-email.me>
<uorrgh$1ulvh$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="1a14796772ccb3100f0d224a23edc517";
logging-data="2054292"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19OylnuRNLki3gcMWeCCX7K"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:h6c+J6lLRyw63bkmZbUEZL5QWio=
sha1:QcRUAX4+inUbLxSFKbt3o0lm4gU=
 by: Keith Thompson - Wed, 24 Jan 2024 20:26 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Wed, 24 Jan 2024 14:17:04 -0000 (UTC), Lew Pitcher wrote:
>> and, yes, COBOL programmers are still in demand, mostly by financial
>> institutions that have hundreds of millions of lines of COBOL code to
>> maintain.
>
> I suspect a lot of those institutions have already gone out of business,
> or are close to going out of business. And the amounts they have to pay
> COBOL programmers to maintain their code are hastening that end.
>
>> Are you certain that you want your taxes to be calculated in
>> floatingpoint? ;-)
>
> How else would you handle compound interest?

In whatever manner is specified by the relevant regulations.

I don't know what those regulations say, but I would not be at all
surprised if some of them require wide fixed-point calculations of some
sort with carefully specified rounding rules.

--
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

<uors29$1rqu0$2@dont-email.me>

  copy mid

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

  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: lew.pitc...@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 24 Jan 2024 20:31:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <uors29$1rqu0$2@dont-email.me>
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> <87cytrajvc.fsf@nosuchdomain.example.com>
<uoqgdv$1nog8$1@dont-email.me> <uor650$1r462$1@dont-email.me>
<uorrgh$1ulvh$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Jan 2024 20:31:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ddf97977398e498ad3bf239c36b9ae19";
logging-data="1960896"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19afssGBNkyb8mwo+QPQ9NuwR1y6fPXmN4="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:/pmbfhChc/18Z18NqMaUEg4FJic=
 by: Lew Pitcher - Wed, 24 Jan 2024 20:31 UTC

On Wed, 24 Jan 2024 20:21:37 +0000, Lawrence D'Oliveiro wrote:

> On Wed, 24 Jan 2024 14:17:04 -0000 (UTC), Lew Pitcher wrote:
>
>> and, yes, COBOL programmers are still in demand, mostly by financial
>> institutions that have hundreds of millions of lines of COBOL code to
>> maintain.
>
> I suspect a lot of those institutions have already gone out of business,
> or are close to going out of business.

And who do /you/ bank with? Certainly, in Canada, our major banks are still
going strong, and they /all/ use COBOL.

> And the amounts they have to pay COBOL programmers

COBOL programmers are being offered hourly rates at about $90 CAD or more.
(I checked this morning). OTOH, C++ programmers (for instance) are being
offered hourly rates of $45 CAD or thereabouts. (Again, this morning's
offers on Indeed.com).

> to maintain their code are hastening that end.

>> Are you certain that you want your taxes to be calculated in
>> floatingpoint? ;-)
>
> How else would you handle compound interest?

Fixed point arithmetic, of course. BTW, that's /not/ "integer"
arithmetic.

--
Lew Pitcher
"In Skills We Trust"

Re: iso646.h

<20240124124839.903@kylheku.com>

  copy mid

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

  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: Wed, 24 Jan 2024 20:50:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <20240124124839.903@kylheku.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> <uoqvas$1q40p$1@dont-email.me>
<uor4rf$1r10t$1@dont-email.me> <87frym7l3p.fsf@nosuchdomain.example.com>
Injection-Date: Wed, 24 Jan 2024 20:50:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b53ada80e44a49509d1cc2e54e523b05";
logging-data="2063193"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CeSJSGWpFrP7yQwqLDDbjzSNccCCVcQk="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:IuT9RpofoZVUrnkTrBl5/05ugo0=
 by: Kaz Kylheku - Wed, 24 Jan 2024 20:50 UTC

On 2024-01-24, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
> David Brown <david.brown@hesbynett.no> writes:
> [...]
>> (It could not have been added as "**", because - as Keith said in
>> another post - "x ** y" already has a meaning in C. While I believe
>> it would be possible to distinguish the uses based on the type of "y",
>> other than for the literal 0, having "x ** y" mean two /completely/
>> different things depending on the type of "y" would not be a good idea
>> for C.)
>
> The problem with a "**" exponentation operator is lexical. It's common
> to have two consecutive unary "*" operators in declarations and
> expression:
> char **argv;
> char c = **argv;

Clearly, then, the way forward with this ** operator is to wait for the
C++ people to do the unthinkable, and reluctantly copy it some years
later.

Ya know, like what they did with stacked template closers, which are
already the >> operator.

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

Re: iso646.h

<uortgh$1v0qv$1@dont-email.me>

  copy mid

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

  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: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 24 Jan 2024 21:55:45 +0100
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <uortgh$1v0qv$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uol92t$l82b$3@dont-email.me>
<uomjfr$sopf$1@dont-email.me> <uont40$16rlc$1@dont-email.me>
<20240123131544.17@kylheku.com> <uoqfl1$1nk81$1@dont-email.me>
<87r0i67mff.fsf@nosuchdomain.example.com> <uorqtl$1ulvh$1@dont-email.me>
<87il3i5vmc.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Jan 2024 20:55:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9e4b71ab5c8701bcf3acfe2ec4d9eb90";
logging-data="2065247"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ev76bejwKkfpjBIIPtxrXMLS20XdKUfk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:tRiidQl/Aos9z2jAjUvMvlioC6o=
Content-Language: en-GB
In-Reply-To: <87il3i5vmc.fsf@nosuchdomain.example.com>
 by: David Brown - Wed, 24 Jan 2024 20:55 UTC

On 24/01/2024 21:23, Keith Thompson wrote:
> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>> On Wed, 24 Jan 2024 07:58:44 -0800, Keith Thompson wrote:
>>> Trigraphs, digraphs, and <iso646.h> were all introduced to support
>>> systems that *don't* support the full ASCII character set.
>>
>> Where is there a national character set that doesn’t support the symbols
>> for which iso646.h introduces synonyms?
>
> Just one example: <https://en.wikipedia.org/wiki/Code_page_1016> has 'ø'
> in the slot that ASCII uses for '|'.
>
> I don't believe it's in common use today, but it may have been in 1995.
>

7-bit modified ASCII sets like this were definitely used for a while.
They were replaced by 8-bit extended ASCII sets, then UTF-8 (though the
Latin-1 and Latin-9 sets are still in common use, especially on
Windows). Both these 8-bit sets and UTF-8 have 7-bit ASCII as a subset,
and thus have no problems with C.

In 1995 I was new in Norway, and only spoke a little Norwegian, so I
used UK English when programming. I believe most Norwegian programmers
also used either US or UK English - being a relatively small country (in
population), almost everything technical here is in English. So C
character sets were never a problem for me when writing code. But
dot-matrix printers were often set to particular international sets - it
was not uncommon for code printouts to have Norwegian letters in place
of ASCII symbols.

It might be interesting to hear from any native Germans who were
programming C at that time. Germany is big enough that people
programmed in German (so comments would be in German, for example), and
their 7-bit ASCII variant (Code page 1011) also had accented letters in
place of some symbols used by C - including "|".

Re: Python (Re: iso646.h)

<uortjc$m22$1@reader1.panix.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.chmurka.net!weretis.net!feeder6.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cro...@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.lang.c
Subject: Re: Python (Re: iso646.h)
Date: Wed, 24 Jan 2024 20:57:16 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <uortjc$m22$1@reader1.panix.com>
References: <uokhnk$eiln$1@dont-email.me> <uorbbr$1s2e2$1@dont-email.me> <uordpj$2eh$1@reader1.panix.com> <uorq0d$1ueal$1@dont-email.me>
Injection-Date: Wed, 24 Jan 2024 20:57:16 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="22594"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)
 by: Dan Cross - Wed, 24 Jan 2024 20:57 UTC

In article <uorq0d$1ueal$1@dont-email.me>, bart <bc@freeuk.com> wrote:
>On 24/01/2024 16:27, Dan Cross wrote:
>> In article <uorbbr$1s2e2$1@dont-email.me>, bart <bc@freeuk.com> wrote:
>
>>> I think you're just making excuses.
>>
>> Rather, I'm simply explaining the history.
>>
>>> I used ASR33s extensively and had no trouble typing on them. (Other than
>>> a small latency between pressing a key and having it printed that you
>>> got used to, but it didn't affect your typing speed.)
>>
>> Anecdotal. I, too, have typed on an ASR-33. I did not find it
>> pleasant and my hands hurt after a short time.
>
>If this is the same terminal that you have to type program source code
>on (especially C source!), and edit it, then clearly having two-letter
>shell file commands instead of 3 or 4 letters is giving to make little
>overall difference to how long development might take, or any fatigue
>experienced.

That seems subjective.

>(I don't remember that bit, but maybe my programs were short, and I
>could only book terminals for an hour at a time anyway.)
>
>I think it was suggested somewhere that the characteristics of such a
>terminal were a reason for the short commands.

Dunno. That's what some folks on the Multics project told me.
Unix just carried forward what they were familiar with, and they
seemed to think it was easier to type, as well.

Perhaps you personally had a different experience on an ASR-33.
I suppose that's nice for you, but hardly relevant to the
mindset of a different group of people more than 50 years ago.

- Dan C.


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

Pages:1234567891011121314151617181920212223242526
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor