Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Mathematicians practice absolute freedom. -- Henry Adams


computers / comp.os.vms / Re: 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: VMS process communication

<3f0c602f-2688-4945-a4f1-27aadad5aca5n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:a12:b0:746:7228:9533 with SMTP id i18-20020a05620a0a1200b0074672289533mr435438qka.4.1679190594077;
Sat, 18 Mar 2023 18:49:54 -0700 (PDT)
X-Received: by 2002:ad4:59c7:0:b0:56f:3e5:850e with SMTP id
el7-20020ad459c7000000b0056f03e5850emr6221036qvb.3.1679190593859; Sat, 18 Mar
2023 18:49:53 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!85.12.63.47.MISMATCH!peer01.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: Sat, 18 Mar 2023 18:49:53 -0700 (PDT)
In-Reply-To: <b333fcb57bd07d0a251381d8f4fcf9d0684c0bf9.camel@munted.eu>
Injection-Info: google-groups.googlegroups.com; posting-host=76.76.60.100; posting-account=OjKUgAkAAAAXAqdVEKd-Gc8RltEUx3Xq
NNTP-Posting-Host: 76.76.60.100
References: <tug5rg$245tn$1@dont-email.me> <tugdbo$25f5e$1@dont-email.me>
<tugga9$25q5s$3@dont-email.me> <tun8lr$3pcth$2@dont-email.me>
<tun98s$3pcuj$3@dont-email.me> <tunab8$3pj4p$3@dont-email.me>
<tunbe4$3ptro$1@dont-email.me> <tunstv$3t5jp$1@dont-email.me>
<tuprl8$beme$1@dont-email.me> <tuqbdf$ed62$1@dont-email.me>
<tuqd0p$e1tt$1@dont-email.me> <k7bu4eFrikcU5@mid.individual.net>
<tuqg7u$en70$2@dont-email.me> <bf214680-513c-442c-8a07-8cb18957f0f4n@googlegroups.com>
<tuqt67$hnn2$1@dont-email.me> <tura28$jsog$1@dont-email.me>
<tutbhh$11ddk$5@dont-email.me> <tv1ver$9ls$1@news.misty.com>
<tv2h8p$240rh$1@dont-email.me> <1cf2dc43c47d0410a7921f6862e3793511545df9.camel@munted.eu>
<tv4j5n$2hdh2$1@dont-email.me> <b333fcb57bd07d0a251381d8f4fcf9d0684c0bf9.camel@munted.eu>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3f0c602f-2688-4945-a4f1-27aadad5aca5n@googlegroups.com>
Subject: Re: VMS process communication
From: sms.anti...@gmail.com (Steven Schweda)
Injection-Date: Sun, 19 Mar 2023 01:49:54 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3180
 by: Steven Schweda - Sun, 19 Mar 2023 01:49 UTC

> I tire of hearing about people calculating Pi to billions of digits.
> What good does that do?

Recreation? Challenge? Benchmark? (And I thought that _I_ was a
whiner.)

My quick search on this new Inter-Web thing for "pi many digits"
found (among many other things):

https://cloud.google.com/blog/products/compute/calculating-100-trillion-digits-of-pi-on-google-cloud

(No surprise, perhaps, that that was first in the Google search
results.)

I seem to have found a pi-calculating program in 1999, and run it on
a few of my systems then. Comparing the output for a million digits
(give or take) on a VAXstation 2000 (VMS V5.5-2) and a more recent run
on a Mac Pro (Late 2013)/VMware (VMS E9.2):

v87 $ diff 1048576_DIGITS_OF_PI_B_WEAK 1048576_DIGITS_OF_PI_B_V87
************
File V87$DKA0:[SMS.PI]1048576_DIGITS_OF_PI_B_WEAK.;1
24123 Total Execution time: 113515.44 Seconds
24124
******
File V87$DKA0:[SMS.PI]1048576_DIGITS_OF_PI_B_V87.;1
24123 Total Execution time: 11.38 Seconds
24124
************

Of course, the x86_64 results might suffer from the sub-optimal cross
(C) compiler.

> Looks correct but NASA doesn't use more than [...]

Same search, further down:

https://www.jpl.nasa.gov/edu/news/2016/3/16/how-many-decimals-of-pi-do-we-really-need/

Re: VMS process communication

<tv6u19$te$1@panix2.panix.com>

  copy mid

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

  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: VMS process communication
Date: 19 Mar 2023 12:09:13 -0000
Organization: Former users of Netcom shell (1989-2000)
Lines: 16
Message-ID: <tv6u19$te$1@panix2.panix.com>
References: <tug5rg$245tn$1@dont-email.me> <tuqt67$hnn2$1@dont-email.me> <tura28$jsog$1@dont-e <3f0c602f-2688-4945-a4f1-27aadad5aca5n@googlegroups.com>
Injection-Info: reader2.panix.com; posting-host="panix2.panix.com:166.84.1.2";
logging-data="973"; mail-complaints-to="abuse@panix.com"
 by: Scott Dorsey - Sun, 19 Mar 2023 12:09 UTC

In article <3f0c602f-2688-4945-a4f1-27aadad5aca5n@googlegroups.com>,
Steven Schweda <sms.antinode@gmail.com> wrote:
>> I tire of hearing about people calculating Pi to billions of digits.
>> What good does that do?
>
> Recreation? Challenge? Benchmark? (And I thought that _I_ was a
>whiner.)

Some people are waiting to find out if it repeats.

Some people want random values.

But it's a great integer benchmark.
--scott
--
"C'est un Nagra. C'est suisse, et tres, tres precis."

Re: VMS process communication

<74db6be2-0e58-4a6c-87c8-c61e0ca8a9a1n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:622a:1a24:b0:3df:1977:cf4a with SMTP id f36-20020a05622a1a2400b003df1977cf4amr813883qtb.11.1679230369400;
Sun, 19 Mar 2023 05:52:49 -0700 (PDT)
X-Received: by 2002:ae9:f00a:0:b0:742:6e03:4091 with SMTP id
l10-20020ae9f00a000000b007426e034091mr7090918qkg.6.1679230368887; Sun, 19 Mar
2023 05:52:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!85.12.63.48.MISMATCH!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: Sun, 19 Mar 2023 05:52:48 -0700 (PDT)
In-Reply-To: <tv6u19$te$1@panix2.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: <tug5rg$245tn$1@dont-email.me> <tuqt67$hnn2$1@dont-email.me>
<3f0c602f-2688-4945-a4f1-27aadad5aca5n@googlegroups.com> <tv6u19$te$1@panix2.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <74db6be2-0e58-4a6c-87c8-c61e0ca8a9a1n@googlegroups.com>
Subject: Re: VMS process communication
From: sms.anti...@gmail.com (Steven Schweda)
Injection-Date: Sun, 19 Mar 2023 12:52:49 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1378
 by: Steven Schweda - Sun, 19 Mar 2023 12:52 UTC

> Some people are waiting to find out if it repeats.

Given the centuries-old proof that it's irrational, that could be a
very long wait. (You don't even need transcendental for that.)

Re: VMS process communication

<6fb71682996e8caa31aaeb5e19d9f3d264023693.camel@munted.eu>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!palladium.buellnet!not-for-mail
From: alex.bu...@munted.eu (Single Stage to Orbit)
Newsgroups: comp.os.vms
Subject: Re: VMS process communication
Date: Sun, 19 Mar 2023 14:09:49 +0000
Organization: One very high maintenance cat
Message-ID: <6fb71682996e8caa31aaeb5e19d9f3d264023693.camel@munted.eu>
References: <tug5rg$245tn$1@dont-email.me> <tuqt67$hnn2$1@dont-email.me>
<tura28$jsog$1@dont-e <3f0c602f-2688-4945-a4f1-27aadad5aca5n@googlegroups.com>
<tv6u19$te$1@panix2.panix.com>
Reply-To: alex.buell@munted.eu
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: solani.org;
logging-data="2333802"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Evolution 3.46.3
Cancel-Lock: sha1:hOu/k81+raCcfVvY6pttbAYotOk=
In-Reply-To: <tv6u19$te$1@panix2.panix.com>
X-User-ID: eJwNyMEBwEAEBMCWOHZJOeHov4RkngOjssMJOhY7foopevu4sv7ZXAwRnDMieSo0yNwHdvuOzVuo3ehqW/kAVAsWMA==
 by: Single Stage to Orbi - Sun, 19 Mar 2023 14:09 UTC

On Sun, 2023-03-19 at 12:09 +0000, Scott Dorsey wrote:
> Some people are waiting to find out if it repeats.

It never will. THat's the beauty about this number!
--
Tactical Nuclear Kittens

Re: VMS process communication

<tv790f$np5$1@news.misty.com>

  copy mid

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

  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: VMS process communication
Date: Sun, 19 Mar 2023 16:16:31 +0100
Organization: MGT Consulting
Message-ID: <tv790f$np5$1@news.misty.com>
References: <tug5rg$245tn$1@dont-email.me> <tugdbo$25f5e$1@dont-email.me>
<tugga9$25q5s$3@dont-email.me> <tun8lr$3pcth$2@dont-email.me>
<tun98s$3pcuj$3@dont-email.me> <tunab8$3pj4p$3@dont-email.me>
<tunbe4$3ptro$1@dont-email.me> <tunstv$3t5jp$1@dont-email.me>
<tuprl8$beme$1@dont-email.me> <tuqbdf$ed62$1@dont-email.me>
<tuqd0p$e1tt$1@dont-email.me> <k7bu4eFrikcU5@mid.individual.net>
<tuqg7u$en70$2@dont-email.me>
<bf214680-513c-442c-8a07-8cb18957f0f4n@googlegroups.com>
<tuqt67$hnn2$1@dont-email.me> <tura28$jsog$1@dont-email.me>
<tutbhh$11ddk$5@dont-email.me> <tv1ver$9ls$1@news.misty.com>
<8337fcf5-a201-41c4-b676-a97b695e9ac8n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 19 Mar 2023 15:16:32 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="80-218-16-84.dclient.hispeed.ch:80.218.16.84";
logging-data="24357"; 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.8.0
Content-Language: en-US
In-Reply-To: <8337fcf5-a201-41c4-b676-a97b695e9ac8n@googlegroups.com>
 by: Johnny Billquist - Sun, 19 Mar 2023 15:16 UTC

On 2023-03-17 17:01, Steven Schweda wrote:
>> Am I confused? [...]
>
> Perhaps.
>
>> [...] I was under the impression that pi comes from the
>> division of the diameter with the circumference of a circle.
>> No logarithmic or trigonometric anywhere near that...
>
> arccos( -1) = ?
>
> Trying to disconnect trig functions from circles and pi seems (to me)
> perverse and unproductive. Or does your Web search for:
> trigonometry "unit circle"
> find nothing?

Just because something gives pi does not mean it is the definition of pi.
I thought this was about the definition.

Johnny

Re: VMS process communication

<tv7961$np5$2@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.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: VMS process communication
Date: Sun, 19 Mar 2023 16:19:29 +0100
Organization: MGT Consulting
Message-ID: <tv7961$np5$2@news.misty.com>
References: <tug5rg$245tn$1@dont-email.me> <tuqt67$hnn2$1@dont-email.me>
<tura28$jsog$1@dont-e <tv1ver$9ls$1@news.misty.com>
<tv24qa$qvv$1@panix2.panix.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 19 Mar 2023 15:19:29 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="80-218-16-84.dclient.hispeed.ch:80.218.16.84";
logging-data="24357"; 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.8.0
Content-Language: en-US
In-Reply-To: <tv24qa$qvv$1@panix2.panix.com>
 by: Johnny Billquist - Sun, 19 Mar 2023 15:19 UTC

On 2023-03-17 17:34, Scott Dorsey wrote:
> In article <tv1ver$9ls$1@news.misty.com>,
> Johnny Billquist <bqt@softjar.se> wrote:
>> On 2023-03-15 21:58, Arne Vajhøj wrote:
>>> Transcendental numbers are the real numbers that are
>>> not algebraic. All the "weird" numbers like e, pi,
>>> results from logarithmic or trigonometric functions (except
>>> for a a few selected inputs).
>>
>> Am I confused? I was under the impression that pi comes from the
>> division of the diameter with the circumference of a circle.
>
> It does but it ALSO is the sum of 4 - 4/3 + 4/5 - 4/7 + 4/9 - ....
>
> Or it's tan-1 of 0.
>
> It's everywhere you look. It's pretty creepy.

Right. Of course there are many ways of doing computations that will
give pi.

But I don't think it's that helpful to just show some method of how pi
can be computed. I think talking about the definition is what is more
interesting.

Otherwise we're talking about infinite series of sums. Which is just
approximations in reality, since you will never compute the final value
of an infinite series...

Johnny

Re: VMS process communication

<tv7gfj$sab$1@reader2.panix.com>

  copy mid

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

  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: VMS process communication
Date: Sun, 19 Mar 2023 17:24:03 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <tv7gfj$sab$1@reader2.panix.com>
References: <tug5rg$245tn$1@dont-email.me> <tv1ver$9ls$1@news.misty.com> <8337fcf5-a201-41c4-b676-a97b695e9ac8n@googlegroups.com> <tv790f$np5$1@news.misty.com>
Injection-Date: Sun, 19 Mar 2023 17:24:03 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="29003"; 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, 19 Mar 2023 17:24 UTC

In article <tv790f$np5$1@news.misty.com>,
Johnny Billquist <bqt@softjar.se> wrote:
>On 2023-03-17 17:01, Steven Schweda wrote:
>>> Am I confused? [...]
>>
>> Perhaps.
>>
>>> [...] I was under the impression that pi comes from the
>>> division of the diameter with the circumference of a circle.
>>> No logarithmic or trigonometric anywhere near that...
>>
>> arccos( -1) = ?
>>
>> Trying to disconnect trig functions from circles and pi seems (to me)
>> perverse and unproductive. Or does your Web search for:
>> trigonometry "unit circle"
>> find nothing?
>
>Just because something gives pi does not mean it is the definition of pi.
>I thought this was about the definition.

You were correct. The usual definiton of Pi is the ratio
of a circle's circumference to its diameter. Pi and e are
transcendental over the reals.

- Dan C.

Re: VMS process communication

<330ad98a-f752-49f4-b1c0-5cd674487fa5n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:5609:0:b0:3bf:d025:1ac1 with SMTP id 9-20020ac85609000000b003bfd0251ac1mr3405150qtr.11.1679252697718;
Sun, 19 Mar 2023 12:04:57 -0700 (PDT)
X-Received: by 2002:ad4:5184:0:b0:56e:9c3f:a49e with SMTP id
b4-20020ad45184000000b0056e9c3fa49emr2416615qvp.5.1679252697516; Sun, 19 Mar
2023 12:04:57 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Sun, 19 Mar 2023 12:04:56 -0700 (PDT)
In-Reply-To: <tv7961$np5$2@news.misty.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: <tug5rg$245tn$1@dont-email.me> <tuqt67$hnn2$1@dont-email.me>
<tv1ver$9ls$1@news.misty.com> <tv24qa$qvv$1@panix2.panix.com> <tv7961$np5$2@news.misty.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <330ad98a-f752-49f4-b1c0-5cd674487fa5n@googlegroups.com>
Subject: Re: VMS process communication
From: sms.anti...@gmail.com (Steven Schweda)
Injection-Date: Sun, 19 Mar 2023 19:04:57 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 19
 by: Steven Schweda - Sun, 19 Mar 2023 19:04 UTC

> Otherwise we're talking about infinite series of sums. [...]

The usual definitions are:

Sequence: a set of numbers.

Series: the sum of the terms in a sequence.

> [...] you will never compute the final value of an infinite series...

Watch me. S = 1/2 + 1/4 + 1/8 + 1/16 + ... = 1

2 * S = 1 + S. Work it out.

> Advice on math and science found on comp.os.vms is generally
> unreliable, I claim.

Still my claim.

Re: VMS process communication

<tv83fi$6k5$1@reader2.panix.com>

  copy mid

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

  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: VMS process communication
Date: Sun, 19 Mar 2023 22:48:18 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <tv83fi$6k5$1@reader2.panix.com>
References: <tug5rg$245tn$1@dont-email.me> <tv24qa$qvv$1@panix2.panix.com> <tv7961$np5$2@news.misty.com> <330ad98a-f752-49f4-b1c0-5cd674487fa5n@googlegroups.com>
Injection-Date: Sun, 19 Mar 2023 22:48:18 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="6789"; 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, 19 Mar 2023 22:48 UTC

In article <330ad98a-f752-49f4-b1c0-5cd674487fa5n@googlegroups.com>,
Steven Schweda <sms.antinode@gmail.com> wrote:
>> Otherwise we're talking about infinite series of sums. [...]
>
> The usual definitions are:
>
> Sequence: a set of numbers.

Errm, hmm. This is insufficient. Order matters in a sequence,
and the elements of a sequence are enumerable. Plus, elements
can be repeated. One can define an isomorphism between a
sequence and, say, a subset of the naturals that would represent
each element as a tuple, with f: S -> N x S where F(s) = (s, k)
for k the index of s in the sequence, and with f': N x S -> S
being projection.

> Series: the sum of the terms in a sequence.
>
>
>> [...] you will never compute the final value of an infinite series...
>
> Watch me. S = 1/2 + 1/4 + 1/8 + 1/16 + ... = 1
>
> 2 * S = 1 + S. Work it out.

The basic idea here is correct; summing an infinite sequence has
some value if the series is convergent. The value of that
geometric series really is exactly 1, in the same way that
0.11111111... really is exactly 1/9.

Regardless, Johnny's original definiton of Pi was correct.

- Dan C.

Re: VMS process communication

<24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:379b:b0:742:919f:e93 with SMTP id pi27-20020a05620a379b00b00742919f0e93mr8718211qkn.0.1679305069910;
Mon, 20 Mar 2023 02:37:49 -0700 (PDT)
X-Received: by 2002:ae9:ed8a:0:b0:746:847d:41af with SMTP id
c132-20020ae9ed8a000000b00746847d41afmr685190qkg.15.1679305069634; Mon, 20
Mar 2023 02:37:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!diablo1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!peer01.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, 20 Mar 2023 02:37:49 -0700 (PDT)
In-Reply-To: <tv30fr$26gek$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=217.91.122.53; posting-account=rjF0WAoAAAC39hl8XmA2ge39LAbz78Ru
NNTP-Posting-Host: 217.91.122.53
References: <631fb9a1$0$703$14726298@news.sunsite.dk> <tjmvjp$159q$1@gioia.aioe.org>
<tjohvn$ghkg$2@dont-email.me> <tjprdq$srd$1@gioia.aioe.org>
<tug5rg$245tn$1@dont-email.me> <tutov0$14aca$1@dont-email.me>
<51a1a48f-9e1a-4cd6-8367-434c8e23e34cn@googlegroups.com> <tv30fr$26gek$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com>
Subject: Re: VMS process communication
From: gru...@isidata.de (Andreas Gruhl)
Injection-Date: Mon, 20 Mar 2023 09:37:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4048
 by: Andreas Gruhl - Mon, 20 Mar 2023 09:37 UTC

Arne Vajhøj schrieb am Samstag, 18. März 2023 um 01:26:39 UTC+1:
> On 3/16/2023 5:05 AM, Andreas Gruhl wrote:
> > Arne Vajhøj schrieb am Donnerstag, 16. März 2023 um 01:47:31 UTC+1:
> >> On 3/10/2023 4:01 PM, Arne Vajhøj wrote:
> >>> Pre-release for comments:
> >>>
> >>> https://www.vajhoej.dk/arne/articles/vms64.html
> >>
> >> Updated to version 1.0 based on comments.
> > Small correction: PASCAL/USAGE=64BIT_TO_DESCR does NOT change the
> > compiler's treatment of pointers. Interpreting pointers as unsigned
> > values has to be provided by the programmer. The qualifier only
> > allows for P2 structures to be used as actual routine parameters via
> > descriptor, which otherwise would be flagged as a compile time
> > error.
> So it does not change the treatment of pointers.
>
> It disables a compiler check.
>
> Like allowing this to compile:
>
> procedure whatever(...; %STDESCR somearg; ...); external;
> ...
> (* z is in lower 2 GB of P2 space *)
> ...
> whatever(..., z, ...);
>
> ?
>
> Arne
That's correct.
'whatever' then has to take care of interpreting somearg as a descriptor and treating the pointer contained inside as unsigned.
We usually enable direct access to descriptors by using two different routine declarations, e.g.
[external(whatever_i)] procedure whatever(...; %STDESCR somearg; ...); external; (* official declaration *)
[global] procedure whatever_i(...; var somearg : dsc$type; ...); external; (* internal implementation, dsc$type from starlet *)
type ptr_string = [quad]^packed array[1..1000] of char;
var uns : unsigned64 ;
ptr : ptr_string; (* a 64 bit pointer *)
begin
uns:=somearg.dsc$a_pointer::unsigned; (* convert to 64 bits avoiding sign extension *)
ptr:=uns::ptr_string; (* convert to 64 bit pointer type *)
(* ptr can now be used to access the z argument without any further restrictions. *)
....
end;
This works for all z addresses between 0 and %XFFFFFFFF, which includes P0, P1 and the first 2 GB of P2
(if you encounter even larger addresses, only the lower 32 address bits will be correct - but sometimes this can help, too).
We use this heavily to extend the lifetime of our 32-bit routines into the 64 bit era without having to apply
changes to the calling programs.
And again: none of these programs misses the default behaviour of addresses above %7FFFFFFF to access system space.
This feature is almost useless for application programs. Whereas doubling the available address space into P2 is VERY useful.
Andreas

Re: VMS process communication

<tvc4n8$394j$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS process communication
Date: Tue, 21 Mar 2023 07:33:58 -0400
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <tvc4n8$394j$1@dont-email.me>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tjmvjp$159q$1@gioia.aioe.org> <tjohvn$ghkg$2@dont-email.me>
<tjprdq$srd$1@gioia.aioe.org> <tug5rg$245tn$1@dont-email.me>
<tutov0$14aca$1@dont-email.me>
<51a1a48f-9e1a-4cd6-8367-434c8e23e34cn@googlegroups.com>
<tv30fr$26gek$1@dont-email.me>
<24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 21 Mar 2023 11:34:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4e4a1f7a6f0ad9bbea01d83adf7b000e";
logging-data="107667"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/rix6Q9dg/wKtwNZQBCx/wEQtPHg+HlDM="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:p39IkmhBNeb0KukZl+Qs92nlUKM=
In-Reply-To: <24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com>
Content-Language: en-US
 by: Arne Vajhøj - Tue, 21 Mar 2023 11:33 UTC

On 3/20/2023 5:37 AM, Andreas Gruhl wrote:
> Arne Vajhøj schrieb am Samstag, 18. März 2023 um 01:26:39 UTC+1:
>> On 3/16/2023 5:05 AM, Andreas Gruhl wrote:
>>> Arne Vajhøj schrieb am Donnerstag, 16. März 2023 um 01:47:31 UTC+1:
>>>> On 3/10/2023 4:01 PM, Arne Vajhøj wrote:
>>>>> Pre-release for comments:
>>>>>
>>>>> https://www.vajhoej.dk/arne/articles/vms64.html
>>>>
>>>> Updated to version 1.0 based on comments.
>>> Small correction: PASCAL/USAGE=64BIT_TO_DESCR does NOT change the
>>> compiler's treatment of pointers. Interpreting pointers as unsigned
>>> values has to be provided by the programmer. The qualifier only
>>> allows for P2 structures to be used as actual routine parameters via
>>> descriptor, which otherwise would be flagged as a compile time
>>> error.
>> So it does not change the treatment of pointers.
>>
>> It disables a compiler check.
>>
>> Like allowing this to compile:
>>
>> procedure whatever(...; %STDESCR somearg; ...); external;
>> ...
>> (* z is in lower 2 GB of P2 space *)
>> ...
>> whatever(..., z, ...);
>>
>> ?

> That's correct.

I have updated.

Arne

Re: VMS process communication

<ebca2b91-74e6-44a1-ae33-d63c58f9a072n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:17cf:b0:56e:b401:ee3f with SMTP id cu15-20020a05621417cf00b0056eb401ee3fmr696737qvb.7.1679483888471;
Wed, 22 Mar 2023 04:18:08 -0700 (PDT)
X-Received: by 2002:ac8:58cd:0:b0:3e1:e1ae:9d5c with SMTP id
u13-20020ac858cd000000b003e1e1ae9d5cmr1306925qta.11.1679483888208; Wed, 22
Mar 2023 04:18:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!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: Wed, 22 Mar 2023 04:18:07 -0700 (PDT)
In-Reply-To: <tvc4n8$394j$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=92.1.223.134; posting-account=xnH4mQkAAADgGjKHSw0dMDzsXknFp5II
NNTP-Posting-Host: 92.1.223.134
References: <631fb9a1$0$703$14726298@news.sunsite.dk> <tjmvjp$159q$1@gioia.aioe.org>
<tjohvn$ghkg$2@dont-email.me> <tjprdq$srd$1@gioia.aioe.org>
<tug5rg$245tn$1@dont-email.me> <tutov0$14aca$1@dont-email.me>
<51a1a48f-9e1a-4cd6-8367-434c8e23e34cn@googlegroups.com> <tv30fr$26gek$1@dont-email.me>
<24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com> <tvc4n8$394j$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ebca2b91-74e6-44a1-ae33-d63c58f9a072n@googlegroups.com>
Subject: Re: VMS process communication
From: gxy...@uk2.net (Ian Miller)
Injection-Date: Wed, 22 Mar 2023 11:18:08 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3259
 by: Ian Miller - Wed, 22 Mar 2023 11:18 UTC

On Tuesday, March 21, 2023 at 11:34:04 AM UTC, Arne Vajhøj wrote:
> On 3/20/2023 5:37 AM, Andreas Gruhl wrote:
> > Arne Vajhøj schrieb am Samstag, 18. März 2023 um 01:26:39 UTC+1:
> >> On 3/16/2023 5:05 AM, Andreas Gruhl wrote:
> >>> Arne Vajhøj schrieb am Donnerstag, 16. März 2023 um 01:47:31 UTC+1:
> >>>> On 3/10/2023 4:01 PM, Arne Vajhøj wrote:
> >>>>> Pre-release for comments:
> >>>>>
> >>>>> https://www.vajhoej.dk/arne/articles/vms64.html
> >>>>
> >>>> Updated to version 1.0 based on comments.
> >>> Small correction: PASCAL/USAGE=64BIT_TO_DESCR does NOT change the
> >>> compiler's treatment of pointers. Interpreting pointers as unsigned
> >>> values has to be provided by the programmer. The qualifier only
> >>> allows for P2 structures to be used as actual routine parameters via
> >>> descriptor, which otherwise would be flagged as a compile time
> >>> error.
> >> So it does not change the treatment of pointers.
> >>
> >> It disables a compiler check.
> >>
> >> Like allowing this to compile:
> >>
> >> procedure whatever(...; %STDESCR somearg; ...); external;
> >> ...
> >> (* z is in lower 2 GB of P2 space *)
> >> ...
> >> whatever(..., z, ...);
> >>
> >> ?
> > That's correct.
>
> I have updated.
>
> Arne
On VMS E9.2-1 x86-64 all code by default is put into P2 by the linker but you can put /SEGMENT=CODE=P0 to stop that. I suspect this is going to cause some issues when porting. For kernel mode code the recommendation is to change from locking specific parts of the code into the working set to locking the whole image as this works on I64 and x86 VMS by calling LIB$LOCK_IMAGE.

Re: VMS process communication

<tvf4j6$lpst$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS process communication
Date: Wed, 22 Mar 2023 10:50:11 -0400
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <tvf4j6$lpst$1@dont-email.me>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tjmvjp$159q$1@gioia.aioe.org> <tjohvn$ghkg$2@dont-email.me>
<tjprdq$srd$1@gioia.aioe.org> <tug5rg$245tn$1@dont-email.me>
<tutov0$14aca$1@dont-email.me>
<51a1a48f-9e1a-4cd6-8367-434c8e23e34cn@googlegroups.com>
<tv30fr$26gek$1@dont-email.me>
<24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com>
<tvc4n8$394j$1@dont-email.me>
<ebca2b91-74e6-44a1-ae33-d63c58f9a072n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 22 Mar 2023 14:50:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="742f273c330ef557c2dac627d0968b1c";
logging-data="714653"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VSergCAKitqexUpW1pU/nRjFhZDSM8l8="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:AXscLu5tYT+qS5LSRb3TaWCMcxk=
Content-Language: en-US
In-Reply-To: <ebca2b91-74e6-44a1-ae33-d63c58f9a072n@googlegroups.com>
 by: Arne Vajhøj - Wed, 22 Mar 2023 14:50 UTC

On 3/22/2023 7:18 AM, Ian Miller wrote:
> On Tuesday, March 21, 2023 at 11:34:04 AM UTC, Arne Vajhøj wrote:
>> On 3/20/2023 5:37 AM, Andreas Gruhl wrote:
>>> Arne Vajhøj schrieb am Samstag, 18. März 2023 um 01:26:39 UTC+1:
>>>> On 3/16/2023 5:05 AM, Andreas Gruhl wrote:
>>>>> Arne Vajhøj schrieb am Donnerstag, 16. März 2023 um 01:47:31
>>>>> UTC+1:
>>>>>> On 3/10/2023 4:01 PM, Arne Vajhøj wrote:
>>>>>>> https://www.vajhoej.dk/arne/articles/vms64.html
>>>>>>
>>>>>> Updated to version 1.0 based on comments.
>>>>> Small correction: PASCAL/USAGE=64BIT_TO_DESCR does NOT change
>>>>> the compiler's treatment of pointers. Interpreting pointers
>>>>> as unsigned values has to be provided by the programmer. The
>>>>> qualifier only allows for P2 structures to be used as actual
>>>>> routine parameters via descriptor, which otherwise would be
>>>>> flagged as a compile time error.
>>>> So it does not change the treatment of pointers.
>>>>
>>>> It disables a compiler check.

>>> That's correct.
>>
>> I have updated.

> On VMS E9.2-1 x86-64 all code by default is put into P2 by the linker
> but you can put /SEGMENT=CODE=P0 to stop that. I suspect this is
> going to cause some issues when porting. For kernel mode code the
> recommendation is to change from locking specific parts of the code
> into the working set to locking the whole image as this works on I64
> and x86 VMS by calling LIB$LOCK_IMAGE.

So is a function pointer always 64 bit?

Arne

Re: VMS process communication

<8ffc9e0b-71a5-4f8c-af64-76d3a7742c75n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:2f6:b0:743:5877:8aae with SMTP id a22-20020a05620a02f600b0074358778aaemr920298qko.4.1679505198513;
Wed, 22 Mar 2023 10:13:18 -0700 (PDT)
X-Received: by 2002:a05:622a:418a:b0:3de:75fe:c185 with SMTP id
cd10-20020a05622a418a00b003de75fec185mr1002586qtb.1.1679505198272; Wed, 22
Mar 2023 10:13:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.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: Wed, 22 Mar 2023 10:13:18 -0700 (PDT)
In-Reply-To: <tvf4j6$lpst$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=92.1.223.134; posting-account=xnH4mQkAAADgGjKHSw0dMDzsXknFp5II
NNTP-Posting-Host: 92.1.223.134
References: <631fb9a1$0$703$14726298@news.sunsite.dk> <tjmvjp$159q$1@gioia.aioe.org>
<tjohvn$ghkg$2@dont-email.me> <tjprdq$srd$1@gioia.aioe.org>
<tug5rg$245tn$1@dont-email.me> <tutov0$14aca$1@dont-email.me>
<51a1a48f-9e1a-4cd6-8367-434c8e23e34cn@googlegroups.com> <tv30fr$26gek$1@dont-email.me>
<24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com> <tvc4n8$394j$1@dont-email.me>
<ebca2b91-74e6-44a1-ae33-d63c58f9a072n@googlegroups.com> <tvf4j6$lpst$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8ffc9e0b-71a5-4f8c-af64-76d3a7742c75n@googlegroups.com>
Subject: Re: VMS process communication
From: gxy...@uk2.net (Ian Miller)
Injection-Date: Wed, 22 Mar 2023 17:13:18 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3468
 by: Ian Miller - Wed, 22 Mar 2023 17:13 UTC

On Wednesday, March 22, 2023 at 2:50:17 PM UTC, Arne Vajhøj wrote:
> On 3/22/2023 7:18 AM, Ian Miller wrote:
> > On Tuesday, March 21, 2023 at 11:34:04 AM UTC, Arne Vajhøj wrote:
> >> On 3/20/2023 5:37 AM, Andreas Gruhl wrote:
> >>> Arne Vajhøj schrieb am Samstag, 18. März 2023 um 01:26:39 UTC+1:
> >>>> On 3/16/2023 5:05 AM, Andreas Gruhl wrote:
> >>>>> Arne Vajhøj schrieb am Donnerstag, 16. März 2023 um 01:47:31
> >>>>> UTC+1:
> >>>>>> On 3/10/2023 4:01 PM, Arne Vajhøj wrote:
> >>>>>>> https://www.vajhoej.dk/arne/articles/vms64.html
> >>>>>>
> >>>>>> Updated to version 1.0 based on comments.
> >>>>> Small correction: PASCAL/USAGE=64BIT_TO_DESCR does NOT change
> >>>>> the compiler's treatment of pointers. Interpreting pointers
> >>>>> as unsigned values has to be provided by the programmer. The
> >>>>> qualifier only allows for P2 structures to be used as actual
> >>>>> routine parameters via descriptor, which otherwise would be
> >>>>> flagged as a compile time error.
> >>>> So it does not change the treatment of pointers.
> >>>>
> >>>> It disables a compiler check.
> >>> That's correct.
> >>
> >> I have updated.
> > On VMS E9.2-1 x86-64 all code by default is put into P2 by the linker
> > but you can put /SEGMENT=CODE=P0 to stop that. I suspect this is
> > going to cause some issues when porting. For kernel mode code the
> > recommendation is to change from locking specific parts of the code
> > into the working set to locking the whole image as this works on I64
> > and x86 VMS by calling LIB$LOCK_IMAGE.
> So is a function pointer always 64 bit?
>
> Arne

from the release notes "The LINKER creates small stub routines in 32-bit P0 space to allow the address of a routine to be stored in a 32-bit variable."

Re: VMS process communication

<93a8e2d1-43be-4a3c-a8cc-78b1e5efadd5n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a37:44c8:0:b0:746:9174:3d3c with SMTP id r191-20020a3744c8000000b0074691743d3cmr807212qka.13.1679506626126;
Wed, 22 Mar 2023 10:37:06 -0700 (PDT)
X-Received: by 2002:ae9:e88a:0:b0:745:90a0:613e with SMTP id
a132-20020ae9e88a000000b0074590a0613emr805237qkg.14.1679506625876; Wed, 22
Mar 2023 10:37:05 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.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: Wed, 22 Mar 2023 10:37:05 -0700 (PDT)
In-Reply-To: <8ffc9e0b-71a5-4f8c-af64-76d3a7742c75n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:191:200:fa0:1dfb:1e29:f298:f939;
posting-account=M3IgSwoAAADJd6EnOmsrCCfB6_OyTOkv
NNTP-Posting-Host: 2601:191:200:fa0:1dfb:1e29:f298:f939
References: <631fb9a1$0$703$14726298@news.sunsite.dk> <tjmvjp$159q$1@gioia.aioe.org>
<tjohvn$ghkg$2@dont-email.me> <tjprdq$srd$1@gioia.aioe.org>
<tug5rg$245tn$1@dont-email.me> <tutov0$14aca$1@dont-email.me>
<51a1a48f-9e1a-4cd6-8367-434c8e23e34cn@googlegroups.com> <tv30fr$26gek$1@dont-email.me>
<24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com> <tvc4n8$394j$1@dont-email.me>
<ebca2b91-74e6-44a1-ae33-d63c58f9a072n@googlegroups.com> <tvf4j6$lpst$1@dont-email.me>
<8ffc9e0b-71a5-4f8c-af64-76d3a7742c75n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <93a8e2d1-43be-4a3c-a8cc-78b1e5efadd5n@googlegroups.com>
Subject: Re: VMS process communication
From: xyzzy1...@gmail.com (John Reagan)
Injection-Date: Wed, 22 Mar 2023 17:37:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5610
 by: John Reagan - Wed, 22 Mar 2023 17:37 UTC

On Wednesday, March 22, 2023 at 1:13:20 PM UTC-4, Ian Miller wrote:
> On Wednesday, March 22, 2023 at 2:50:17 PM UTC, Arne Vajhøj wrote:
> > On 3/22/2023 7:18 AM, Ian Miller wrote:
> > > On Tuesday, March 21, 2023 at 11:34:04 AM UTC, Arne Vajhøj wrote:
> > >> On 3/20/2023 5:37 AM, Andreas Gruhl wrote:
> > >>> Arne Vajhøj schrieb am Samstag, 18. März 2023 um 01:26:39 UTC+1:
> > >>>> On 3/16/2023 5:05 AM, Andreas Gruhl wrote:
> > >>>>> Arne Vajhøj schrieb am Donnerstag, 16. März 2023 um 01:47:31
> > >>>>> UTC+1:
> > >>>>>> On 3/10/2023 4:01 PM, Arne Vajhøj wrote:
> > >>>>>>> https://www.vajhoej.dk/arne/articles/vms64.html
> > >>>>>>
> > >>>>>> Updated to version 1.0 based on comments.
> > >>>>> Small correction: PASCAL/USAGE=64BIT_TO_DESCR does NOT change
> > >>>>> the compiler's treatment of pointers. Interpreting pointers
> > >>>>> as unsigned values has to be provided by the programmer. The
> > >>>>> qualifier only allows for P2 structures to be used as actual
> > >>>>> routine parameters via descriptor, which otherwise would be
> > >>>>> flagged as a compile time error.
> > >>>> So it does not change the treatment of pointers.
> > >>>>
> > >>>> It disables a compiler check.
> > >>> That's correct.
> > >>
> > >> I have updated.
> > > On VMS E9.2-1 x86-64 all code by default is put into P2 by the linker
> > > but you can put /SEGMENT=CODE=P0 to stop that. I suspect this is
> > > going to cause some issues when porting. For kernel mode code the
> > > recommendation is to change from locking specific parts of the code
> > > into the working set to locking the whole image as this works on I64
> > > and x86 VMS by calling LIB$LOCK_IMAGE.
> > So is a function pointer always 64 bit?
> >
> > Arne
> from the release notes "The LINKER creates small stub routines in 32-bit P0 space to allow the address of a routine to be stored in a 32-bit variable."

For the most part, few people have noticed that the code now resides in 64-bit space. The linker-created trampolines hide the details. The trampoline IS the routine's address. Shareable image symbol-vectors feel more like VAX these days since they also are an array of trampolines.

What I've seen more is VAX-era code (mostly Macro-32 and BLISS) that goes out of the way to place readonly data into the $CODE$ PSECT or mark $PLIT$/$LITERAL$/etc as EXE. On VAX, getting those literals near the code can result in byte or word-relative addressing modes which might save a few bytes. On Alpha or Itanium, having that data near the code didn't do anything (perhaps a little benefit for locality or reducing image segment counts?). On x86, marking those PSECTs as EXE moves that static data into 64-bit space as well. There are no "trampolines" to help so you can't take their 32-bit address for things like descriptors, item lists, etc. You get strange looking ACCVIOs from using just 32-bits of a larger than 32-bit address. Again, this is 99% a Macro-32 and BLISS technique to save a byte on VAX. Code written in C, C++, Fortran, etc. does the right thing by letting the compiler figure it out. And people who modify PSECT attributes in linker options files can shoot themselves in the foot (I just fixed one of those yesterday!)

And you can move code into P2 space on Itanium too but it isn't the default.. That linker has /SEGMENT=CODE=P2 if you want to try it (doesn't work well with C++ however).

The benefit of moving code out of P0 space is to free up more 32-bit heap, etc.

It has been this way with x86 since day-1. Our original design model was to put code in P2 space (and likewise more of the OS is now in S2 space)

John

Re: VMS process communication

<f1f85f5a-3761-4611-8324-26e2f014526bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:5c12:0:b0:3e3:8587:21f8 with SMTP id i18-20020ac85c12000000b003e3858721f8mr2545786qti.8.1679571787360;
Thu, 23 Mar 2023 04:43:07 -0700 (PDT)
X-Received: by 2002:a05:6214:3189:b0:56b:ed36:ffb with SMTP id
lb9-20020a056214318900b0056bed360ffbmr1219110qvb.1.1679571787147; Thu, 23 Mar
2023 04:43:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!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: Thu, 23 Mar 2023 04:43:06 -0700 (PDT)
In-Reply-To: <93a8e2d1-43be-4a3c-a8cc-78b1e5efadd5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=92.1.223.134; posting-account=xnH4mQkAAADgGjKHSw0dMDzsXknFp5II
NNTP-Posting-Host: 92.1.223.134
References: <631fb9a1$0$703$14726298@news.sunsite.dk> <tjmvjp$159q$1@gioia.aioe.org>
<tjohvn$ghkg$2@dont-email.me> <tjprdq$srd$1@gioia.aioe.org>
<tug5rg$245tn$1@dont-email.me> <tutov0$14aca$1@dont-email.me>
<51a1a48f-9e1a-4cd6-8367-434c8e23e34cn@googlegroups.com> <tv30fr$26gek$1@dont-email.me>
<24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com> <tvc4n8$394j$1@dont-email.me>
<ebca2b91-74e6-44a1-ae33-d63c58f9a072n@googlegroups.com> <tvf4j6$lpst$1@dont-email.me>
<8ffc9e0b-71a5-4f8c-af64-76d3a7742c75n@googlegroups.com> <93a8e2d1-43be-4a3c-a8cc-78b1e5efadd5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f1f85f5a-3761-4611-8324-26e2f014526bn@googlegroups.com>
Subject: Re: VMS process communication
From: gxy...@uk2.net (Ian Miller)
Injection-Date: Thu, 23 Mar 2023 11:43:07 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5840
 by: Ian Miller - Thu, 23 Mar 2023 11:43 UTC

On Wednesday, March 22, 2023 at 5:37:07 PM UTC, John Reagan wrote:
> On Wednesday, March 22, 2023 at 1:13:20 PM UTC-4, Ian Miller wrote:
> > On Wednesday, March 22, 2023 at 2:50:17 PM UTC, Arne Vajhøj wrote:
> > > On 3/22/2023 7:18 AM, Ian Miller wrote:
> > > > On Tuesday, March 21, 2023 at 11:34:04 AM UTC, Arne Vajhøj wrote:
> > > >> On 3/20/2023 5:37 AM, Andreas Gruhl wrote:
> > > >>> Arne Vajhøj schrieb am Samstag, 18. März 2023 um 01:26:39 UTC+1:
> > > >>>> On 3/16/2023 5:05 AM, Andreas Gruhl wrote:
> > > >>>>> Arne Vajhøj schrieb am Donnerstag, 16. März 2023 um 01:47:31
> > > >>>>> UTC+1:
> > > >>>>>> On 3/10/2023 4:01 PM, Arne Vajhøj wrote:
> > > >>>>>>> https://www.vajhoej.dk/arne/articles/vms64.html
> > > >>>>>>
> > > >>>>>> Updated to version 1.0 based on comments.
> > > >>>>> Small correction: PASCAL/USAGE=64BIT_TO_DESCR does NOT change
> > > >>>>> the compiler's treatment of pointers. Interpreting pointers
> > > >>>>> as unsigned values has to be provided by the programmer. The
> > > >>>>> qualifier only allows for P2 structures to be used as actual
> > > >>>>> routine parameters via descriptor, which otherwise would be
> > > >>>>> flagged as a compile time error.
> > > >>>> So it does not change the treatment of pointers.
> > > >>>>
> > > >>>> It disables a compiler check.
> > > >>> That's correct.
> > > >>
> > > >> I have updated.
> > > > On VMS E9.2-1 x86-64 all code by default is put into P2 by the linker
> > > > but you can put /SEGMENT=CODE=P0 to stop that. I suspect this is
> > > > going to cause some issues when porting. For kernel mode code the
> > > > recommendation is to change from locking specific parts of the code
> > > > into the working set to locking the whole image as this works on I64
> > > > and x86 VMS by calling LIB$LOCK_IMAGE.
> > > So is a function pointer always 64 bit?
> > >
> > > Arne
> > from the release notes "The LINKER creates small stub routines in 32-bit P0 space to allow the address of a routine to be stored in a 32-bit variable."
> For the most part, few people have noticed that the code now resides in 64-bit space. The linker-created trampolines hide the details. The trampoline IS the routine's address. Shareable image symbol-vectors feel more like VAX these days since they also are an array of trampolines.
>
> What I've seen more is VAX-era code (mostly Macro-32 and BLISS) that goes out of the way to place readonly data into the $CODE$ PSECT or mark $PLIT$/$LITERAL$/etc as EXE. On VAX, getting those literals near the code can result in byte or word-relative addressing modes which might save a few bytes. On Alpha or Itanium, having that data near the code didn't do anything (perhaps a little benefit for locality or reducing image segment counts?). On x86, marking those PSECTs as EXE moves that static data into 64-bit space as well. There are no "trampolines" to help so you can't take their 32-bit address for things like descriptors, item lists, etc. You get strange looking ACCVIOs from using just 32-bits of a larger than 32-bit address. Again, this is 99% a Macro-32 and BLISS technique to save a byte on VAX. Code written in C, C++, Fortran, etc. does the right thing by letting the compiler figure it out. And people who modify PSECT attributes in linker options files can shoot themselves in the foot (I just fixed one of those yesterday!)
>
> And you can move code into P2 space on Itanium too but it isn't the default. That linker has /SEGMENT=CODE=P2 if you want to try it (doesn't work well with C++ however).
>
> The benefit of moving code out of P0 space is to free up more 32-bit heap, etc.
>
> It has been this way with x86 since day-1. Our original design model was to put code in P2 space (and likewise more of the OS is now in S2 space)
>
> John

I've only noticed when porting some MACRO32 ;-)

Re: VMS process communication

<tvn9s5$290qu$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS process communication
Date: Sat, 25 Mar 2023 13:09:22 -0400
Organization: A noiseless patient Spider
Lines: 79
Message-ID: <tvn9s5$290qu$1@dont-email.me>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tjmvjp$159q$1@gioia.aioe.org> <tjohvn$ghkg$2@dont-email.me>
<tjprdq$srd$1@gioia.aioe.org> <tug5rg$245tn$1@dont-email.me>
<tutov0$14aca$1@dont-email.me>
<51a1a48f-9e1a-4cd6-8367-434c8e23e34cn@googlegroups.com>
<tv30fr$26gek$1@dont-email.me>
<24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com>
<tvc4n8$394j$1@dont-email.me>
<ebca2b91-74e6-44a1-ae33-d63c58f9a072n@googlegroups.com>
<tvf4j6$lpst$1@dont-email.me>
<8ffc9e0b-71a5-4f8c-af64-76d3a7742c75n@googlegroups.com>
<93a8e2d1-43be-4a3c-a8cc-78b1e5efadd5n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 25 Mar 2023 17:09:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7ab3b6fe1f459f9c685e6430ecdb79be";
logging-data="2392926"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WN4CgOyEa+eRJuNSbeRmkosqRtTwamEI="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:IAp/bL4zF+oCktWVEKl1el2+HpE=
Content-Language: en-US
In-Reply-To: <93a8e2d1-43be-4a3c-a8cc-78b1e5efadd5n@googlegroups.com>
 by: Arne Vajhøj - Sat, 25 Mar 2023 17:09 UTC

On 3/22/2023 1:37 PM, John Reagan wrote:
> On Wednesday, March 22, 2023 at 1:13:20 PM UTC-4, Ian Miller wrote:
>> On Wednesday, March 22, 2023 at 2:50:17 PM UTC, Arne Vajhøj wrote:
>>> On 3/22/2023 7:18 AM, Ian Miller wrote:
>>>> On VMS E9.2-1 x86-64 all code by default is put into P2 by the
>>>> linker but you can put /SEGMENT=CODE=P0 to stop that.

>>> So is a function pointer always 64 bit?

>> from the release notes "The LINKER creates small stub routines in
>> 32-bit P0 space to allow the address of a routine to be stored in
>> a 32-bit variable."
VMS is VMS.

:-)

> For the most part, few people have noticed that the code now resides
> in 64-bit space. The linker-created trampolines hide the details.
> The trampoline IS the routine's address. Shareable image
> symbol-vectors feel more like VAX these days since they also are an
> array of trampolines.
>
> What I've seen more is VAX-era code (mostly Macro-32 and BLISS) that
> goes out of the way to place readonly data into the $CODE$ PSECT or
> mark $PLIT$/$LITERAL$/etc as EXE.

They have do something special.

$ type hw.mar
.title hw
.psect $CODE quad,pic,con,lcl,shr,exe,nowrt
hw: .asciz "Hello world!"
.entry gethw,^m<>
movab hw,r0
ret
.end
$ macro hw

hw: .asciz "Hello world!"
^ %AMAC-E-DATINCODE, data in code stream
at line number 3 in file DISK2:[ARNE]hw.mar;1

Of course they can do:

$ type hw2.mar
.title hw2
.psect $PDATA quad,pic,con,lcl,shr,noexe,nowrt
hw: .asciz "Hello world!"
.psect $CODE quad,pic,con,lcl,shr,exe,nowrt
.entry gethw,^m<>
movab hw,r0
ret
.end
$ macro hw2
$ type hw0.c
#include <stdio.h>

char *gethw();

int main(int argc, char *argv[])
{ printf("%s\n", gethw());
return 0;
} $ cc hw0
$ link/map hw0 + hw2 + sys$input/opt
psect_attr=$pdata,EXE
$ $ run hw0
Hello world!

which if I understand correct will fail on x86-64
default and on Itanium with eksplicit /SEGMENT=CODE=P2
because returning a P2 address in 32 bit just doesn't work.

Arne

Re: VMS process communication

<k88olrFmhtrU1@mid.individual.net>

  copy mid

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

  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: VMS process communication
Date: Sat, 25 Mar 2023 13:17:46 -0400
Lines: 40
Message-ID: <k88olrFmhtrU1@mid.individual.net>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tjmvjp$159q$1@gioia.aioe.org> <tjohvn$ghkg$2@dont-email.me>
<tjprdq$srd$1@gioia.aioe.org> <tug5rg$245tn$1@dont-email.me>
<tutov0$14aca$1@dont-email.me>
<51a1a48f-9e1a-4cd6-8367-434c8e23e34cn@googlegroups.com>
<tv30fr$26gek$1@dont-email.me>
<24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com>
<tvc4n8$394j$1@dont-email.me>
<ebca2b91-74e6-44a1-ae33-d63c58f9a072n@googlegroups.com>
<tvf4j6$lpst$1@dont-email.me>
<8ffc9e0b-71a5-4f8c-af64-76d3a7742c75n@googlegroups.com>
<93a8e2d1-43be-4a3c-a8cc-78b1e5efadd5n@googlegroups.com>
<tvn9s5$290qu$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 ov7UvmpjzwI9IhzvO3EgTw5LTvA+xJtrihP+8KnPrL9Pxl+4jk
Cancel-Lock: sha1:tD4o38VcVQ/c9TNbvKIw2LpnBSg=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Content-Language: en-US
In-Reply-To: <tvn9s5$290qu$1@dont-email.me>
 by: bill - Sat, 25 Mar 2023 17:17 UTC

On 3/25/2023 1:09 PM, Arne Vajhøj wrote:
>
>
> $ type hw.mar
>         .title  hw
>         .psect  $CODE quad,pic,con,lcl,shr,exe,nowrt
> hw:     .asciz  "Hello world!"
^^^^^^

>         .entry  gethw,^m<>
>         movab   hw,r0
>         ret
>         .end
> $ macro hw
>
> hw:     .asciz  "Hello world!"
> ^
> %AMAC-E-DATINCODE, data in code stream
> at line number 3 in file DISK2:[ARNE]hw.mar;1
>
> Of course they can do:
>
> $ type hw2.mar
>         .title  hw2
>         .psect  $PDATA quad,pic,con,lcl,shr,noexe,nowrt
> hw:     .asciz  "Hello world!"
^^^^^^

>         .psect  $CODE quad,pic,con,lcl,shr,exe,nowrt
>         .entry  gethw,^m<>
>         movab   hw,r0
>         ret
>         .end

I thought null terminated strings was a C thing and a bad idea? :-)

bill

Re: VMS process communication

<tvnb4t$296mc$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: VMS process communication
Date: Sat, 25 Mar 2023 13:30:48 -0400
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <tvnb4t$296mc$1@dont-email.me>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tjmvjp$159q$1@gioia.aioe.org> <tjohvn$ghkg$2@dont-email.me>
<tjprdq$srd$1@gioia.aioe.org> <tug5rg$245tn$1@dont-email.me>
<tutov0$14aca$1@dont-email.me>
<51a1a48f-9e1a-4cd6-8367-434c8e23e34cn@googlegroups.com>
<tv30fr$26gek$1@dont-email.me>
<24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com>
<tvc4n8$394j$1@dont-email.me>
<ebca2b91-74e6-44a1-ae33-d63c58f9a072n@googlegroups.com>
<tvf4j6$lpst$1@dont-email.me>
<8ffc9e0b-71a5-4f8c-af64-76d3a7742c75n@googlegroups.com>
<93a8e2d1-43be-4a3c-a8cc-78b1e5efadd5n@googlegroups.com>
<tvn9s5$290qu$1@dont-email.me> <k88olrFmhtrU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 25 Mar 2023 17:31:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cd329e45a2f3df9b36fe8a551fdd02e9";
logging-data="2398924"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+POGPVfz723WnPIURjeTvMSB5o4zs3OJc="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:JEB08JY1N3lulQAqN0eT8oVqKkI=
In-Reply-To: <k88olrFmhtrU1@mid.individual.net>
 by: Dave Froble - Sat, 25 Mar 2023 17:30 UTC

On 3/25/2023 1:17 PM, bill wrote:
> On 3/25/2023 1:09 PM, Arne Vajhøj wrote:
>>
>>
>> $ type hw.mar
>> .title hw
>> .psect $CODE quad,pic,con,lcl,shr,exe,nowrt
>> hw: .asciz "Hello world!"
> ^^^^^^
>
>
>> .entry gethw,^m<>
>> movab hw,r0
>> ret
>> .end
>> $ macro hw
>>
>> hw: .asciz "Hello world!"
>> ^
>> %AMAC-E-DATINCODE, data in code stream
>> at line number 3 in file DISK2:[ARNE]hw.mar;1
>>
>> Of course they can do:
>>
>> $ type hw2.mar
>> .title hw2
>> .psect $PDATA quad,pic,con,lcl,shr,noexe,nowrt
>> hw: .asciz "Hello world!"
> ^^^^^^
>
>
>> .psect $CODE quad,pic,con,lcl,shr,exe,nowrt
>> .entry gethw,^m<>
>> movab hw,r0
>> ret
>> .end
>
> I thought null terminated strings was a C thing and a bad idea? :-)
>
> bill
>

There was ASCIZ before there was C. But still not advisable.

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: VMS process communication

<k88rd6FmhttU1@mid.individual.net>

  copy mid

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

  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: VMS process communication
Date: Sat, 25 Mar 2023 14:04:21 -0400
Lines: 54
Message-ID: <k88rd6FmhttU1@mid.individual.net>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tjmvjp$159q$1@gioia.aioe.org> <tjohvn$ghkg$2@dont-email.me>
<tjprdq$srd$1@gioia.aioe.org> <tug5rg$245tn$1@dont-email.me>
<tutov0$14aca$1@dont-email.me>
<51a1a48f-9e1a-4cd6-8367-434c8e23e34cn@googlegroups.com>
<tv30fr$26gek$1@dont-email.me>
<24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com>
<tvc4n8$394j$1@dont-email.me>
<ebca2b91-74e6-44a1-ae33-d63c58f9a072n@googlegroups.com>
<tvf4j6$lpst$1@dont-email.me>
<8ffc9e0b-71a5-4f8c-af64-76d3a7742c75n@googlegroups.com>
<93a8e2d1-43be-4a3c-a8cc-78b1e5efadd5n@googlegroups.com>
<tvn9s5$290qu$1@dont-email.me> <k88olrFmhtrU1@mid.individual.net>
<tvnb4t$296mc$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 Pcl0rp6XMcXSBuFvFfxzXQTs7TaNcJv4r5xtDx5gnZI3MqPgqx
Cancel-Lock: sha1:s9efLDVFHt7kCgyNrb1h+j8QGOE=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Content-Language: en-US
In-Reply-To: <tvnb4t$296mc$1@dont-email.me>
 by: bill - Sat, 25 Mar 2023 18:04 UTC

On 3/25/2023 1:30 PM, Dave Froble wrote:
> On 3/25/2023 1:17 PM, bill wrote:
>> On 3/25/2023 1:09 PM, Arne Vajhøj wrote:
>>>
>>>
>>> $ type hw.mar
>>>          .title  hw
>>>          .psect  $CODE quad,pic,con,lcl,shr,exe,nowrt
>>> hw:     .asciz  "Hello world!"
>>           ^^^^^^
>>
>>
>>>          .entry  gethw,^m<>
>>>          movab   hw,r0
>>>          ret
>>>          .end
>>> $ macro hw
>>>
>>> hw:     .asciz  "Hello world!"
>>> ^
>>> %AMAC-E-DATINCODE, data in code stream
>>> at line number 3 in file DISK2:[ARNE]hw.mar;1
>>>
>>> Of course they can do:
>>>
>>> $ type hw2.mar
>>>          .title  hw2
>>>          .psect  $PDATA quad,pic,con,lcl,shr,noexe,nowrt
>>> hw:     .asciz  "Hello world!"
>>           ^^^^^^
>>
>>
>>>          .psect  $CODE quad,pic,con,lcl,shr,exe,nowrt
>>>          .entry  gethw,^m<>
>>>          movab   hw,r0
>>>          ret
>>>          .end
>>
>> I thought null terminated strings was a C thing and a bad idea?  :-)
>>
>> bill
>>
>
> There was ASCIZ before there was C.  But still not advisable.
>

I knew there was. I just find it funny that everyone holds that
idea up as the very worst thing in C and yet, as you said, it was
the industry standard long before C came around. Had C done it
differently I am sure people would have bitched about abandoning
the current standard.

bill

Re: VMS process communication

<tvnd9c$29j1g$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS process communication
Date: Sat, 25 Mar 2023 14:07:39 -0400
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <tvnd9c$29j1g$1@dont-email.me>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tjmvjp$159q$1@gioia.aioe.org> <tjohvn$ghkg$2@dont-email.me>
<tjprdq$srd$1@gioia.aioe.org> <tug5rg$245tn$1@dont-email.me>
<tutov0$14aca$1@dont-email.me>
<51a1a48f-9e1a-4cd6-8367-434c8e23e34cn@googlegroups.com>
<tv30fr$26gek$1@dont-email.me>
<24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com>
<tvc4n8$394j$1@dont-email.me>
<ebca2b91-74e6-44a1-ae33-d63c58f9a072n@googlegroups.com>
<tvf4j6$lpst$1@dont-email.me>
<8ffc9e0b-71a5-4f8c-af64-76d3a7742c75n@googlegroups.com>
<93a8e2d1-43be-4a3c-a8cc-78b1e5efadd5n@googlegroups.com>
<tvn9s5$290qu$1@dont-email.me> <k88olrFmhtrU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 25 Mar 2023 18:07:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7ab3b6fe1f459f9c685e6430ecdb79be";
logging-data="2411568"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rYfKUChH/vXU8W/qZLDRUEfvsEoSNQKk="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:fCKyvF1D7MKHlTMDdmbx9FNlRa4=
Content-Language: en-US
In-Reply-To: <k88olrFmhtrU1@mid.individual.net>
 by: Arne Vajhøj - Sat, 25 Mar 2023 18:07 UTC

On 3/25/2023 1:17 PM, bill wrote:
> On 3/25/2023 1:09 PM, Arne Vajhøj wrote:
>>
>>
>> $ type hw.mar
>>          .title  hw
>>          .psect  $CODE quad,pic,con,lcl,shr,exe,nowrt
>> hw:     .asciz  "Hello world!"
>           ^^^^^^
>
>>          .entry  gethw,^m<>
>>          movab   hw,r0
>>          ret
>>          .end
>> $ macro hw
>>
>> hw:     .asciz  "Hello world!"
>> ^
>> %AMAC-E-DATINCODE, data in code stream
>> at line number 3 in file DISK2:[ARNE]hw.mar;1
>>
>> Of course they can do:
>>
>> $ type hw2.mar
>>          .title  hw2
>>          .psect  $PDATA quad,pic,con,lcl,shr,noexe,nowrt
>> hw:     .asciz  "Hello world!"
>           ^^^^^^
>
>>          .psect  $CODE quad,pic,con,lcl,shr,exe,nowrt
>>          .entry  gethw,^m<>
>>          movab   hw,r0
>>          ret
>>          .end
>
> I thought null terminated strings was a C thing and a bad idea?  :-)

Well - it is being returned to a C program, so it made sense to me.

Arne

Re: VMS process communication

<tvndg8$29j1g$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS process communication
Date: Sat, 25 Mar 2023 14:11:18 -0400
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <tvndg8$29j1g$2@dont-email.me>
References: <631fb9a1$0$703$14726298@news.sunsite.dk>
<tjmvjp$159q$1@gioia.aioe.org> <tjohvn$ghkg$2@dont-email.me>
<tjprdq$srd$1@gioia.aioe.org> <tug5rg$245tn$1@dont-email.me>
<tutov0$14aca$1@dont-email.me>
<51a1a48f-9e1a-4cd6-8367-434c8e23e34cn@googlegroups.com>
<tv30fr$26gek$1@dont-email.me>
<24312d01-6ce2-422a-828e-6540f1c242a4n@googlegroups.com>
<tvc4n8$394j$1@dont-email.me>
<ebca2b91-74e6-44a1-ae33-d63c58f9a072n@googlegroups.com>
<tvf4j6$lpst$1@dont-email.me>
<8ffc9e0b-71a5-4f8c-af64-76d3a7742c75n@googlegroups.com>
<93a8e2d1-43be-4a3c-a8cc-78b1e5efadd5n@googlegroups.com>
<tvn9s5$290qu$1@dont-email.me> <k88olrFmhtrU1@mid.individual.net>
<tvnb4t$296mc$1@dont-email.me> <k88rd6FmhttU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 25 Mar 2023 18:11:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7ab3b6fe1f459f9c685e6430ecdb79be";
logging-data="2411568"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/jKbcbkN+7xHoT5JoeLrPhtShZb+W3dQY="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:Gu/ORP8PMUDqyoj1K4ELYEnheo8=
In-Reply-To: <k88rd6FmhttU1@mid.individual.net>
Content-Language: en-US
 by: Arne Vajhøj - Sat, 25 Mar 2023 18:11 UTC

On 3/25/2023 2:04 PM, bill wrote:
> On 3/25/2023 1:30 PM, Dave Froble wrote:
>> On 3/25/2023 1:17 PM, bill wrote:
>>> I thought null terminated strings was a C thing and a bad idea?  :-)
>>
>> There was ASCIZ before there was C.  But still not advisable.
>
> I knew there was.  I just find it funny that everyone holds that
> idea up as the very worst thing in C

Probably not the worst thing. Just not particular good.

> and yet, as you said, it was
> the industry standard long before C came around.

Used/seen before yes. Industry standard I don't think so.

>   Had C done it
> differently I am sure people would have bitched about abandoning
> the current standard.

There are usually always people willing to complain about
anything.

But I do not remember anyone complaining about strings not
being null terminated char arrays in newer languages.

Arne

Re: VMS process communication

<tvnffo$shi$1@panix2.panix.com>

  copy mid

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

  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: VMS process communication
Date: 25 Mar 2023 18:45:12 -0000
Organization: Former users of Netcom shell (1989-2000)
Lines: 22
Message-ID: <tvnffo$shi$1@panix2.panix.com>
References: <631fb9a1$0$703$14726298@news.sunsite.dk> <tvf4j6$lpst$1@dont-email.me> <8ffc9e0b-71a5-4f8c-af64-76d3a7742c75n@googlegroups.co <k88rd6FmhttU1@mid.individual.net>
Injection-Info: reader2.panix.com; posting-host="panix2.panix.com:166.84.1.2";
logging-data="22932"; mail-complaints-to="abuse@panix.com"
 by: Scott Dorsey - Sat, 25 Mar 2023 18:45 UTC

bill <bill.gunshannon@gmail.com> wrote:
>I knew there was. I just find it funny that everyone holds that
>idea up as the very worst thing in C and yet, as you said, it was
>the industry standard long before C came around. Had C done it
>differently I am sure people would have bitched about abandoning
>the current standard.

Quite possibly, but they would have had a lot fewer buffer overrun
vulnerabilities while doing so.

I am a big fan of C and I definitely think null-terminated strings
were a mistake. There are syntax issues in C that I don't like, but
there is nothing in the same order of magnitude as null terminated
strings.

But, at the time C was made, the notion that people would attempt to
deliberately cause software to malfunction seemed alien. It no longer
is, and as the world has changed the design decisions that seem appropriate
may have changed as well.
--scott
--
"C'est un Nagra. C'est suisse, et tres, tres precis."

C limitations, was: Re: VMS process communication

<tvs23c$37d4e$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: C limitations, was: Re: VMS process communication
Date: Mon, 27 Mar 2023 12:27:24 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <tvs23c$37d4e$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>
Injection-Date: Mon, 27 Mar 2023 12:27:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="55398a0dbf1d3027112c2d562a0ee094";
logging-data="3388558"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+brqzuV3uqIob1Ac4WfIjwi2QTK8EuTCQ="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:L5Pw7qW077729CujmuotspWAGKY=
 by: Simon Clubley - Mon, 27 Mar 2023 12:27 UTC

On 2023-03-25, Scott Dorsey <kludge@panix.com> wrote:
> bill <bill.gunshannon@gmail.com> wrote:
>>I knew there was. I just find it funny that everyone holds that
>>idea up as the very worst thing in C and yet, as you said, it was
>>the industry standard long before C came around. Had C done it
>>differently I am sure people would have bitched about abandoning
>>the current standard.
>
> Quite possibly, but they would have had a lot fewer buffer overrun
> vulnerabilities while doing so.
>
> I am a big fan of C and I definitely think null-terminated strings
> were a mistake. There are syntax issues in C that I don't like, but
> there is nothing in the same order of magnitude as null terminated
> strings.
>
> But, at the time C was made, the notion that people would attempt to
> deliberately cause software to malfunction seemed alien. It no longer
> is, and as the world has changed the design decisions that seem appropriate
> may have changed as well.

In this very different world, gets() was once considered to be an acceptable
function. :-)

In the more recent world, strncpy() is not always guaranteed to write
a terminating null. Absolutely no excuse for that one :-(, especially
given that it was supposed to be a fix for strcpy() (IIRC).

Other annoyances (apart from the null-terminated strings):

= for assignment, versus == for comparison. (At least it's not PHP however,
where you need to use === to get a sane comparison. :-))

enums are integers, not a type.

Functions are public unless marked as static. I would have preferred them
to be private by default with the need for a "public" keyword to make the
function visible to the linker.

signed characters are the default.

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

<tvs58m$37kh8$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.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, 27 Mar 2023 09:21:25 -0400
Organization: A noiseless patient Spider
Lines: 177
Message-ID: <tvs58m$37kh8$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 27 Mar 2023 13:21:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="af5c4889d24b6692d7da31090d236595";
logging-data="3396136"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/m9/+ukM3TXDQhr/wn7rE+34jS1za834I="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:OTN432JCW5QnwPxmuG0OWWKROfA=
In-Reply-To: <tvs23c$37d4e$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Mon, 27 Mar 2023 13:21 UTC

On 3/27/2023 8:27 AM, Simon Clubley wrote:
> = for assignment, versus == for comparison. (At least it's not PHP however,
> where you need to use === to get a sane comparison. :-))

C == is not that great either.

$ type eq.c
#include <stdio.h>
#include <stdlib.h>

#define TEST(a, b) printf(#a " == " #b " : %d\n", a == b)

int main()
{ TEST(0, 0);
TEST(0, 1);
TEST(1, 0);
TEST(1, 1);
TEST(0, 0.0);
TEST(0, 1.0);
TEST(1, 0.0);
TEST(1, 1.0);
TEST(0, 0.1);
TEST(0, 1.1);
TEST(1, 0.1);
TEST(1, 1.1);
TEST(0, FALSE);
TEST(0, TRUE);
TEST(1, FALSE);
TEST(1, TRUE);
TEST(0, "ABC");
TEST(0, NULL);
TEST(1, "ABC");
TEST(1, NULL);
return 0;
} $ cc eq

TEST(1, "ABC");
.....^
%CC-W-CVTDIFTYPES, In this statement, "1" of type "int", is being
converted to "pointer to char".
at line number 26 in file DISK2:[ARNE]eq.c;1

TEST(1, NULL);
.....^
%CC-W-CVTDIFTYPES, In this statement, "1" of type "int", is being
converted to "pointer to void".
at line number 27 in file DISK2:[ARNE]eq.c;1
$ link eq
%LINK-W-WRNERS, compilation warnings
in module EQ file DISK2:[ARNE]eq.OBJ;2
$ run eq
0 == 0 : 1
0 == 1 : 0
1 == 0 : 0
1 == 1 : 1
0 == 0.0 : 1
0 == 1.0 : 0
1 == 0.0 : 0
1 == 1.0 : 1
0 == 0.1 : 0
0 == 1.1 : 0
1 == 0.1 : 0
1 == 1.1 : 0
0 == FALSE : 1
0 == TRUE : 0
1 == FALSE : 0
1 == TRUE : 1
0 == "ABC" : 0
0 == NULL : 1
1 == "ABC" : 0
1 == NULL : 0
$ type eq.php
<?php

function test($a, $b) {
echo "$a == $b : " . ($a == $b) . "\r\n";
}

test(0, 0);
test(0, 1);
test(1, 0);
test(1, 1);
test(0, 0.0);
test(0, 1.0);
test(1, 0.0);
test(1, 1.0);
test(0, 0.1);
test(0, 1.1);
test(1, 0.1);
test(1, 1.1);
test(0, FALSE);
test(0, TRUE);
test(1, FALSE);
test(1, TRUE);
test(0, "ABC");
test(0, NULL);
test(1, "ABC");
test(1, NULL);

?>
$ php eq.php
0 == 0 : 1
0 == 1 :
1 == 0 :
1 == 1 : 1
0 == 0 : 1
0 == 1 :
1 == 0 :
1 == 1 : 1
0 == 0.1 :
0 == 1.1 :
1 == 0.1 :
1 == 1.1 :
0 == : 1
0 == 1 :
1 == :
1 == 1 : 1
0 == ABC : 1
0 == : 1
1 == ABC :
1 == :
$ type eq2.php
<?php

function test($a, $b) {
echo "$a === $b : " . ($a === $b) . "\r\n";
}

test(0, 0);
test(0, 1);
test(1, 0);
test(1, 1);
test(0, 0.0);
test(0, 1.0);
test(1, 0.0);
test(1, 1.0);
test(0, 0.1);
test(0, 1.1);
test(1, 0.1);
test(1, 1.1);
test(0, FALSE);
test(0, TRUE);
test(1, FALSE);
test(1, TRUE);
test(0, "ABC");
test(0, NULL);
test(1, "ABC");
test(1, NULL);

?>
$ php eq2.php
0 === 0 : 1
0 === 1 :
1 === 0 :
1 === 1 : 1
0 === 0 :
0 === 1 :
1 === 0 :
1 === 1 :
0 === 0.1 :
0 === 1.1 :
1 === 0.1 :
1 === 1.1 :
0 === :
0 === 1 :
1 === :
1 === 1 :
0 === ABC :
0 === :
1 === ABC :
1 === :

Arne


computers / comp.os.vms / Re: VMS process communication

Pages:123456789
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor