Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

If it's worth hacking on well, it's worth hacking on for money.


computers / comp.os.vms / VMS process communication

SubjectAuthor
* VMS process communicationArne Vajhøj
+* Re: VMS process communicationJohn Forkosh
|`- Re: VMS process communicationArne Vajhøj
+* Re: VMS process communicationDave Froble
|+* Re: VMS process communicationSingle Stage to Orbit
||`* Re: VMS process communicationCraig A. Berry
|| `* Re: VMS process communicationArne Vajhøj
||  +- Re: VMS process communicationDave Froble
||  +* Re: VMS process communicationArne Vajhøj
||  |`* Re: VMS process communicationJan-Erik Söderholm
||  | `* Re: VMS process communicationSingle Stage to Orbit
||  |  `* Re: VMS process communicationArne Vajhøj
||  |   `* Re: VMS process communicationJan-Erik Söderholm
||  |    +* Re: VMS process communicationArne Vajhøj
||  |    |`- Re: VMS process communicationArne Vajhøj
||  |    `- Re: VMS process communicationStephen Hoffman
||  `* Re: VMS process communicationArne Vajhøj
||   `* Re: VMS process communicationIan Miller
||    `* Re: VMS process communicationJohn Reagan
||     `* Re: VMS process communicationArne Vajhøj
||      `- Re: VMS process communicationArne Vajhøj
|+* Re: VMS process communicationMarc Van Dyck
||`- Re: VMS process communicationSingle Stage to Orbit
|`* Re: VMS process communicationLee Gleason
| +* Re: VMS process communicationDave Froble
| |`* Re: VMS process communicationRobert A. Brooks
| | +- Re: VMS process communicationDave Froble
| | `- Re: VMS process communicationRichard Maher
| `* Re: VMS process communicationArne Vajhøj
|  `* Re: VMS process communicationDave Froble
|   `* Re: VMS process communicationArne Vajhøj
|    +- Re: VMS process communicationStephen Hoffman
|    +- Re: VMS process communicationRichard Maher
|    `- Re: VMS process communicationDave Froble
+* Re: VMS process communicationBob Gezelter
|+* Re: VMS process communicationSimon Clubley
||`* Re: VMS process communicationBob Gezelter
|| `* Re: VMS process communicationDave Froble
||  `* Re: VMS process communicationStephen Hoffman
||   `* Re: VMS process communicationDave Froble
||    `* Re: VMS process communicationStephen Hoffman
||     `* Re: VMS process communicationDave Froble
||      `* Re: VMS process communicationSimon Clubley
||       `* Re: VMS process communicationDave Froble
||        `- Re: VMS process communicationFred. Zwarts
|+- Re: VMS process communicationStephen Hoffman
|`- Re: VMS process communicationArne Vajhøj
+* Re: VMS process communicationMarc Van Dyck
|`* Re: VMS process communicationArne Vajhøj
| +- Re: VMS process communicationCraig A. Berry
| `* Re: VMS process communicationDave Froble
|  +- Re: VMS process communicationArne Vajhøj
|  `* Re: VMS process communicationJan-Erik Söderholm
|   `* Re: VMS process communicationRichard Maher
|    +* Re: VMS process communicationDave Froble
|    |`- Re: VMS process communicationRichard Maher
|    +* Re: VMS process communicationArne Vajhøj
|    |`* Re: VMS process communicationArne Vajhøj
|    | `* Re: VMS process communicationSimon Clubley
|    |  `- Re: VMS process communicationArne Vajhøj
|    `* Re: VMS process communicationStephen Hoffman
|     `* Re: VMS process communicationRichard Maher
|      `- Re: VMS process communicationStephen Hoffman
`* Re: VMS process communicationArne Vajhøj
 +* Re: VMS process communicationSimon Clubley
 |`* Re: VMS process communicationArne Vajhøj
 | `* Re: VMS process communicationArne Vajhøj
 |  +* Re: VMS process communicationCraig A. Berry
 |  |+* Re: VMS process communicationArne Vajhøj
 |  ||`* Re: VMS process communicationSimon Clubley
 |  || `* Re: VMS process communicationArne Vajhøj
 |  ||  `* Re: VMS process communicationSimon Clubley
 |  ||   +* Re: VMS process communicationArne Vajhøj
 |  ||   |`* Re: VMS process communicationDave Froble
 |  ||   | +- Re: VMS process communicationArne Vajhøj
 |  ||   | `* Re: VMS process communicationSimon Clubley
 |  ||   |  `* Re: VMS process communicationDave Froble
 |  ||   |   `* Re: VMS process communicationArne Vajhøj
 |  ||   |    +* Re: VMS process communicationArne Vajhøj
 |  ||   |    |`* Re: VMS process communicationSimon Clubley
 |  ||   |    | `* Re: VMS process communicationArne Vajhøj
 |  ||   |    |  `- Re: VMS process communicationSimon Clubley
 |  ||   |    `* Re: VMS process communicationbill
 |  ||   |     +* Re: VMS process communicationArne Vajhøj
 |  ||   |     |`* Re: VMS process communicationSteven Schweda
 |  ||   |     | `* Re: VMS process communicationArne Vajhøj
 |  ||   |     |  +* Re: VMS process communicationSteven Schweda
 |  ||   |     |  |+* Re: VMS process communicationScott Dorsey
 |  ||   |     |  ||+* Re: VMS process communicationSteven Schweda
 |  ||   |     |  |||`- Re: VMS process communicationArne Vajhøj
 |  ||   |     |  ||`- Re: VMS process communicationArne Vajhøj
 |  ||   |     |  |`- Re: VMS process communicationArne Vajhøj
 |  ||   |     |  `* Re: VMS process communicationDave Froble
 |  ||   |     |   +- Re: VMS process communicationSteven Schweda
 |  ||   |     |   `* Re: VMS process communicationArne Vajhøj
 |  ||   |     |    +- Re: VMS process communicationDave Froble
 |  ||   |     |    +* Re: VMS process communicationSteven Schweda
 |  ||   |     |    |`- Re: VMS process communicationArne Vajhøj
 |  ||   |     |    `* Re: VMS process communicationJohnny Billquist
 |  ||   |     |     +* Re: VMS process communicationSteven Schweda
 |  ||   |     |     |`* Re: VMS process communicationJohnny Billquist
 |  ||   |     |     +* Re: VMS process communicationScott Dorsey
 |  ||   |     |     `* Re: VMS process communicationArne Vajhøj
 |  ||   |     `- Re: VMS process communicationDave Froble
 |  ||   `- Re: VMS process communicationJohnny Billquist
 |  |`* Re: VMS process communicationCraig A. Berry
 |  +* Re: VMS process communicationAndreas Gruhl
 |  +* Re: VMS process communicationJOUKJ
 |  +- Re: VMS process communicationSimon Clubley
 |  `* Re: VMS process communicationArne Vajhøj
 `- Re: VMS process communicationArne Vajhøj

Pages:123456789
Re: C limitations, was: Re: VMS process communication

<kakr5oFq0fdU8@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27705&group=comp.os.vms#27705

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Sun, 23 Apr 2023 09:46:32 -0400
Lines: 16
Message-ID: <kakr5oFq0fdU8@mid.individual.net>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tvf4j6$lpst$1@dont-email.me> <k88rd6FmhttU1@mid.individual.net>
<tvnffo$shi$1@panix2.panix.com> <tvs23c$37d4e$1@dont-email.me>
<tvt4jf$b82$1@news.misty.com>
<4b19ca379d935295930f6fb5ea59f983d617f2bd.camel@munted.eu>
<tvulqg$3o71m$1@dont-email.me> <u01m8k$scd$4@news.misty.com>
<k8jc4aFmhtrU2@mid.individual.net> <u0d7ss$v7b$1@news.misty.com>
<k8vv8cFtencU2@mid.individual.net> <u0q05f$f44$1@news.misty.com>
<u16fvo$32arb$1@dont-email.me> <u16g44$32arb$2@dont-email.me>
<u17m5s$etu$1@news.misty.com> <u1hb3t$2kdmo$1@dont-email.me>
<u1r0rs$dei$1@news.misty.com> <u21rmt$3fikq$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net xCyzO0zSDBdniS/scvWZLw7Be86Bx729EwxnnBOBNA9ODHjrH0
Cancel-Lock: sha1:Qi2IkZs/Cg0Yi49QopYFXYwQdQI=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Content-Language: en-US
In-Reply-To: <u21rmt$3fikq$1@dont-email.me>
 by: bill - Sun, 23 Apr 2023 13:46 UTC

On 4/22/2023 7:47 PM, Arne Vajhøj wrote:
>
>
> True. In C the isdigit function would be much better than a range check.
>

A cute idea, but also a modern accretion. Early C didn't have it
and as much as people like to say comparing a char to it's numeric
value is not a good idea it was quite common at one time. I know,
because I was the one tasked with porting some of this code to
Primix where the chars all had a different numeric value. I don't
know why they did it, but they did.

bill

Re: C limitations, was: Re: VMS process communication

<u23d4f$3qsd3$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27706&group=comp.os.vms#27706

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Sun, 23 Apr 2023 09:51:11 -0400
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <u23d4f$3qsd3$1@dont-email.me>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tvf4j6$lpst$1@dont-email.me> <k88rd6FmhttU1@mid.individual.net>
<tvnffo$shi$1@panix2.panix.com> <tvs23c$37d4e$1@dont-email.me>
<tvt4jf$b82$1@news.misty.com>
<4b19ca379d935295930f6fb5ea59f983d617f2bd.camel@munted.eu>
<tvulqg$3o71m$1@dont-email.me> <u01m8k$scd$4@news.misty.com>
<k8jc4aFmhtrU2@mid.individual.net> <u0d7ss$v7b$1@news.misty.com>
<k8vv8cFtencU2@mid.individual.net> <u0q05f$f44$1@news.misty.com>
<u16fvo$32arb$1@dont-email.me> <u16g44$32arb$2@dont-email.me>
<u17m5s$etu$1@news.misty.com> <u1hb3t$2kdmo$1@dont-email.me>
<u1r0rs$dei$1@news.misty.com> <u21rmt$3fikq$1@dont-email.me>
<kakr5oFq0fdU8@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Apr 2023 13:51:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a1563055826bf7ef3fc23e727698888e";
logging-data="4026787"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6PVIA5SLDDHfCDZWcZSbna8salMUfhTw="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:JBnvCDucanxAsIgRsOdeEhSmzqM=
In-Reply-To: <kakr5oFq0fdU8@mid.individual.net>
Content-Language: en-US
 by: Arne Vajhøj - Sun, 23 Apr 2023 13:51 UTC

On 4/23/2023 9:46 AM, bill wrote:
> On 4/22/2023 7:47 PM, Arne Vajhøj wrote:
>> True. In C the isdigit function would be much better than a range check.
>
> A cute idea, but also a modern accretion. Early C didn't have it
> and as much as people like to say comparing a char to it's numeric
> value is not a good idea it was quite common at one time.  I know,
> because I was the one tasked with porting some of this code to
> Primix where the chars all had a different numeric value.  I don't
> know why they did it, but they did.

Different people may have different definitions of "modern".

isdigit is in C89 so it has been standard for over 30 years.

Arne

Re: C limitations, was: Re: VMS process communication

<kakrjsFq6ffU8@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27707&group=comp.os.vms#27707

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news0...@eager.cx (Bob Eager)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: 23 Apr 2023 13:54:04 GMT
Lines: 20
Message-ID: <kakrjsFq6ffU8@mid.individual.net>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tvf4j6$lpst$1@dont-email.me> <k88rd6FmhttU1@mid.individual.net>
<tvnffo$shi$1@panix2.panix.com> <tvs23c$37d4e$1@dont-email.me>
<tvt4jf$b82$1@news.misty.com>
<4b19ca379d935295930f6fb5ea59f983d617f2bd.camel@munted.eu>
<tvulqg$3o71m$1@dont-email.me> <u01m8k$scd$4@news.misty.com>
<k8jc4aFmhtrU2@mid.individual.net> <u0d7ss$v7b$1@news.misty.com>
<k8vv8cFtencU2@mid.individual.net> <u0q05f$f44$1@news.misty.com>
<u16fvo$32arb$1@dont-email.me> <u16g44$32arb$2@dont-email.me>
<u17m5s$etu$1@news.misty.com> <u1hb3t$2kdmo$1@dont-email.me>
<u1r0rs$dei$1@news.misty.com> <u21rmt$3fikq$1@dont-email.me>
<kakr5oFq0fdU8@mid.individual.net> <u23d4f$3qsd3$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net zZNGyVtwVNfFXLcXL++kowDoKYvoBmA4g4sc99ARG0Yj8bVxiU
Cancel-Lock: sha1:FPnZI5U/+Sn7yifZ4JNY+q26Df0=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Sun, 23 Apr 2023 13:54 UTC

On Sun, 23 Apr 2023 09:51:11 -0400, Arne Vajhøj wrote:

> On 4/23/2023 9:46 AM, bill wrote:
>> On 4/22/2023 7:47 PM, Arne Vajhøj wrote:
>>> True. In C the isdigit function would be much better than a range
>>> check.
>>
>> A cute idea, but also a modern accretion. Early C didn't have it and as
>> much as people like to say comparing a char to it's numeric value is
>> not a good idea it was quite common at one time.  I know,
>> because I was the one tasked with porting some of this code to Primix
>> where the chars all had a different numeric value.  I don't know why
>> they did it, but they did.
>
> Different people may have different definitions of "modern".
>
> isdigit is in C89 so it has been standard for over 30 years.

It's in the original K&R book, so that's back as far as 1978. Hardly a
'modern accretion'!

Re: C limitations, was: Re: VMS process communication

<kakrvrFq0fdU9@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27708&group=comp.os.vms#27708

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Sun, 23 Apr 2023 10:00:27 -0400
Lines: 29
Message-ID: <kakrvrFq0fdU9@mid.individual.net>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tvf4j6$lpst$1@dont-email.me> <k88rd6FmhttU1@mid.individual.net>
<tvnffo$shi$1@panix2.panix.com> <tvs23c$37d4e$1@dont-email.me>
<tvt4jf$b82$1@news.misty.com>
<4b19ca379d935295930f6fb5ea59f983d617f2bd.camel@munted.eu>
<tvulqg$3o71m$1@dont-email.me> <u01m8k$scd$4@news.misty.com>
<k8jc4aFmhtrU2@mid.individual.net> <u0d7ss$v7b$1@news.misty.com>
<k8vv8cFtencU2@mid.individual.net> <u0q05f$f44$1@news.misty.com>
<u16fvo$32arb$1@dont-email.me> <u16g44$32arb$2@dont-email.me>
<u17m5s$etu$1@news.misty.com> <u1hb3t$2kdmo$1@dont-email.me>
<u1r0rs$dei$1@news.misty.com> <u21rmt$3fikq$1@dont-email.me>
<kakr5oFq0fdU8@mid.individual.net> <u23d4f$3qsd3$1@dont-email.me>
<kakrjsFq6ffU8@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net CXNHi/OmWJTjM+FmbVa3nAQqqY9y8qTnEDzqbX4SG828CPpi0K
Cancel-Lock: sha1:ctT1ASbo7O8BQN6tAkWml7q13JY=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Content-Language: en-US
In-Reply-To: <kakrjsFq6ffU8@mid.individual.net>
 by: bill - Sun, 23 Apr 2023 14:00 UTC

On 4/23/2023 9:54 AM, Bob Eager wrote:
> On Sun, 23 Apr 2023 09:51:11 -0400, Arne Vajhøj wrote:
>
>> On 4/23/2023 9:46 AM, bill wrote:
>>> On 4/22/2023 7:47 PM, Arne Vajhøj wrote:
>>>> True. In C the isdigit function would be much better than a range
>>>> check.
>>>
>>> A cute idea, but also a modern accretion. Early C didn't have it and as
>>> much as people like to say comparing a char to it's numeric value is
>>> not a good idea it was quite common at one time.  I know,
>>> because I was the one tasked with porting some of this code to Primix
>>> where the chars all had a different numeric value.  I don't know why
>>> they did it, but they did.
>>
>> Different people may have different definitions of "modern".
>>
>> isdigit is in C89 so it has been standard for over 30 years.
>
> It's in the original K&R book, so that's back as far as 1978. Hardly a
> 'modern accretion'!

It is not in Ultrix-11 :-). I assume that also means V7.
Don't remember it in System III. Don't know when it came
about but I was already trying to port a lot of Univ C
programs by 1982. A bit before C89.

bill

Re: C limitations, was: Re: VMS process communication

<kaksngFq0fdU10@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27709&group=comp.os.vms#27709

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Sun, 23 Apr 2023 10:13:05 -0400
Lines: 24
Message-ID: <kaksngFq0fdU10@mid.individual.net>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tvf4j6$lpst$1@dont-email.me> <k88rd6FmhttU1@mid.individual.net>
<tvnffo$shi$1@panix2.panix.com> <tvs23c$37d4e$1@dont-email.me>
<tvt4jf$b82$1@news.misty.com>
<4b19ca379d935295930f6fb5ea59f983d617f2bd.camel@munted.eu>
<tvulqg$3o71m$1@dont-email.me> <u01m8k$scd$4@news.misty.com>
<k8jc4aFmhtrU2@mid.individual.net> <u0d7ss$v7b$1@news.misty.com>
<k8vv8cFtencU2@mid.individual.net> <u0q05f$f44$1@news.misty.com>
<u16fvo$32arb$1@dont-email.me> <u16g44$32arb$2@dont-email.me>
<u17m5s$etu$1@news.misty.com> <u1hb3t$2kdmo$1@dont-email.me>
<u1r0rs$dei$1@news.misty.com> <u21rmt$3fikq$1@dont-email.me>
<kakr5oFq0fdU8@mid.individual.net> <kakrktFq6ffU9@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 5uO8Syr7OQFUbX+GU16JvAzxlR7aeDczqTguE6tpwuEg2UEvib
Cancel-Lock: sha1:SfvPoABDvkSqiPV76tTHdwN+rhM=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Content-Language: en-US
In-Reply-To: <kakrktFq6ffU9@mid.individual.net>
 by: bill - Sun, 23 Apr 2023 14:13 UTC

On 4/23/2023 9:54 AM, Bob Eager wrote:
> On Sun, 23 Apr 2023 09:46:32 -0400, bill wrote:
>
>> On 4/22/2023 7:47 PM, Arne Vajhøj wrote:
>>>
>>>
>>> True. In C the isdigit function would be much better than a range
>>> check.
>>>
>>>
>> A cute idea, but also a modern accretion. Early C didn't have it and as
>> much as people like to say comparing a char to it's numeric value is not
>> a good idea it was quite common at one time. I know,
>> because I was the one tasked with porting some of this code to Primix
>> where the chars all had a different numeric value. I don't know why
>> they did it, but they did.
>
> It's in the K&R book dated 1978. So that's 'modern', then?

Interesting. Says it's in the C library but I don't remember it and
man doesn't return an entry.

bill

Re: C limitations, was: Re: VMS process communication

<memo.20230423152757.3216T@jgd.cix.co.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27710&group=comp.os.vms#27710

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jgd...@cix.co.uk (John Dallman)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Sun, 23 Apr 2023 15:27 +0100 (BST)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <memo.20230423152757.3216T@jgd.cix.co.uk>
References: <kakr5oFq0fdU8@mid.individual.net>
Reply-To: jgd@cix.co.uk
Injection-Info: dont-email.me; posting-host="1562fb0b5cb88809e75f40f7fbf789b4";
logging-data="4042123"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gnXroPI9X3yH2uYD+jN6taHTjkJmHFdI="
Cancel-Lock: sha1:LlNdp3JprYhuKDeaPR2nBYjcXec=
 by: John Dallman - Sun, 23 Apr 2023 14:27 UTC

In article <kakr5oFq0fdU8@mid.individual.net>, bill.gunshannon@gmail.com
(bill) wrote:

> A cute idea, but also a modern accretion. Early C didn't have it
> and as much as people like to say comparing a char to it's numeric
> value is not a good idea it was quite common at one time. I know,
> because I was the one tasked with porting some of this code to
> Primix where the chars all had a different numeric value. I don't
> know why they did it, but they did.

Wikipedia reckons <https://en.wikipedia.org/wiki/PRIMOS#Data_access> that
the Teletype ASR-33 required the top bit of an 8-bit byte to be 1. So
that was adopted as the standard PRIMOS character code, since basic ASCII
left the top bit undefined.

John

Re: C limitations, was: Re: VMS process communication

<kam0vhFq0fdU11@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27717&group=comp.os.vms#27717

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Sun, 23 Apr 2023 20:31:45 -0400
Lines: 52
Message-ID: <kam0vhFq0fdU11@mid.individual.net>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<u23d4f$3qsd3$1@dont-email.me> <kakrjsFq6ffU8@mid.individual.net>
<kakrvrFq0fdU9@mid.individual.net> <u241fn$p6c$1@reader2.panix.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 83059wv2z/agFfWjjihLDA/LyoD4xAZfY3A+WWVTSROGvHRX9+
Cancel-Lock: sha1:khWcdxDS52pSfd5n6yJ9TgYx1n0=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Content-Language: en-US
In-Reply-To: <u241fn$p6c$1@reader2.panix.com>
 by: bill - Mon, 24 Apr 2023 00:31 UTC

On 4/23/2023 3:38 PM, Dan Cross wrote:
> In article <kakrvrFq0fdU9@mid.individual.net>,
> bill <bill.gunshannon@gmail.com> wrote:
>> On 4/23/2023 9:54 AM, Bob Eager wrote:
>>> On Sun, 23 Apr 2023 09:51:11 -0400, Arne Vajhøj wrote:
>>>
>>>> On 4/23/2023 9:46 AM, bill wrote:
>>>>> On 4/22/2023 7:47 PM, Arne Vajhøj wrote:
>>>>>> True. In C the isdigit function would be much better than a range
>>>>>> check.
>>>>>
>>>>> A cute idea, but also a modern accretion. Early C didn't have it and as
>>>>> much as people like to say comparing a char to it's numeric value is
>>>>> not a good idea it was quite common at one time.  I know,
>>>>> because I was the one tasked with porting some of this code to Primix
>>>>> where the chars all had a different numeric value.  I don't know why
>>>>> they did it, but they did.
>>>>
>>>> Different people may have different definitions of "modern".
>>>>
>>>> isdigit is in C89 so it has been standard for over 30 years.
>>>
>>> It's in the original K&R book, so that's back as far as 1978. Hardly a
>>> 'modern accretion'!
>>
>> It is not in Ultrix-11 :-). I assume that also means V7.
>
> It is certainly in V7 and is referenced all over Ultrix-11,
> though curiously, `ctype.h` seems to be missing from the archive
> I have of that. However, it's in v7m.
>
>> Don't remember it in System III.
>
> It was definitely in System III.
>
>> Don't know when it came
>> about but I was already trying to port a lot of Univ C
>> programs by 1982. A bit before C89.

>
> That's very odd. Was that some kind of micro?

Typo. Should have been just Unix C. I was porting
to Primos and Primix.
Mostly stuff from the comp.sources groups. Very little of it was
portable. Even with a lot of massaging. But the charset values
was the biggest killer because so many programs assumed 0-127 as
ordinal value of the ASCII charset.

bill

Re: C limitations, was: Re: VMS process communication

<kakrktFq6ffU9@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27720&group=comp.os.vms#27720

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news0...@eager.cx (Bob Eager)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: 23 Apr 2023 13:54:37 GMT
Lines: 17
Message-ID: <kakrktFq6ffU9@mid.individual.net>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tvf4j6$lpst$1@dont-email.me> <k88rd6FmhttU1@mid.individual.net>
<tvnffo$shi$1@panix2.panix.com> <tvs23c$37d4e$1@dont-email.me>
<tvt4jf$b82$1@news.misty.com>
<4b19ca379d935295930f6fb5ea59f983d617f2bd.camel@munted.eu>
<tvulqg$3o71m$1@dont-email.me> <u01m8k$scd$4@news.misty.com>
<k8jc4aFmhtrU2@mid.individual.net> <u0d7ss$v7b$1@news.misty.com>
<k8vv8cFtencU2@mid.individual.net> <u0q05f$f44$1@news.misty.com>
<u16fvo$32arb$1@dont-email.me> <u16g44$32arb$2@dont-email.me>
<u17m5s$etu$1@news.misty.com> <u1hb3t$2kdmo$1@dont-email.me>
<u1r0rs$dei$1@news.misty.com> <u21rmt$3fikq$1@dont-email.me>
<kakr5oFq0fdU8@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net w0spRp5ZdrodCXv6EJY4JwgEQiq8tDTArhRpy2xcyAPjyVX/Kp
Cancel-Lock: sha1:BR/MMGwKV74EgfghW0LblGLFA48=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Sun, 23 Apr 2023 13:54 UTC

On Sun, 23 Apr 2023 09:46:32 -0400, bill wrote:

> On 4/22/2023 7:47 PM, Arne Vajhøj wrote:
>>
>>
>> True. In C the isdigit function would be much better than a range
>> check.
>>
>>
> A cute idea, but also a modern accretion. Early C didn't have it and as
> much as people like to say comparing a char to it's numeric value is not
> a good idea it was quite common at one time. I know,
> because I was the one tasked with porting some of this code to Primix
> where the chars all had a different numeric value. I don't know why
> they did it, but they did.

It's in the K&R book dated 1978. So that's 'modern', then?

Re: C limitations, was: Re: VMS process communication

<u25son$b7k5$3@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27725&group=comp.os.vms#27725

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Mon, 24 Apr 2023 12:30:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <u25son$b7k5$3@dont-email.me>
References: <631fb9a1$0$703$14726298@news.sunsite.dk> <tvf4j6$lpst$1@dont-email.me> <k88rd6FmhttU1@mid.individual.net> <tvnffo$shi$1@panix2.panix.com> <tvs23c$37d4e$1@dont-email.me> <tvt4jf$b82$1@news.misty.com> <4b19ca379d935295930f6fb5ea59f983d617f2bd.camel@munted.eu> <tvulqg$3o71m$1@dont-email.me> <u01m8k$scd$4@news.misty.com> <k8jc4aFmhtrU2@mid.individual.net> <u0d7ss$v7b$1@news.misty.com> <k8vv8cFtencU2@mid.individual.net> <u0q05f$f44$1@news.misty.com> <u16fvo$32arb$1@dont-email.me> <u16g44$32arb$2@dont-email.me> <u17m5s$etu$1@news.misty.com> <u1hb3t$2kdmo$1@dont-email.me> <u1r0rs$dei$1@news.misty.com> <u21rmt$3fikq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 24 Apr 2023 12:30:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="00b852d4900ee8531f239f5ff0714985";
logging-data="368261"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/B/XJNDk4UagcYIlvh2T3G4HMOXRWJUyo="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:iOLwtpJpA7+lIZyf9r5M6J0GIVo=
 by: Simon Clubley - Mon, 24 Apr 2023 12:30 UTC

On 2023-04-22, Arne Vajhøj <arne@vajhoej.dk> wrote:
>
> Java has a Character.isDigit method that return true for 350 chars.

And what the hell is the point of _that_ ? :-)

> But I am pretty sure that most Java developers are interested in
> knowing if the char is in 0..9 not whether it is among those 350 chars.
>

Yes, that's what normal people, instead of ivory tower language
designers, want. :-)

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: C limitations, was: Re: VMS process communication

<u25ugf$75u$1@reader2.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27726&group=comp.os.vms#27726

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!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.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Mon, 24 Apr 2023 12:59:59 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <u25ugf$75u$1@reader2.panix.com>
References: <631fb9a1$0$703$14726298@news.sunsite.dk> <kakrvrFq0fdU9@mid.individual.net> <u241fn$p6c$1@reader2.panix.com> <kam0vhFq0fdU11@mid.individual.net>
Injection-Date: Mon, 24 Apr 2023 12:59:59 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="7358"; 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 - Mon, 24 Apr 2023 12:59 UTC

In article <kam0vhFq0fdU11@mid.individual.net>,
bill <bill.gunshannon@gmail.com> wrote:
>On 4/23/2023 3:38 PM, Dan Cross wrote:
>>> Don't know when it came
>>> about but I was already trying to port a lot of Univ C
>>> programs by 1982. A bit before C89.
>>
>> That's very odd. Was that some kind of micro?
>
>Typo. Should have been just Unix C. I was porting
>to Primos and Primix.

Got it.

>Mostly stuff from the comp.sources groups. Very little of it was
>portable. Even with a lot of massaging. But the charset values
>was the biggest killer because so many programs assumed 0-127 as
>ordinal value of the ASCII charset.

I can believe that, but I'd imagine it was less the use of
individual code-points as a general assumption that the high-bit
was clear, and that thus one could use a char to index a table
with only 128 entries or something: things like that still trip
up programmers, even in our modern, almost always ASCII or
UTF-8, world (indeed, this used to be a source of frustration
for using the `is*` family, as they did table lookups: one had
to be careful to use `isascii` first before blinding applying
them).

Regardless, the ctype macros were there pretty early on; they
date from when C was still single-digit years old, and certainly
by the early 80s they were well established.

- Dan C.

Re: C limitations, was: Re: VMS process communication

<u260ak$brdi$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27727&group=comp.os.vms#27727

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Mon, 24 Apr 2023 09:31:00 -0400
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <u260ak$brdi$1@dont-email.me>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<kakrvrFq0fdU9@mid.individual.net> <u241fn$p6c$1@reader2.panix.com>
<kam0vhFq0fdU11@mid.individual.net> <u25ugf$75u$1@reader2.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 24 Apr 2023 13:31:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c7e32ac9b47be3ace415d3c52f29fe8d";
logging-data="388530"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/klFDTA+LJPTjVxp483Zl19bdFTZ8bzoo="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:elUi3jq88dg24j5u//grKZffcQQ=
In-Reply-To: <u25ugf$75u$1@reader2.panix.com>
Content-Language: en-US
 by: Arne Vajhøj - Mon, 24 Apr 2023 13:31 UTC

On 4/24/2023 8:59 AM, Dan Cross wrote:
> In article <kam0vhFq0fdU11@mid.individual.net>,
>> Mostly stuff from the comp.sources groups. Very little of it was
>> portable. Even with a lot of massaging. But the charset values
>> was the biggest killer because so many programs assumed 0-127 as
>> ordinal value of the ASCII charset.
>
> I can believe that, but I'd imagine it was less the use of
> individual code-points as a general assumption that the high-bit
> was clear, and that thus one could use a char to index a table
> with only 128 entries or something: things like that still trip
> up programmers, even in our modern, almost always ASCII or
> UTF-8, world (indeed, this used to be a source of frustration
> for using the `is*` family, as they did table lookups: one had
> to be careful to use `isascii` first before blinding applying
> them).

The is* functions take an int and are required to accept
values that can be stuffed into an unsigned char (plus value
of EOF macro). An is* function using a 128 entry table is broken
on a system with an >7 bit execution char set.

The isascii function is not in the C standard but only in the
POSIX standard (The Open Group Base Specifications).

Arne

Re: C limitations, was: Re: VMS process communication

<kaneo8Fd56kU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27728&group=comp.os.vms#27728

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@andyburns.uk (Andy Burns)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Mon, 24 Apr 2023 14:32:56 +0100
Lines: 13
Message-ID: <kaneo8Fd56kU1@mid.individual.net>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tvf4j6$lpst$1@dont-email.me> <k88rd6FmhttU1@mid.individual.net>
<tvnffo$shi$1@panix2.panix.com> <tvs23c$37d4e$1@dont-email.me>
<tvt4jf$b82$1@news.misty.com>
<4b19ca379d935295930f6fb5ea59f983d617f2bd.camel@munted.eu>
<tvulqg$3o71m$1@dont-email.me> <u01m8k$scd$4@news.misty.com>
<k8jc4aFmhtrU2@mid.individual.net> <u0d7ss$v7b$1@news.misty.com>
<k8vv8cFtencU2@mid.individual.net> <u0q05f$f44$1@news.misty.com>
<u16fvo$32arb$1@dont-email.me> <u16g44$32arb$2@dont-email.me>
<u17m5s$etu$1@news.misty.com> <u1hb3t$2kdmo$1@dont-email.me>
<u1r0rs$dei$1@news.misty.com> <u21rmt$3fikq$1@dont-email.me>
<u25son$b7k5$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net c/0Ae5nDu0fE6407nDTC3AhrUNEt2tDFryyG5wLdA9FwGJPEYg
Cancel-Lock: sha1:y7MqjAegVgD+uYT75s+ndeXkLDI=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Content-Language: en-GB
In-Reply-To: <u25son$b7k5$3@dont-email.me>
 by: Andy Burns - Mon, 24 Apr 2023 13:32 UTC

Simon Clubley wrote:

> Arne Vajhøj wrote:
>
>> Java has a Character.isDigit method that return true for 350 chars.
>
> And what the hell is the point of _that_ ? :-)

Depends ... if you have a string where Character.isDigit() returns true
for every character, does Integer.parseInt() return the expected
integer. What about mixed writing systems, should the string "٣3३3" be
expected to return the integer 3333?

Re: C limitations, was: Re: VMS process communication

<u260sd$brdh$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27729&group=comp.os.vms#27729

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Mon, 24 Apr 2023 09:40:29 -0400
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <u260sd$brdh$1@dont-email.me>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tvf4j6$lpst$1@dont-email.me> <k88rd6FmhttU1@mid.individual.net>
<tvnffo$shi$1@panix2.panix.com> <tvs23c$37d4e$1@dont-email.me>
<tvt4jf$b82$1@news.misty.com>
<4b19ca379d935295930f6fb5ea59f983d617f2bd.camel@munted.eu>
<tvulqg$3o71m$1@dont-email.me> <u01m8k$scd$4@news.misty.com>
<k8jc4aFmhtrU2@mid.individual.net> <u0d7ss$v7b$1@news.misty.com>
<k8vv8cFtencU2@mid.individual.net> <u0q05f$f44$1@news.misty.com>
<u16fvo$32arb$1@dont-email.me> <u16g44$32arb$2@dont-email.me>
<u17m5s$etu$1@news.misty.com> <u1hb3t$2kdmo$1@dont-email.me>
<u1r0rs$dei$1@news.misty.com> <u21rmt$3fikq$1@dont-email.me>
<u25son$b7k5$3@dont-email.me> <kaneo8Fd56kU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 24 Apr 2023 13:40:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c7e32ac9b47be3ace415d3c52f29fe8d";
logging-data="388529"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9rypCMTtc7G+f8XOq7G6WFpv5hMbwt9Q="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:lStVZUz7IRuu0hNjkc4FLvE52u4=
In-Reply-To: <kaneo8Fd56kU1@mid.individual.net>
Content-Language: en-US
 by: Arne Vajhøj - Mon, 24 Apr 2023 13:40 UTC

On 4/24/2023 9:32 AM, Andy Burns wrote:
> Simon Clubley wrote:
>> Arne Vajhøj wrote:
>>> Java has a Character.isDigit method that return true for 350 chars.
>>
>> And what the hell is the point of _that_ ? :-)
>
> Depends ... if you have a string where Character.isDigit() returns true
> for every character, does Integer.parseInt() return the expected
> integer.  What about mixed writing systems, should the string "٣3३3" be
> expected to return the integer 3333?

The documentation explains what is does:

<quote>
public static boolean isDigit(char ch)

Determines if the specified character is a digit.

A character is a digit if its general category type, provided by
Character.getType(ch), is DECIMAL_DIGIT_NUMBER.

Some Unicode character ranges that contain digits:

'\u0030' through '\u0039', ISO-LATIN-1 digits ('0' through '9')
'\u0660' through '\u0669', Arabic-Indic digits
'\u06F0' through '\u06F9', Extended Arabic-Indic digits
'\u0966' through '\u096F', Devanagari digits
'\uFF10' through '\uFF19', Fullwidth digits

Many other character ranges contain digits as well.

Note: This method cannot handle supplementary characters. To support all
Unicode characters, including supplementary characters, use the
isDigit(int) method.
</quote>

But my theory is that most Java programs doing some input verification
really want to check for Iso-Latin-1 digits and anything else should
be considered an error.

And at it is really symmetric. If a program is expecting arab-indic
digits, then Iso-Latin-1 digits should probably be considered an
error.

Arne

Re: C limitations, was: Re: VMS process communication

<u263dg$qka$1@reader2.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27730&group=comp.os.vms#27730

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!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.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Mon, 24 Apr 2023 14:23:44 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <u263dg$qka$1@reader2.panix.com>
References: <631fb9a1$0$703$14726298@news.sunsite.dk> <kam0vhFq0fdU11@mid.individual.net> <u25ugf$75u$1@reader2.panix.com> <u260ak$brdi$1@dont-email.me>
Injection-Date: Mon, 24 Apr 2023 14:23:44 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="27274"; 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 - Mon, 24 Apr 2023 14:23 UTC

In article <u260ak$brdi$1@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 4/24/2023 8:59 AM, Dan Cross wrote:
>> In article <kam0vhFq0fdU11@mid.individual.net>,
>>> Mostly stuff from the comp.sources groups. Very little of it was
>>> portable. Even with a lot of massaging. But the charset values
>>> was the biggest killer because so many programs assumed 0-127 as
>>> ordinal value of the ASCII charset.
>>
>> I can believe that, but I'd imagine it was less the use of
>> individual code-points as a general assumption that the high-bit
>> was clear, and that thus one could use a char to index a table
>> with only 128 entries or something: things like that still trip
>> up programmers, even in our modern, almost always ASCII or
>> UTF-8, world (indeed, this used to be a source of frustration
>> for using the `is*` family, as they did table lookups: one had
>> to be careful to use `isascii` first before blinding applying
>> them).
>
>The is* functions take an int and are required to accept
>values that can be stuffed into an unsigned char (plus value
>of EOF macro). An is* function using a 128 entry table is broken
>on a system with an >7 bit execution char set.
>
>The isascii function is not in the C standard but only in the
>POSIX standard (The Open Group Base Specifications).

Note the context. We're discuss pre-standard C.

- Dan C.

Re: C limitations, was: Re: VMS process communication

<e5e87721-bdb0-4c6f-98d3-a2bbe93657e9n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27732&group=comp.os.vms#27732

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:5a84:0:b0:3e3:db7d:da45 with SMTP id c4-20020ac85a84000000b003e3db7dda45mr5148795qtc.2.1682348937334;
Mon, 24 Apr 2023 08:08:57 -0700 (PDT)
X-Received: by 2002:a05:6214:9b3:b0:5ef:181e:2e53 with SMTP id
du19-20020a05621409b300b005ef181e2e53mr2666334qvb.10.1682348937085; Mon, 24
Apr 2023 08:08:57 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 24 Apr 2023 08:08:56 -0700 (PDT)
In-Reply-To: <u263dg$qka$1@reader2.panix.com>
Injection-Info: google-groups.googlegroups.com; posting-host=76.76.60.100; posting-account=OjKUgAkAAAAXAqdVEKd-Gc8RltEUx3Xq
NNTP-Posting-Host: 76.76.60.100
References: <631fb9a1$0$703$14726298@news.sunsite.dk> <kam0vhFq0fdU11@mid.individual.net>
<u25ugf$75u$1@reader2.panix.com> <u260ak$brdi$1@dont-email.me> <u263dg$qka$1@reader2.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e5e87721-bdb0-4c6f-98d3-a2bbe93657e9n@googlegroups.com>
Subject: Re: C limitations, was: Re: VMS process communication
From: sms.anti...@gmail.com (Steven Schweda)
Injection-Date: Mon, 24 Apr 2023 15:08:57 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2156
 by: Steven Schweda - Mon, 24 Apr 2023 15:08 UTC

This thread left the rails so long ago that I don't feel very bad
about including the following slightly related story.

Back in the eighties, I worked on a (FORTRAN) program for digital
logic and fault simulation. Circuits were described in text, and only a
limited character set was allowed. Part of the input parsing involved
detecting invalid characters.

One day we ran some performance analysis (VAXset PCA?), and
discovered that much time was spent in an input-parsing function. A
glance at the code showed why. There was an array of all the legal
characters, and that array was searched sequentially for each character
in the input. (Is it an "A"? Is it a "B" Is it a "C" ...)

Replacing that atrocity with a (256-character) look-up table reduced
the time spent in that function to approximately zero, and, as I recall,
cut about 2% off of the total design-compilation time.

Re: C limitations, was: Re: VMS process communication

<u241fn$p6c$1@reader2.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27739&group=comp.os.vms#27739

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!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.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Sun, 23 Apr 2023 19:38:31 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <u241fn$p6c$1@reader2.panix.com>
References: <631fb9a1$0$703$14726298@news.sunsite.dk> <u23d4f$3qsd3$1@dont-email.me> <kakrjsFq6ffU8@mid.individual.net> <kakrvrFq0fdU9@mid.individual.net>
Injection-Date: Sun, 23 Apr 2023 19:38:31 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="25804"; 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 - Sun, 23 Apr 2023 19:38 UTC

In article <kakrvrFq0fdU9@mid.individual.net>,
bill <bill.gunshannon@gmail.com> wrote:
>On 4/23/2023 9:54 AM, Bob Eager wrote:
>> On Sun, 23 Apr 2023 09:51:11 -0400, Arne Vajhøj wrote:
>>
>>> On 4/23/2023 9:46 AM, bill wrote:
>>>> On 4/22/2023 7:47 PM, Arne Vajhøj wrote:
>>>>> True. In C the isdigit function would be much better than a range
>>>>> check.
>>>>
>>>> A cute idea, but also a modern accretion. Early C didn't have it and as
>>>> much as people like to say comparing a char to it's numeric value is
>>>> not a good idea it was quite common at one time.  I know,
>>>> because I was the one tasked with porting some of this code to Primix
>>>> where the chars all had a different numeric value.  I don't know why
>>>> they did it, but they did.
>>>
>>> Different people may have different definitions of "modern".
>>>
>>> isdigit is in C89 so it has been standard for over 30 years.
>>
>> It's in the original K&R book, so that's back as far as 1978. Hardly a
>> 'modern accretion'!
>
>It is not in Ultrix-11 :-). I assume that also means V7.

It is certainly in V7 and is referenced all over Ultrix-11,
though curiously, `ctype.h` seems to be missing from the archive
I have of that. However, it's in v7m.

>Don't remember it in System III.

It was definitely in System III.

> Don't know when it came
>about but I was already trying to port a lot of Univ C
>programs by 1982. A bit before C89.

That's very odd. Was that some kind of micro?

- Dan C.

Re: C limitations, was: Re: VMS process communication

<u26smk$1dh$1@panix2.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27740&group=comp.os.vms#27740

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix2.panix.com!panix2.panix.com!not-for-mail
From: klu...@panix.com (Scott Dorsey)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: 24 Apr 2023 21:35:16 -0000
Organization: Former users of Netcom shell (1989-2000)
Lines: 10
Message-ID: <u26smk$1dh$1@panix2.panix.com>
References: <631fb9a1$0$703$14726298@news.sunsite.dk> <u260ak$brdi$1@dont-email.me> <u263dg$qka$1@reader2.panix.com> <e5e87721-bdb0-4c6f-98d3-a2bbe93657e9n@googlegroups.com>
Injection-Info: reader2.panix.com; posting-host="panix2.panix.com:166.84.1.2";
logging-data="14426"; mail-complaints-to="abuse@panix.com"
 by: Scott Dorsey - Mon, 24 Apr 2023 21:35 UTC

Steven Schweda <sms.antinode@gmail.com> wrote:
> Replacing that atrocity with a (256-character) look-up table reduced
>the time spent in that function to approximately zero, and, as I recall,
>cut about 2% off of the total design-compilation time.

"A penny's worth of better algorithm is worth thousands of dollars worth
of faster hardware."
-- gus baird
--
"C'est un Nagra. C'est suisse, et tres, tres precis."

Re: C limitations, was: Re: VMS process communication

<u2c812$2c8$1@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27785&group=comp.os.vms#27785

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.80-218-16-84.dclient.hispeed.ch!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Thu, 27 Apr 2023 00:19:14 +0200
Organization: MGT Consulting
Message-ID: <u2c812$2c8$1@news.misty.com>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tvf4j6$lpst$1@dont-email.me> <k88rd6FmhttU1@mid.individual.net>
<tvnffo$shi$1@panix2.panix.com> <tvs23c$37d4e$1@dont-email.me>
<tvt4jf$b82$1@news.misty.com>
<4b19ca379d935295930f6fb5ea59f983d617f2bd.camel@munted.eu>
<tvulqg$3o71m$1@dont-email.me> <u01m8k$scd$4@news.misty.com>
<k8jc4aFmhtrU2@mid.individual.net> <u0d7ss$v7b$1@news.misty.com>
<k8vv8cFtencU2@mid.individual.net> <u0q05f$f44$1@news.misty.com>
<u16fvo$32arb$1@dont-email.me> <u16g44$32arb$2@dont-email.me>
<u17m5s$etu$1@news.misty.com> <u1hb3t$2kdmo$1@dont-email.me>
<u1r0rs$dei$1@news.misty.com> <u21rmt$3fikq$1@dont-email.me>
<u21sd5$3fpii$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Apr 2023 22:19:15 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="80-218-16-84.dclient.hispeed.ch:80.218.16.84";
logging-data="2440"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.10.0
Content-Language: en-US
In-Reply-To: <u21sd5$3fpii$1@dont-email.me>
 by: Johnny Billquist - Wed, 26 Apr 2023 22:19 UTC

On 2023-04-23 01:59, Arne Vajhøj wrote:
> On 4/22/2023 7:47 PM, Arne Vajhøj wrote:
>> True. In C the isdigit function would be much better than a range check.
>>
>> Some other languages have similar functions, but not necessarily
>> doing what the programmer want.
>>
>> Java has a Character.isDigit method that return true for 350 chars.
>> But I am pretty sure that most Java developers are interested in
>> knowing if the char is in 0..9 not whether it is among those 350 chars.
>
> Of course C also got iswdigit - which on my system return true
> for 263 input values.
>
> But I don't think w is that popular in C.

wide chars are such a mess. I won't even try to discuss them. :-)
But I assume that the one i Java in the end is assuming you are dealing
with Unicode, and I would suspect that for the C version as well. And
Unicode is a mess.

Johnny

Re: C limitations, was: Re: VMS process communication

<u2evia$242bg$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=27818&group=comp.os.vms#27818

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: C limitations, was: Re: VMS process communication
Date: Thu, 27 Apr 2023 20:13:13 -0400
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <u2evia$242bg$1@dont-email.me>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tvf4j6$lpst$1@dont-email.me> <k88rd6FmhttU1@mid.individual.net>
<tvnffo$shi$1@panix2.panix.com> <tvs23c$37d4e$1@dont-email.me>
<tvt4jf$b82$1@news.misty.com>
<4b19ca379d935295930f6fb5ea59f983d617f2bd.camel@munted.eu>
<tvulqg$3o71m$1@dont-email.me> <u01m8k$scd$4@news.misty.com>
<k8jc4aFmhtrU2@mid.individual.net> <u0d7ss$v7b$1@news.misty.com>
<k8vv8cFtencU2@mid.individual.net> <u0q05f$f44$1@news.misty.com>
<u16fvo$32arb$1@dont-email.me> <u16g44$32arb$2@dont-email.me>
<u17m5s$etu$1@news.misty.com> <u1hb3t$2kdmo$1@dont-email.me>
<u1r0rs$dei$1@news.misty.com> <u21rmt$3fikq$1@dont-email.me>
<u21sd5$3fpii$1@dont-email.me> <u2c812$2c8$1@news.misty.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 27 Apr 2023 23:13:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b6996667cb425253f375fd4bf9362a67";
logging-data="2230640"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19oE5WGDM5ZaPAES7X53h4k4Ua/h5vVvj4="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:ZznrcrbllKo8ThV48CO0cBbc0xo=
In-Reply-To: <u2c812$2c8$1@news.misty.com>
Content-Language: en-US
 by: Arne Vajhøj - Fri, 28 Apr 2023 00:13 UTC

On 4/26/2023 6:19 PM, Johnny Billquist wrote:
> On 2023-04-23 01:59, Arne Vajhøj wrote:
>> On 4/22/2023 7:47 PM, Arne Vajhøj wrote:
>>> True. In C the isdigit function would be much better than a range check.
>>>
>>> Some other languages have similar functions, but not necessarily
>>> doing what the programmer want.
>>>
>>> Java has a Character.isDigit method that return true for 350 chars.
>>> But I am pretty sure that most Java developers are interested in
>>> knowing if the char is in 0..9 not whether it is among those 350 chars.
>>
>> Of course C also got iswdigit - which on my system return true
>> for 263 input values.
>>
>> But I don't think w is that popular in C.
>
> wide chars are such a mess. I won't even try to discuss them. :-)
> But I assume that the one i Java in the end is assuming you are dealing
> with Unicode, and I would suspect that for the C version as well. And
> Unicode is a mess.

Java got two isdigit - one that accept a char which contains
an UTF-16 code unit and one that accept an int which
contains an Unicode code point.

In general I am OK with Unicode - all those "thingies"
exist - it does not make any sense to pretend that
they do not exist, so they need to be handled.

Using UTF-16 in memory for char and string, UTF-8
on disk and on wire plus NCHAR/NVARCHAR/NCLOB in database
usually works fine for me.

(UTF-16 in memory does not work to well for anything outside
BMP, but in practice most stuff are in BMP)

But Unicode API's sometimes have a few things that bothers
me - one of them is isxxxxx methods that assume I want
to check for all languages.

Arne

Re: VMS process communication

<ur062i$20k0f$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=33182&group=comp.os.vms#33182

  copy link   Newsgroups: comp.os.vms
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: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS process communication
Date: Mon, 19 Feb 2024 13:18:57 -0500
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <ur062i$20k0f$1@dont-email.me>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tjmvjp$159q$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 19 Feb 2024 18:18:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f7d55b04e98229c7ba78a72efec5c77b";
logging-data="2117647"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+B0drWB3LD9QBvtkMYILc+jvlb137pal4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:RUup3kv12sxP0+/ttzRhUgouAbI=
Content-Language: en-US
In-Reply-To: <tjmvjp$159q$1@gioia.aioe.org>
 by: Arne Vajhøj - Mon, 19 Feb 2024 18:18 UTC

On 10/30/2022 6:59 PM, Arne Vajhøj wrote:
> On 9/12/2022 6:58 PM, Arne Vajhøj wrote:
>> I did a little writeup:
>>
>> https://www.vajhoej.dk/arne/articles/vmsipc.html
>
>>      TCP/IP Socket
>>          Concept
>>          Demo
>>          Java API (Java)
>>          C API (C)
>>          Python API (Python, Jython)
>>          Wrapper C API (Fortran, Pascal, Cobol, Basic)
>
> Just added:
>
> HTTP
>     Concept
>     Demo
>     Embedded server (Java, Python)
>     Java API (Java)
>     urllib3 (Python)
>     Curl (C, PHP)
>     Direct socket (C)
>     Wrapper direct socket (Fortran, Pascal, Cobol, Basic)

It now also has:

SOAP Web Service

Concept
Demo
JAX-WS embedded server (Java)
JAX-WS (Java, Groovy, Jython)
Zeep (Python)
SoapClient (PHP)
Spyne embedded server (Python)

XML-RPC Web Service

Concept
Demo
Embedded server (Java, Python)
Apache XML-RPC (Java, Groovy)
xmlrpc module (Python)
xmlrpc encoder and decode (PHP)
XMLRPC and PXMLRPC (C, Pascal)
direct XML + HTTP wrapper (Fortran, Basic)

RESTful Web Service

Concept
Demo
Embedded server (Java)
HttpURLConnection + GSon (Java, Groovy)
request + json (Python)
curl + json_encode/json_decode (PHP)
socket + cJSON (C, Pascal)

Arne

Pages:123456789
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor