Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

It's ten o'clock; do you know where your processes are?


computers / comp.os.vms / Re: VMS Software Q1 '23 Update

SubjectAuthor
* VMS Software Q1 '23 UpdateJan-Erik Söderholm
`* Re: VMS Software Q1 '23 UpdateSimon Clubley
 `* Re: VMS Software Q1 '23 UpdateJan-Erik Söderholm
  `* Re: VMS Software Q1 '23 UpdateJohn H Reinhardt
   `* Re: VMS Software Q1 '23 UpdateIan Miller
    `* Re: VMS Software Q1 '23 UpdateSimon Clubley
     +* Re: VMS Software Q1 '23 UpdateDave Froble
     |+- Re: VMS Software Q1 '23 UpdateDan Cross
     |+* Re: VMS Software Q1 '23 UpdateCraig A. Berry
     ||`* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     || +* Re: VMS Software Q1 '23 UpdateCraig A. Berry
     || |`- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     || `* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||  `* Re: VMS Software Q1 '23 UpdateSimon Clubley
     ||   +- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||   `* Re: VMS Software Q1 '23 UpdateJohn Reagan
     ||    `* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||     `* Re: VMS Software Q1 '23 UpdateJohn Reagan
     ||      `* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       +* Re: VMS Software Q1 '23 UpdateJohn Reagan
     ||       |`* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       | `* Re: VMS Software Q1 '23 Updatebill
     ||       |  +- Re: VMS Software Q1 '23 UpdateDave Froble
     ||       |  `* Re: VMS Software Q1 '23 UpdateSimon Clubley
     ||       |   +- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |   `* Re: VMS Software Q1 '23 UpdateDave Froble
     ||       |    `* Re: VMS Software Q1 '23 UpdateSingle Stage to Orbit
     ||       |     `* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      +* Re: VMS Software Q1 '23 UpdateSimon Clubley
     ||       |      |`* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | +* Re: VMS Software Q1 '23 UpdateSteven Schweda
     ||       |      | |`* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | | +- Re: VMS Software Q1 '23 UpdateSimon Clubley
     ||       |      | | `* Re: VMS Software Q1 '23 UpdateSteven Schweda
     ||       |      | |  +* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  |+* Re: VMS Software Q1 '23 UpdateJohnny Billquist
     ||       |      | |  ||+* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  |||+* Re: VMS Software Q1 '23 UpdateDave Froble
     ||       |      | |  ||||`- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  |||`- Re: VMS Software Q1 '23 UpdateJohnny Billquist
     ||       |      | |  ||`* Re: VMS Software Q1 '23 UpdateDave Froble
     ||       |      | |  || `* Re: VMS Software Q1 '23 UpdateScott Dorsey
     ||       |      | |  ||  +* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||  |`* Re: VMS Software Q1 '23 Updatebill
     ||       |      | |  ||  | +- Re: VMS Software Q1 '23 UpdateScott Dorsey
     ||       |      | |  ||  | +- Re: VMS Software Q1 '23 UpdateDave Froble
     ||       |      | |  ||  | `- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||  `* Re: VMS Software Q1 '23 UpdateDave Froble
     ||       |      | |  ||   +* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   |+* Re: VMS Software Q1 '23 UpdateDave Froble
     ||       |      | |  ||   ||`* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || +* Re: VMS Software Q1 '23 UpdateScott Dorsey
     ||       |      | |  ||   || |`* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || | +* Re: VMS Software Q1 '23 UpdateDave Froble
     ||       |      | |  ||   || | |+- Re: VMS Software Q1 '23 UpdateScott Dorsey
     ||       |      | |  ||   || | |`* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || | | +- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || | | +* Re: VMS Software Q1 '23 UpdateDave Froble
     ||       |      | |  ||   || | | |`* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || | | | +* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || | | | |`- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || | | | `* Re: VMS Software Q1 '23 UpdateDave Froble
     ||       |      | |  ||   || | | |  +* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || | | |  |+* Re: VMS Software Q1 '23 UpdateCraig A. Berry
     ||       |      | |  ||   || | | |  ||`- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || | | |  |`* Re: VMS Software Q1 '23 UpdateJohn Reagan
     ||       |      | |  ||   || | | |  | `- Re: VMS Software Q1 '23 UpdateDave Froble
     ||       |      | |  ||   || | | |  `- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || | | `- Re: VMS Software Q1 '23 UpdateJohnny Billquist
     ||       |      | |  ||   || | `* Re: VMS Software Q1 '23 UpdateScott Dorsey
     ||       |      | |  ||   || |  `- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || +* Re: VMS Software Q1 '23 UpdateSimon Clubley
     ||       |      | |  ||   || |+- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || |`* Re: VMS Software Q1 '23 UpdateJohnny Billquist
     ||       |      | |  ||   || | `* Re: VMS Software Q1 '23 UpdateSimon Clubley
     ||       |      | |  ||   || |  +* Re: VMS Software Q1 '23 UpdateStephen Hoffman
     ||       |      | |  ||   || |  |+- Re: VMS Software Q1 '23 UpdateJohn Reagan
     ||       |      | |  ||   || |  |`* Re: VMS Software Q1 '23 UpdateSimon Clubley
     ||       |      | |  ||   || |  | +* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || |  | |+* Re: VMS Software Q1 '23 UpdateJan-Erik Söderholm
     ||       |      | |  ||   || |  | ||`* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || |  | || `- Re: VMS Software Q1 '23 UpdateJan-Erik Söderholm
     ||       |      | |  ||   || |  | |`* Re: VMS Software Q1 '23 UpdateSingle Stage to Orbit
     ||       |      | |  ||   || |  | | `* Re: VMS Software Q1 '23 Updateplugh
     ||       |      | |  ||   || |  | |  +* Re: VMS Software Q1 '23 UpdateSingle Stage to Orbit
     ||       |      | |  ||   || |  | |  |`* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || |  | |  | +* Re: VMS Software Q1 '23 UpdateSingle Stage to Orbit
     ||       |      | |  ||   || |  | |  | |`- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || |  | |  | `* Re: VMS Software Q1 '23 UpdateDan Cross
     ||       |      | |  ||   || |  | |  |  `* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | |  ||   || |  | |  |   `- Re: VMS Software Q1 '23 UpdateDan Cross
     ||       |      | |  ||   || |  | |  `- Re: VMS Software Q1 '23 Updateplugh
     ||       |      | |  ||   || |  | +- Re: VMS Software Q1 '23 UpdateDave Froble
     ||       |      | |  ||   || |  | +* Re: Floating Point, Machine Epsilon, Rust, Swift, Etc (was: Re: VMS Software Q1 Stephen Hoffman
     ||       |      | |  ||   || |  | |`* Re: Floating Point, Machine Epsilon, Rust, Swift, Etc (was: Re: VMSArne Vajhøj
     ||       |      | |  ||   || |  | | `* Re: Floating Point, Machine Epsilon, Rust, Swift, Etc (was: Re: VMSDan Cross
     ||       |      | |  ||   || |  | |  `- Re: Floating Point, Machine Epsilon, Rust, Swift, Etc (was: Re: VMSArne Vajhøj
     ||       |      | |  ||   || |  | `- Re: VMS Software Q1 '23 UpdateDan Cross
     ||       |      | |  ||   || |  `- Re: VMS Software Q1 '23 UpdateJohnny Billquist
     ||       |      | |  ||   || `- Re: VMS Software Q1 '23 UpdateJohnny Billquist
     ||       |      | |  ||   |`- Re: VMS Software Q1 '23 UpdateJohnny Billquist
     ||       |      | |  ||   +* Re: VMS Software Q1 '23 UpdateScott Dorsey
     ||       |      | |  ||   +* Re: VMS Software Q1 '23 Updatebill
     ||       |      | |  ||   `- Re: VMS Software Q1 '23 UpdateJohnny Billquist
     ||       |      | |  |`* Re: VMS Software Q1 '23 UpdateDave Froble
     ||       |      | |  `* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      | `- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     ||       |      `* Re: VMS Software Q1 '23 UpdateSingle Stage to Orbit
     ||       `* Re: VMS Software Q1 '23 UpdateDave Froble
     |`- Re: VMS Software Q1 '23 UpdateIan Miller
     +* Re: VMS Software Q1 '23 UpdateCraig A. Berry
     +- Re: VMS Software Q1 '23 UpdateArne Vajhøj
     +* Re: VMS Software Q1 '23 UpdateArne Vajhøj
     `- Re: VMS Software Q1 '23 UpdateArne Vajhøj

Pages:123456
Re: VMS Software Q1 '23 Update

<tr6j2l$2s9rm$4@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Sun, 29 Jan 2023 14:57:09 -0500
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <tr6j2l$2s9rm$4@dont-email.me>
References: <tr6dje$2s9rm$1@dont-email.me>
<memo.20230129194144.24676H@jgd.cix.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 29 Jan 2023 19:57:09 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="85c94694e2923b280908bdfbe0b5f4f1";
logging-data="3024758"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+fmwQ23HBGdpJSbqMtTBPjncNiUh+nDZw="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:2lfjYkQWJXU6/F3o+r2/RlXliiY=
Content-Language: en-US
In-Reply-To: <memo.20230129194144.24676H@jgd.cix.co.uk>
 by: Arne Vajhøj - Sun, 29 Jan 2023 19:57 UTC

On 1/29/2023 2:41 PM, John Dallman wrote:
> In article <tr6dje$2s9rm$1@dont-email.me>, arne@vajhoej.dk (Arne Vajhøj)
> wrote:
>> Didn't VAX to Alpha migration cause some issues with D floating?
>>
>> If I remember correct then Alpha did not fully support D.
>
> It didn't support D at all,

I thought it could:
- load D from memory
- convert from D to G
- do G math
- convert back from G to D
- store D in memory

Arne

Re: VMS Software Q1 '23 Update

<tr6sm1$2v21d$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Sun, 29 Jan 2023 17:41:29 -0500
Organization: A noiseless patient Spider
Lines: 95
Message-ID: <tr6sm1$2v21d$1@dont-email.me>
References: <tr6dje$2s9rm$1@dont-email.me>
<memo.20230129194144.24676H@jgd.cix.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 29 Jan 2023 22:41:05 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="bc31521357dd02b4d8b97df8b8273f59";
logging-data="3115053"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NdR4D7krxZWozgf56PPT3zydcTwlYxNY="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:nrmWWuEBCelHqoXHNntRXWvn/6I=
In-Reply-To: <memo.20230129194144.24676H@jgd.cix.co.uk>
 by: Dave Froble - Sun, 29 Jan 2023 22:41 UTC

On 1/29/2023 2:41 PM, John Dallman wrote:
> In article <tr6dje$2s9rm$1@dont-email.me>, arne@vajhoej.dk (Arne Vajhøj)
> wrote:
>
>> Didn't VAX to Alpha migration cause some issues with D floating?
>>
>> If I remember correct then Alpha did not fully support D.
>
> It didn't support D at all, as best I know. VAX had:
>
> F format is 32-bit single-precision, with 8 exponent bits, 1 sign bit,
> and 23 fraction bits, approximately plus or minus 2.9E-39 to plus or
> minus 1.7E+38, with a precision of approximately seven decimal digits.
> The exponent bias is 128. This format was carried forwards into Alpha.
>
> D format is double-precision, with 8 exponent bits, 1 sign bit, and 55
> fraction bits, approximately plus or minus 2.9E-39 to plus or minus
> 1.7E+38, with a precision of approximately 16 decimal digits. It's F
> format with more precision, but no more range. This format was not
> carried forwards into Alpha, and does not seem to have been much used.
>
> G format is also double-precision, with 11 exponent bits, 1 sign bit, and
> 52 fraction bits, approximately plus or minus 5.6E-309 to plus or minus
> 0.9E+308, with a precision of approximately 15 decimal digits. The
> exponent has a bias of 1,024 (not 128). This format was carried forwards
> into Alpha.
>
> H format is quad-precision, with 15 exponent bits, 1 sign bit, and 112
> fraction bits, approximately plus or minus 8.4E-4933 to plus or minus
> 5.9E+4931, with a precision of approximately 33 decimal digits. The
> exponent has a bias of 16,384 (not 1024). This format was not carried
> forwards into Alpha, although the similar 128-bit X format was provided
> there.
>
> Alpha also had S-format, IEEE single-precision which is similar to F but
> not the same, and T format, IEEE double precision, which is similar to G,
> but likewise not the same. The IEEE formats differ in their exponent
> biases.
>
> S format is 32-bit single-precision, with 8 exponent bits, 1 sign bit,
> and 23 fraction bits, approximately plus or minus 1.18E-39 to plus or
> minus 3.4E+38, with a precision of approximately seven decimal digits.
> The exponent bias is 127, not 128.
>
> T format is double-precision, with 11 exponent bits, 1 sign bit, and 52
> fraction bits, approximately plus or minus 2.2E-308 to plus or minus
> 1.8E+308, with a precision of approximately 16 decimal digits. The
> exponent has a bias of 1,023, not 1,024.
>
> This is summarised from
>
> <https://nssdc.gsfc.nasa.gov/nssdc/formats/VAXFloatingPoint.htm>
>
> John
>

Hmmmm ......

My AlphaServer 800:

AS800> syh
OpenVMS V8.3 on node AS800 29-JAN-2023 17:36:30.33 Uptime 132 06:18:03

Basic help mentions ...

DATA_TYPES

REAL

Floating-point values are stored using a signed exponent and a binary
fraction. BASIC allows six floating-point formats: single, double,
gfloat, sfloat, tfloat, and xfloat. These formats correspond to the
SINGLE, DOUBLE, GFLOAT, SFLOAT, TFLOAT, and XFLOAT keywords.

Keyword Range Precision

SINGLE (32-bit) .29 * 10^-38 to 1.7 * 10^38 6 digits
DOUBLE (64-bit) .29 * 10^-38 to 1.7 * 10^38 16 digits
GFLOAT (64-bit) .56 * 10^-308 to .90 * 10^308 15 digits
SFLOAT (32-bit) 1.18 * 10^-38 to 3.40 * 10^38 6 digits
TFLOAT (64-bit) 2.23 * 10^-308 to 1.80 * 10^308 15 digits
XFLOAT (128-bit) 6.48 * 10^-4966 to 1.19 * 10^4932 33 digits

Now, it has been my impression that that DOUBLE is D-float.

Walks like a D-float
Quacks like a D-float
Is it a D-float?

--
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 Software Q1 '23 Update

<tr72b6$2vvvr$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Sun, 29 Jan 2023 19:17:43 -0500
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <tr72b6$2vvvr$1@dont-email.me>
References: <tr6dje$2s9rm$1@dont-email.me>
<memo.20230129194144.24676H@jgd.cix.co.uk> <tr6sm1$2v21d$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Jan 2023 00:17:42 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="125ead8a52c6fc8c4f4e8e860f0fe2b6";
logging-data="3145723"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2fS1Zv+2Qi/8GyVIeIzpS/ysWAoM6l0s="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:eisAo4UZQKP5Ty8+bTUGtg4Ke0Q=
In-Reply-To: <tr6sm1$2v21d$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Mon, 30 Jan 2023 00:17 UTC

On 1/29/2023 5:41 PM, Dave Froble wrote:
> On 1/29/2023 2:41 PM, John Dallman wrote:
>> In article <tr6dje$2s9rm$1@dont-email.me>, arne@vajhoej.dk (Arne Vajhøj)
>> wrote:
>>> Didn't VAX to Alpha migration cause some issues with D floating?
>>>
>>> If I remember correct then Alpha did not fully support D.
>>
>> It didn't support D at all, as best I know. VAX had:

>> D format is double-precision, with 8 exponent bits, 1 sign bit, and 55
>> fraction bits, approximately plus or minus 2.9E-39 to plus or minus
>> 1.7E+38, with a precision of approximately 16 decimal digits. It's F
>> format with more precision, but no more range. This format was not
>> carried forwards into Alpha, and does not seem to have been much used.
>>
>> G format is also double-precision, with 11 exponent bits, 1 sign bit, and
>> 52 fraction bits, approximately plus or minus 5.6E-309 to plus or minus
>> 0.9E+308, with a precision of approximately 15 decimal digits. The
>> exponent has a bias of 1,024 (not 128). This format was carried forwards
>> into Alpha.

>      gfloat, sfloat, tfloat, and xfloat.  These  formats  correspond
> to  the
>      SINGLE, DOUBLE, GFLOAT, SFLOAT, TFLOAT, and XFLOAT keywords.
>
>      Keyword             Range                                  Precision

>      DOUBLE (64-bit)    .29 * 10^-38 to 1.7 * 10^38             16 digits
>      GFLOAT (64-bit)    .56 * 10^-308 to .90 * 10^308           15 digits

> Now, it has been my impression that that DOUBLE is D-float.
>
> Walks like a D-float
> Quacks like a D-float
> Is it a D-float?

Good question.

It can certainly take D float as input and provide D float
as output.

The question is how.

The Alpha architecture manual says that it only
supports:
- load D from memory
- convert from D to G
- do G math
- convert back from G to D
- store D in memory
which sort of operate on D float but loose 3 bits precision.

The alternative is software emulation, which will be able to do VAX
compatible D math but at a speed cost.

So either hardware G math loosing 3 bits of precision (which is what
I assume when I asked the question above) or software full D math.

Arne

Re: VMS Software Q1 '23 Update

<tr72oa$2vvvr$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Sun, 29 Jan 2023 19:24:43 -0500
Organization: A noiseless patient Spider
Lines: 69
Message-ID: <tr72oa$2vvvr$2@dont-email.me>
References: <tr6dje$2s9rm$1@dont-email.me>
<memo.20230129194144.24676H@jgd.cix.co.uk> <tr6sm1$2v21d$1@dont-email.me>
<tr72b6$2vvvr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Jan 2023 00:24:42 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="125ead8a52c6fc8c4f4e8e860f0fe2b6";
logging-data="3145723"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19faHkQBx4r3hZPynhyNh4jivZu+QAPQOE="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:seFCoi9HXjPnm60xB63ECBWCuV4=
Content-Language: en-US
In-Reply-To: <tr72b6$2vvvr$1@dont-email.me>
 by: Arne Vajhøj - Mon, 30 Jan 2023 00:24 UTC

On 1/29/2023 7:17 PM, Arne Vajhøj wrote:
> On 1/29/2023 5:41 PM, Dave Froble wrote:
>>       gfloat, sfloat, tfloat, and xfloat.  These  formats  correspond
>> to  the
>>       SINGLE, DOUBLE, GFLOAT, SFLOAT, TFLOAT, and XFLOAT keywords.
>>
>>       Keyword             Range
>> Precision
>
>>       DOUBLE (64-bit)    .29 * 10^-38 to 1.7 * 10^38             16
>> digits
>>       GFLOAT (64-bit)    .56 * 10^-308 to .90 * 10^308           15
>> digits
>
>> Now, it has been my impression that that DOUBLE is D-float.
>>
>> Walks like a D-float
>> Quacks like a D-float
>> Is it a D-float?
>
> Good question.
>
> It can certainly take D float as input and provide D float
> as output.
>
> The question is how.
>
> The Alpha architecture manual says that it only
> supports:
> - load D from memory
> - convert from D to G
> - do G math
> - convert back from G to D
> - store D in memory
> which sort of operate on D float but loose 3 bits precision.
>
> The alternative is software emulation, which will be able to do VAX
> compatible D math but at a speed cost.
>
> So either hardware G math loosing 3 bits of precision (which is what
> I assume when I asked the question above) or software full D math.

Experiment:

$ type d.bas
program d

declare double x, y, z

x = 12.34
y = 45.67
z = x + y

print z

end program
$ bas/noop/list/mach d
$ sear d.lis cvtdg,addg,cvtgd
57EA13CA 0060 CVTDG F10, F10
57EB13CB 0068 CVTDG F11, F11
554B140A 0070 ADDG F10, F11, F10
57EA15AA 0074 CVTGD F10, F10

Looks like G math to me.

(it does something smart with /OPT so that is why the /NOOP is used)

Arne

Re: VMS Software Q1 '23 Update

<tr72v8$2vvvs$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Sun, 29 Jan 2023 19:28:25 -0500
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <tr72v8$2vvvs$1@dont-email.me>
References: <tr6dje$2s9rm$1@dont-email.me>
<memo.20230129194144.24676H@jgd.cix.co.uk> <tr6sm1$2v21d$1@dont-email.me>
<tr72b6$2vvvr$1@dont-email.me> <tr72oa$2vvvr$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Jan 2023 00:28:24 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="125ead8a52c6fc8c4f4e8e860f0fe2b6";
logging-data="3145724"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9efV+24wuYjkuH8oPluLFeU9eSnC4jgo="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:6olJanA6E2rv8UOzqo9pc/2TSdE=
Content-Language: en-US
In-Reply-To: <tr72oa$2vvvr$2@dont-email.me>
 by: Arne Vajhøj - Mon, 30 Jan 2023 00:28 UTC

On 1/29/2023 7:24 PM, Arne Vajhøj wrote:
> Experiment:
>
> $ type d.bas
> program d
>
> declare double x, y, z
>
> x = 12.34
> y =  45.67
> z = x + y
>
> print z
>
> end program
> $ bas/noop/list/mach d
> $ sear d.lis cvtdg,addg,cvtgd
> 57EA13CA     0060               CVTDG   F10, F10
> 57EB13CB     0068               CVTDG   F11, F11
> 554B140A     0070               ADDG    F10, F11, F10
> 57EA15AA     0074               CVTGD   F10, F10
>
> Looks like G math to me.
>
> (it does something smart with /OPT so that is why the /NOOP is used)

To prevent the compiler from being smart:

$ type dd.bas
function double add(double x, double y)

add = x + y

end function
$ bas/list/mach dd
$ sear dd.lis cvtdg,addg,cvtgd
57E013C0 00A0 CVTDG F0, F0
57E113C1 00B0 CVTDG F1, F1
54011400 00B4 ADDG F0, F1, F0
57E015A2 00B8 CVTGD F0, ADD
; F0, F2

Arne

Re: VMS Software Q1 '23 Update

<tr7ga9$35007$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Sun, 29 Jan 2023 23:16:33 -0500
Organization: A noiseless patient Spider
Lines: 79
Message-ID: <tr7ga9$35007$1@dont-email.me>
References: <tr6dje$2s9rm$1@dont-email.me>
<memo.20230129194144.24676H@jgd.cix.co.uk> <tr6sm1$2v21d$1@dont-email.me>
<tr72b6$2vvvr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Jan 2023 04:16:09 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="6f9f8fe26075587abcde7a2438a00f67";
logging-data="3309575"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+M6KASYX4eDEJMwTNeyZeHomCOka4noGc="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:do82bJu2ezmrzaFyEsZvLVT5l0A=
In-Reply-To: <tr72b6$2vvvr$1@dont-email.me>
 by: Dave Froble - Mon, 30 Jan 2023 04:16 UTC

On 1/29/2023 7:17 PM, Arne Vajhøj wrote:
> On 1/29/2023 5:41 PM, Dave Froble wrote:
>> On 1/29/2023 2:41 PM, John Dallman wrote:
>>> In article <tr6dje$2s9rm$1@dont-email.me>, arne@vajhoej.dk (Arne Vajhøj)
>>> wrote:
>>>> Didn't VAX to Alpha migration cause some issues with D floating?
>>>>
>>>> If I remember correct then Alpha did not fully support D.
>>>
>>> It didn't support D at all, as best I know. VAX had:
>
>>> D format is double-precision, with 8 exponent bits, 1 sign bit, and 55
>>> fraction bits, approximately plus or minus 2.9E-39 to plus or minus
>>> 1.7E+38, with a precision of approximately 16 decimal digits. It's F
>>> format with more precision, but no more range. This format was not
>>> carried forwards into Alpha, and does not seem to have been much used.
>>>
>>> G format is also double-precision, with 11 exponent bits, 1 sign bit, and
>>> 52 fraction bits, approximately plus or minus 5.6E-309 to plus or minus
>>> 0.9E+308, with a precision of approximately 15 decimal digits. The
>>> exponent has a bias of 1,024 (not 128). This format was carried forwards
>>> into Alpha.
>
>> gfloat, sfloat, tfloat, and xfloat. These formats correspond to the
>> SINGLE, DOUBLE, GFLOAT, SFLOAT, TFLOAT, and XFLOAT keywords.
>>
>> Keyword Range Precision
>
>> DOUBLE (64-bit) .29 * 10^-38 to 1.7 * 10^38 16 digits
>> GFLOAT (64-bit) .56 * 10^-308 to .90 * 10^308 15 digits
>
>> Now, it has been my impression that that DOUBLE is D-float.
>>
>> Walks like a D-float
>> Quacks like a D-float
>> Is it a D-float?
>
> Good question.
>
> It can certainly take D float as input and provide D float
> as output.
>
> The question is how.
>
> The Alpha architecture manual says that it only
> supports:
> - load D from memory
> - convert from D to G
> - do G math
> - convert back from G to D
> - store D in memory
> which sort of operate on D float but loose 3 bits precision.

Correct, that is how it's provided.

> The alternative is software emulation, which will be able to do VAX
> compatible D math but at a speed cost.

Would you think it would do better than the loss of the 3 bits? Not an issue
most of the time. However, I'm aware of a few instances where things aren't so
good. I seem to recall the 5.9 to 6.0 range having an issue.

But, it was rather nice to move massive amounts of data from a VAX and have it
"just work" on Alpha.

> So either hardware G math loosing 3 bits of precision (which is what
> I assume when I asked the question above) or software full D math.
>
> Arne
>
>

--
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 Software Q1 '23 Update

<tr9nfe$pl7$1@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Tue, 31 Jan 2023 01:30:37 +0100
Organization: MGT Consulting
Message-ID: <tr9nfe$pl7$1@news.misty.com>
References: <tq8dgc$r4km$1@dont-email.me> <tqp7bm$871q$1@dont-email.me>
<tqpg77$9pjt$1@dont-email.me> <tqpp85$badl$1@dont-email.me>
<tqrm2c$o1tk$1@dont-email.me> <tqrmpk$o1tk$2@dont-email.me>
<tqrrie$p41u$1@dont-email.me>
<092a42c6-b610-4dd8-8e94-68647c279c7bn@googlegroups.com>
<tqsar7$rhss$1@dont-email.me>
<9e3d2b85-b0b8-47c7-9f73-fda3a10c534bn@googlegroups.com>
<tqsf7p$s7a0$1@dont-email.me>
<660be03d-246e-423c-a2b3-36c54d3759a4n@googlegroups.com>
<tqsivt$srer$1@dont-email.me> <k3e21sF25rU1@mid.individual.net>
<tqtubd$16nj8$1@dont-email.me> <tquavs$18vru$1@dont-email.me>
<9f8f3187a0039369ecb14b934c0a399dce41fe28.camel@munted.eu>
<tquhac$19r40$1@dont-email.me> <tr162i$1q43n$3@dont-email.me>
<tr1r6f$1tk7m$3@dont-email.me>
<435dd522-c85e-4a46-9ba5-9a33c857d7ffn@googlegroups.com>
<tr3bd5$28ikb$2@dont-email.me>
<4a295979-2ac5-43f6-8017-01e6e2458304n@googlegroups.com>
<tr47v2$2dje6$1@dont-email.me> <tr4aii$7ba$1@news.misty.com>
<tr4ee9$2egm5$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 00:30:38 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="26279"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.13.1
Content-Language: en-US
In-Reply-To: <tr4ee9$2egm5$1@dont-email.me>
 by: Johnny Billquist - Tue, 31 Jan 2023 00:30 UTC

On 2023-01-29 01:25, Arne Vajhøj wrote:

> I am not sure that I get your point.
>
> This is how rounding of money works.
>
> Software that operate on money needs to implement
> the rules.
>
> Same reason that good rounding supports different
> rounding mode: UP (round .5 up), EVEN (round .5 to
> even) etc.. Different places has different rules and
> the software need to implement those.

I think it's very important to differentiate between comparison between
two floating point numbers for equality, and the question if two
monetary amounts would round to the same value.

These are two different things.

For the latter, I would first perform the correct rounding for both
values, and then again do a comparison between the two resulting values,
which if stored as floating point, needs to be close enough to each
other to be considered equal.

Johnny

Re: VMS Software Q1 '23 Update

<tr9ni7$3gkj3$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Mon, 30 Jan 2023 19:32:08 -0500
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <tr9ni7$3gkj3$1@dont-email.me>
References: <tr6dje$2s9rm$1@dont-email.me>
<memo.20230129194144.24676H@jgd.cix.co.uk> <tr6sm1$2v21d$1@dont-email.me>
<tr72b6$2vvvr$1@dont-email.me> <tr7ga9$35007$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 00:32:07 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="a71637be7c23ac0899f2dd1483c9b710";
logging-data="3691107"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FRv6jhPpluitB90VlMqQpiYkW7zl/UMU="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:tHGVgWoNtiOXipPBeHiD4NSAooI=
Content-Language: en-US
In-Reply-To: <tr7ga9$35007$1@dont-email.me>
 by: Arne Vajhøj - Tue, 31 Jan 2023 00:32 UTC

On 1/29/2023 11:16 PM, Dave Froble wrote:
> On 1/29/2023 7:17 PM, Arne Vajhøj wrote:
>> The Alpha architecture manual says that it only
>> supports:
>> - load D from memory
>> - convert from D to G
>> - do G math
>> - convert back from G to D
>> - store D in memory
>> which sort of operate on D float but loose 3 bits precision.
>
> Correct, that is how it's provided.
>
>> The alternative is software emulation, which will be able to do VAX
>> compatible D math but at a speed cost.
>
> Would you think it would do better than the loss of the 3 bits?  Not an
> issue most of the time.  However,  I'm aware of a few instances where
> things aren't so good.  I seem to recall the 5.9 to 6.0 range having an
> issue.

I wonder what Basic on Itanium does and what Basic on x86-64 does / will do.

Convert to T and do T math? Or software emulation?

> But, it was rather nice to move massive amounts of data from a VAX and
> have it "just work" on Alpha.

VMS got a pretty good track record for not breaking things.

Hoff would say *too* good a track record, but ...

Arne

Re: VMS Software Q1 '23 Update

<tr9nld$pl7$2@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Tue, 31 Jan 2023 01:33:49 +0100
Organization: MGT Consulting
Message-ID: <tr9nld$pl7$2@news.misty.com>
References: <tq8dgc$r4km$1@dont-email.me> <tqpg77$9pjt$1@dont-email.me>
<tqpp85$badl$1@dont-email.me> <tqrm2c$o1tk$1@dont-email.me>
<tqrmpk$o1tk$2@dont-email.me> <tqrrie$p41u$1@dont-email.me>
<092a42c6-b610-4dd8-8e94-68647c279c7bn@googlegroups.com>
<tqsar7$rhss$1@dont-email.me>
<9e3d2b85-b0b8-47c7-9f73-fda3a10c534bn@googlegroups.com>
<tqsf7p$s7a0$1@dont-email.me>
<660be03d-246e-423c-a2b3-36c54d3759a4n@googlegroups.com>
<tqsivt$srer$1@dont-email.me> <k3e21sF25rU1@mid.individual.net>
<tqtubd$16nj8$1@dont-email.me> <tquavs$18vru$1@dont-email.me>
<9f8f3187a0039369ecb14b934c0a399dce41fe28.camel@munted.eu>
<tquhac$19r40$1@dont-email.me> <tr162i$1q43n$3@dont-email.me>
<tr1r6f$1tk7m$3@dont-email.me>
<435dd522-c85e-4a46-9ba5-9a33c857d7ffn@googlegroups.com>
<tr3bd5$28ikb$2@dont-email.me>
<4a295979-2ac5-43f6-8017-01e6e2458304n@googlegroups.com>
<tr47v2$2dje6$1@dont-email.me> <tr4hd3$2ffm6$1@dont-email.me>
<tr4ibv$2egm5$2@dont-email.me> <tr61gi$2q3dq$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 00:33:49 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="26279"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.13.1
Content-Language: en-US
In-Reply-To: <tr61gi$2q3dq$2@dont-email.me>
 by: Johnny Billquist - Tue, 31 Jan 2023 00:33 UTC

On 2023-01-29 15:57, Simon Clubley wrote:
> On 2023-01-28, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>
>> I find it hard to see why one would bother with the risks
>> of using floating point if a decimal type is available.
>>
>> VMS Basic has a decimal type.
>>
>
> Did RSTS/E Basic ever get a decimal data type, and if so, when ?
>
> PDP-11 DIBOL had a decimal data type, but I don't know when DIBOL
> was introduced to the PDP-11 (ie: was it _after_ David started
> using RSTS/E Basic ?)

RSTS/E BASIC never had fancy data types, however for money calculations,
you usually used strings, and the string math functions, which were exact.

Another option would have been to use fixed point, of course. But since
integers in BASIC+ only were 16 bit, it usually wasn't an option there.

String math really was the thing for financial stuff in BASIC.

Johnny

Re: VMS Software Q1 '23 Update

<tr9nqo$pl7$3@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Tue, 31 Jan 2023 01:36:40 +0100
Organization: MGT Consulting
Message-ID: <tr9nqo$pl7$3@news.misty.com>
References: <tq8dgc$r4km$1@dont-email.me>
<660be03d-246e-423c-a2b3-36c54d3759a4n@googlegroups.com> <tqsivt$srer$
<tr4hgr$2ffm6$2@dont-email.me> <tr4i45$80t$1@panix2.panix.com>
<tr4pp3$2jk4s$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 00:36:40 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="26279"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.13.1
Content-Language: en-US
In-Reply-To: <tr4pp3$2jk4s$1@dont-email.me>
 by: Johnny Billquist - Tue, 31 Jan 2023 00:36 UTC

On 2023-01-29 04:39, Dave Froble wrote:
> On 1/28/2023 8:28 PM, Scott Dorsey wrote:
>>> On 1/28/2023 6:19 PM, Johnny Billquist wrote:
>>>> On 2023-01-28 23:35, Arne Vajhøj wrote:
>>>>> On 1/28/2023 3:01 PM, Steven Schweda wrote:
>>>>>>> Consider the case where the numbers represent money.
>>>>>>
>>>>>>     Who cares what the numbers represent?  For example, if you
>>>>>> round to
>>
>> One of the absolute FIRST things that I was told about floating point
>> variables in my first programming class was to NEVER use them to
>> represent
>> money.
>> --scott
>>
>
> What if you didn't have a choice?
>
> RSTS/E V04b
>
> Signed word integers
> Strings
> Single and double D-float
>
> That's all there was ...

BASIC2

help fun b sum

FUNCTIONS

BUILT-IN

SUM$

The SUM$ function returns a string whose value is the sum of two numeric
strings.

Format

str-vbl = SUM$(str-exp1, str-exp2)

Example

600 Sigma$ = SUM$("234.444", A$)

Topic?

Johnny

Re: VMS Software Q1 '23 Update

<tr9nvd$pl7$4@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Tue, 31 Jan 2023 01:39:09 +0100
Organization: MGT Consulting
Message-ID: <tr9nvd$pl7$4@news.misty.com>
References: <tq8dgc$r4km$1@dont-email.me>
<660be03d-246e-423c-a2b3-36c54d3759a4n@googlegroups.com> <tqsivt$srer$
<tr4hgr$2ffm6$2@dont-email.me> <tr4i45$80t$1@panix2.panix.com>
<tr4pp3$2jk4s$1@dont-email.me> <tr4q3f$2jlld$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 00:39:09 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="26279"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.13.1
Content-Language: en-US
In-Reply-To: <tr4q3f$2jlld$1@dont-email.me>
 by: Johnny Billquist - Tue, 31 Jan 2023 00:39 UTC

On 2023-01-29 04:44, Arne Vajhøj wrote:
> On 1/28/2023 10:39 PM, Dave Froble wrote:
>> On 1/28/2023 8:28 PM, Scott Dorsey wrote:
>>> One of the absolute FIRST things that I was told about floating point
>>> variables in my first programming class was to NEVER use them to
>>> represent
>>> money.
>>
>> What if you didn't have a choice?
>>
>> RSTS/E V04b
>>
>> Signed word integers
>> Strings
>> Single and double D-float
>>
>> That's all there was ...
>
> There is always integers and implied decimal.
>
> Not fun though.
>
> And one need an integer with enough bits ...
>
> Could PDP-11 do 32 bit integers?

Slightly wrong question. Of course the machine could do 32-bit integers,
or any other number of bits, if you want to. But the question really is
about the language you use, and how much effort it is.

RSTS/E BASIC+ do not have 32-bit integers. But it do have string math.

I can't remember the limit, but I think it's something like 31 decimal
digits. Which should be plenty for everyone.

Johnny

Re: VMS Software Q1 '23 Update

<tr9o65$qfm$1@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Tue, 31 Jan 2023 01:42:44 +0100
Organization: MGT Consulting
Message-ID: <tr9o65$qfm$1@news.misty.com>
References: <tq8dgc$r4km$1@dont-email.me>
<660be03d-246e-423c-a2b3-36c54d3759a4n@googlegroups.com> <tqsivt$srer$
<tr4hgr$2ffm6$2@dont-email.me> <tr4i45$80t$1@panix2.panix.com>
<tr4pp3$2jk4s$1@dont-email.me> <tr4q3f$2jlld$1@dont-email.me>
<tr538n$2l4tu$1@dont-email.me> <tr5tjr$2pjrn$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 00:42:45 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="27126"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.13.1
Content-Language: en-US
In-Reply-To: <tr5tjr$2pjrn$1@dont-email.me>
 by: Johnny Billquist - Tue, 31 Jan 2023 00:42 UTC

On 2023-01-29 14:50, Arne Vajhøj wrote:
> On 1/29/2023 1:21 AM, Dave Froble wrote:
>> On 1/28/2023 10:44 PM, Arne Vajhøj wrote:
>>> On 1/28/2023 10:39 PM, Dave Froble wrote:
>>>> On 1/28/2023 8:28 PM, Scott Dorsey wrote:
>>>>> One of the absolute FIRST things that I was told about floating point
>>>>> variables in my first programming class was to NEVER use them to
>>>>> represent
>>>>> money.
>>>>
>>>> What if you didn't have a choice?
>>>>
>>>> RSTS/E V04b
>>>>
>>>> Signed word integers
>>>> Strings
>>>> Single and double D-float
>>>>
>>>> That's all there was ...
>>>
>>> There is always integers and implied decimal.
>>>
>>> Not fun though.
>>>
>>> And one need an integer with enough bits ...
>>>
>>> Could PDP-11 do 32 bit integers?
>>
>> What part of "signed word integers" didn't you understand?  As in 16
>> bits. -32768 to 32767.
>
> I sort of had guessed that word was the same as on VAX,
> but I don't understand how it can't have a 32 bit integer.

BASIC+ do not have much of a type system in general. You imply the types
by appending $, % or nothing, for string, integer or float. That's about
it. You cannot declare variables to be of specific, or other types.

But the PDP-11 as such can of course do 32-bit math.

> How does one work with file sizes and file position
> in bytes on PDP-11?

It depends on the OS and language.

> I know you don't do C, but I believe C was invented on
> PDP-11.

Correct. And yes, you do have long there.

Johnny

Re: VMS Software Q1 '23 Update

<tr9obf$qfm$2@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Tue, 31 Jan 2023 01:45:35 +0100
Organization: MGT Consulting
Message-ID: <tr9obf$qfm$2@news.misty.com>
References: <tr6dje$2s9rm$1@dont-email.me>
<memo.20230129194144.24676H@jgd.cix.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 00:45:35 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="27126"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.13.1
Content-Language: en-US
In-Reply-To: <memo.20230129194144.24676H@jgd.cix.co.uk>
 by: Johnny Billquist - Tue, 31 Jan 2023 00:45 UTC

On 2023-01-29 20:40, John Dallman wrote:
> In article <tr6dje$2s9rm$1@dont-email.me>, arne@vajhoej.dk (Arne Vajhøj)
> wrote:
>
>> Didn't VAX to Alpha migration cause some issues with D floating?
>>
>> If I remember correct then Alpha did not fully support D.
>
> It didn't support D at all, as best I know. VAX had:

[...]

F and D format are compatible with the PDP-11.

Johnny

Re: VMS Software Q1 '23 Update

<tr9opp$3gkj2$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Mon, 30 Jan 2023 19:53:13 -0500
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <tr9opp$3gkj2$1@dont-email.me>
References: <tq8dgc$r4km$1@dont-email.me> <tqpp85$badl$1@dont-email.me>
<tqrm2c$o1tk$1@dont-email.me> <tqrmpk$o1tk$2@dont-email.me>
<tqrrie$p41u$1@dont-email.me>
<092a42c6-b610-4dd8-8e94-68647c279c7bn@googlegroups.com>
<tqsar7$rhss$1@dont-email.me>
<9e3d2b85-b0b8-47c7-9f73-fda3a10c534bn@googlegroups.com>
<tqsf7p$s7a0$1@dont-email.me>
<660be03d-246e-423c-a2b3-36c54d3759a4n@googlegroups.com>
<tqsivt$srer$1@dont-email.me> <k3e21sF25rU1@mid.individual.net>
<tqtubd$16nj8$1@dont-email.me> <tquavs$18vru$1@dont-email.me>
<9f8f3187a0039369ecb14b934c0a399dce41fe28.camel@munted.eu>
<tquhac$19r40$1@dont-email.me> <tr162i$1q43n$3@dont-email.me>
<tr1r6f$1tk7m$3@dont-email.me>
<435dd522-c85e-4a46-9ba5-9a33c857d7ffn@googlegroups.com>
<tr3bd5$28ikb$2@dont-email.me>
<4a295979-2ac5-43f6-8017-01e6e2458304n@googlegroups.com>
<tr47v2$2dje6$1@dont-email.me> <tr4hd3$2ffm6$1@dont-email.me>
<tr4ibv$2egm5$2@dont-email.me> <tr61gi$2q3dq$2@dont-email.me>
<tr9nld$pl7$2@news.misty.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 00:53:13 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="a71637be7c23ac0899f2dd1483c9b710";
logging-data="3691106"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XuOX+PZoViSk+khbDZPbSahoRFmRwUrc="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:inhDAg8inYIKqsERR2uc5AobUpI=
Content-Language: en-US
In-Reply-To: <tr9nld$pl7$2@news.misty.com>
 by: Arne Vajhøj - Tue, 31 Jan 2023 00:53 UTC

On 1/30/2023 7:33 PM, Johnny Billquist wrote:
> On 2023-01-29 15:57, Simon Clubley wrote:
>> On 2023-01-28, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>> VMS Basic has a decimal type.
>>
>> Did RSTS/E Basic ever get a decimal data type, and if so, when ?

> RSTS/E BASIC never had fancy data types, however for money calculations,
> you usually used strings, and the string math functions, which were exact.

> String math really was the thing for financial stuff in BASIC.

A funny note. PHP still supports that method!

<?php
bcscale(21);
$x = '100000000000000000000.000000000000000000001';
$y = '200000000000000000000.000000000000000000002';
$z = bcadd($x, $y);
echo $z;
?>

outputs:

300000000000000000000.000000000000000000003

Arne

Re: VMS Software Q1 '23 Update

<tr9p1h$riq$1@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Tue, 31 Jan 2023 01:57:20 +0100
Organization: MGT Consulting
Message-ID: <tr9p1h$riq$1@news.misty.com>
References: <tq8dgc$r4km$1@dont-email.me>
<660be03d-246e-423c-a2b3-36c54d3759a4n@googlegroups.com>
<tr4hgr$2ffm6$2@dont-email.me> <tr4i45$80t$1@panix2.panix.com>
<tr4pp3$2jk4s$1@dont-email.me> <tr4q3f$2jlld$1@dont-email.me>
<tr538n$2l4tu$1@dont-email.me> <tr5tjr$2pjrn$1@dont-email.me>
<tr6161$2q3dq$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 00:57:21 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="28250"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.13.1
Content-Language: en-US
In-Reply-To: <tr6161$2q3dq$1@dont-email.me>
 by: Johnny Billquist - Tue, 31 Jan 2023 00:57 UTC

On 2023-01-29 15:51, Simon Clubley wrote:
> On 2023-01-29, Arne Vajhøj <arne@vajhoej.dk> wrote:
>> On 1/29/2023 1:21 AM, Dave Froble wrote:
>>> On 1/28/2023 10:44 PM, Arne Vajhøj wrote:
>>>> On 1/28/2023 10:39 PM, Dave Froble wrote:
>>>>> On 1/28/2023 8:28 PM, Scott Dorsey wrote:
>>>>>> One of the absolute FIRST things that I was told about floating point
>>>>>> variables in my first programming class was to NEVER use them to
>>>>>> represent
>>>>>> money.
>>>>>
>>>>> What if you didn't have a choice?
>>>>>
>>>>> RSTS/E V04b
>>>>>
>>>>> Signed word integers
>>>>> Strings
>>>>> Single and double D-float
>>>>>
>>>>> That's all there was ...
>>>>
>>>> There is always integers and implied decimal.
>>>>
>>>> Not fun though.
>>>>
>>>> And one need an integer with enough bits ...
>>>>
>>>> Could PDP-11 do 32 bit integers?
>>>
>>> What part of "signed word integers" didn't you understand?  As in 16
>>> bits. -32768 to 32767.
>>
>> I sort of had guessed that word was the same as on VAX,
>> but I don't understand how it can't have a 32 bit integer.
>>
>> How does one work with file sizes and file position
>> in bytes on PDP-11?
>>
>
> The same way as it's done with a block-based filesystem (ODS-2) on VMS.

If you look at the QIO functions to F11ACP in RSX, the block number take
two parameters, in order to be 32 bits. Fields in RMS structures are
simply just 32 bits where needed, if you deal at it at that level.

> In general, the 16-bit nature of the PDP-11 is reflected in the API.

Not sure which API you are referring to here. The QIO interface
obviously have just 16-bit wide arguments, so something like the block
number needs to parameter values for the full 32 bits.
Most other APIs (such as FCS or RMS) just define 32-bit values where needed.

> Ever worked with real-mode MS-DOS at assembly language level ?
>
> It's the same kind of thing.

No. Not at all comparable. The PDP-11 is rather different than the x86.
There was never far pointers, segment registers, or all the weird stuff
of MS-DOS.

>> I know you don't do C, but I believe C was invented on
>> PDP-11.
>>
>
> What makes you think that "int" in C is _always_ at least 32 bits ? :-)
>
> There's a reason why both int and long int have always existed in C.
>
> And on architectures that do not support 32-bit ints, then long int is
> a library/RTL feature implemented by the language in the same way as
> 64-bit long long int is implemented by the language RTL on 32-bit
> architectures.

Um. Not necessarily. The compiler can just know how to do 32-bit
operations on a 16-bit machine, and generate the code straight off, even
if it's a bit more complex than simple 16-bit operations.

And that is what I see for PDP-11 C for example.

> Also, most languages on RSTS/E intended for commercial data processing
> also supported a decimal datatype, which was implemented by the language's
> RTL. It seems early RSTS/E Basic wasn't one of them however, based on
> what David is saying.

You could definitely argue that the numeric strings are a decimal data type.

Johnny

Re: VMS Software Q1 '23 Update

<tr9vl9$3hndp$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Mon, 30 Jan 2023 20:50:17 -0600
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <tr9vl9$3hndp$1@dont-email.me>
References: <tr6dje$2s9rm$1@dont-email.me>
<memo.20230129194144.24676H@jgd.cix.co.uk> <tr6sm1$2v21d$1@dont-email.me>
<tr72b6$2vvvr$1@dont-email.me> <tr7ga9$35007$1@dont-email.me>
<tr9ni7$3gkj3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 02:50:17 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="0b1df3d8b142a654858f784e77a1c127";
logging-data="3726777"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OM1euSaXP3yoUwLeIVMerB14eaZ3/9oU="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.6.1
Cancel-Lock: sha1:r3zafOhHmwif66+almxJ+KhC5+4=
Content-Language: en-US
In-Reply-To: <tr9ni7$3gkj3$1@dont-email.me>
 by: Craig A. Berry - Tue, 31 Jan 2023 02:50 UTC

On 1/30/23 6:32 PM, Arne Vajhøj wrote:

> I wonder what Basic on Itanium does and what Basic on x86-64 does / will
> do.
>
> Convert to T and do T math? Or software emulation?

Looks like for Itanium it's all covered here:

http://neilrieck.net/misc/pdf/vms-docs/i64-floating-pt-wp.pdf

It seems unlikely they would do anything differently for x86_64.

Re: VMS Software Q1 '23 Update

<tra07g$3kp0e$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Mon, 30 Jan 2023 22:00:00 -0500
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <tra07g$3kp0e$1@dont-email.me>
References: <tr6dje$2s9rm$1@dont-email.me>
<memo.20230129194144.24676H@jgd.cix.co.uk> <tr6sm1$2v21d$1@dont-email.me>
<tr72b6$2vvvr$1@dont-email.me> <tr7ga9$35007$1@dont-email.me>
<tr9ni7$3gkj3$1@dont-email.me> <tr9vl9$3hndp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 03:00:00 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="a71637be7c23ac0899f2dd1483c9b710";
logging-data="3826702"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GYcaUXlIYdyJOMUDeHh311VvYZgJ6eR0="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:+19gyIGnlZ+GupfGG5VqfSwpnwk=
Content-Language: en-US
In-Reply-To: <tr9vl9$3hndp$1@dont-email.me>
 by: Arne Vajhøj - Tue, 31 Jan 2023 03:00 UTC

On 1/30/2023 9:50 PM, Craig A. Berry wrote:
> On 1/30/23 6:32 PM, Arne Vajhøj wrote:
>> I wonder what Basic on Itanium does and what Basic on x86-64 does /
>> will do.
>>
>> Convert to T and do T math? Or software emulation?
>
> Looks like for Itanium it's all covered here:
>
> http://neilrieck.net/misc/pdf/vms-docs/i64-floating-pt-wp.pdf
>
> It seems unlikely they would do anything differently for x86_64.

<quote>
When you compile an OpenVMS application that specifies an option to use VAX
floating-point on the Itanium architecture, the compiler automatically
generates code for
converting floating-point formats. Whenever the application performs a
sequence of
arithmetic operations, this code does the following:
1. Converts VAX floating-point formats to either IEEE single or IEEE double
floating-point formats.
2. Performs arithmetic operations in IEEE floating-point arithmetic.
3. Converts the resulting data from IEEE formats back to VAX formats.
</quote>

Arne

Re: VMS Software Q1 '23 Update

<trb7a8$3r68c$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Tue, 31 Jan 2023 14:07:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 111
Message-ID: <trb7a8$3r68c$1@dont-email.me>
References: <tq8dgc$r4km$1@dont-email.me> <660be03d-246e-423c-a2b3-36c54d3759a4n@googlegroups.com> <tr4hgr$2ffm6$2@dont-email.me> <tr4i45$80t$1@panix2.panix.com> <tr4pp3$2jk4s$1@dont-email.me> <tr4q3f$2jlld$1@dont-email.me> <tr538n$2l4tu$1@dont-email.me> <tr5tjr$2pjrn$1@dont-email.me> <tr6161$2q3dq$1@dont-email.me> <tr9p1h$riq$1@news.misty.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 14:07:05 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="57e13141ee3f1aecd742c8c2b25a2ced";
logging-data="4036876"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Lnlj8N0ARaV1uswqTpO77yyIm4DcY60M="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:+7JJRmU93mSLLma9O6zRw6Qzq9Y=
 by: Simon Clubley - Tue, 31 Jan 2023 14:07 UTC

On 2023-01-30, Johnny Billquist <bqt@softjar.se> wrote:
> On 2023-01-29 15:51, Simon Clubley wrote:
>> On 2023-01-29, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>> On 1/29/2023 1:21 AM, Dave Froble wrote:
>>>> On 1/28/2023 10:44 PM, Arne Vajhøj wrote:
>>>>> On 1/28/2023 10:39 PM, Dave Froble wrote:
>>>>>> On 1/28/2023 8:28 PM, Scott Dorsey wrote:
>>>>>>> One of the absolute FIRST things that I was told about floating point
>>>>>>> variables in my first programming class was to NEVER use them to
>>>>>>> represent
>>>>>>> money.
>>>>>>
>>>>>> What if you didn't have a choice?
>>>>>>
>>>>>> RSTS/E V04b
>>>>>>
>>>>>> Signed word integers
>>>>>> Strings
>>>>>> Single and double D-float
>>>>>>
>>>>>> That's all there was ...
>>>>>
>>>>> There is always integers and implied decimal.
>>>>>
>>>>> Not fun though.
>>>>>
>>>>> And one need an integer with enough bits ...
>>>>>
>>>>> Could PDP-11 do 32 bit integers?
>>>>
>>>> What part of "signed word integers" didn't you understand?  As in 16
>>>> bits. -32768 to 32767.
>>>
>>> I sort of had guessed that word was the same as on VAX,
>>> but I don't understand how it can't have a 32 bit integer.
>>>
>>> How does one work with file sizes and file position
>>> in bytes on PDP-11?
>>>
>>
>> The same way as it's done with a block-based filesystem (ODS-2) on VMS.
>
> If you look at the QIO functions to F11ACP in RSX, the block number take
> two parameters, in order to be 32 bits. Fields in RMS structures are
> simply just 32 bits where needed, if you deal at it at that level.
>
>> In general, the 16-bit nature of the PDP-11 is reflected in the API.
>
> Not sure which API you are referring to here. The QIO interface
> obviously have just 16-bit wide arguments, so something like the block
> number needs to parameter values for the full 32 bits.
> Most other APIs (such as FCS or RMS) just define 32-bit values where needed.
>

The system services/syscalls/whatever they were called on PDP-11.

>> Ever worked with real-mode MS-DOS at assembly language level ?
>>
>> It's the same kind of thing.
>
> No. Not at all comparable. The PDP-11 is rather different than the x86.
> There was never far pointers, segment registers, or all the weird stuff
> of MS-DOS.
>

The reference was to having to string together 16-bit chunks of a number
into a larger value instead of just being able to directly write into a
32-bit register in 32-bit chunks.

>>> I know you don't do C, but I believe C was invented on
>>> PDP-11.
>>>
>>
>> What makes you think that "int" in C is _always_ at least 32 bits ? :-)
>>
>> There's a reason why both int and long int have always existed in C.
>>
>> And on architectures that do not support 32-bit ints, then long int is
>> a library/RTL feature implemented by the language in the same way as
>> 64-bit long long int is implemented by the language RTL on 32-bit
>> architectures.
>
> Um. Not necessarily. The compiler can just know how to do 32-bit
> operations on a 16-bit machine, and generate the code straight off, even
> if it's a bit more complex than simple 16-bit operations.
>
> And that is what I see for PDP-11 C for example.
>

It's still something that has to be implemented in the generated compiler
code instead of it being able to directly write into a 32-bit register in
32-bit chunks.

>> Also, most languages on RSTS/E intended for commercial data processing
>> also supported a decimal datatype, which was implemented by the language's
>> RTL. It seems early RSTS/E Basic wasn't one of them however, based on
>> what David is saying.
>
> You could definitely argue that the numeric strings are a decimal data type.
>

I would not disagree with that. Having never really used DEC Basic,
I had forgotten about them until you brought them up.

Did they exist back in the V4 days when David started writing his code ?

Simon.

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

Re: VMS Software Q1 '23 Update

<trbes7$3sjls$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Tue, 31 Jan 2023 11:16:08 -0500
Organization: HoffmanLabs LLC
Lines: 51
Message-ID: <trbes7$3sjls$1@dont-email.me>
References: <tr4hgr$2ffm6$2@dont-email.me> <tr4i45$80t$1@panix2.panix.com> <tr4pp3$2jk4s$1@dont-email.me> <tr4q3f$2jlld$1@dont-email.me> <tr538n$2l4tu$1@dont-email.me> <tr5tjr$2pjrn$1@dont-email.me> <tr6161$2q3dq$1@dont-email.me> <tr9p1h$riq$1@news.misty.com> <trb7a8$3r68c$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="9c3a1b5ebb35f0d5cc1e26ef32e0e2df";
logging-data="4083388"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rPnSaUoRayvkM8wLtDKVnhpD89oxRju0="
User-Agent: Unison/2.2
Cancel-Lock: sha1:/DxzJOT6/WBqAFLAhVzhBTGj0DU=
 by: Stephen Hoffman - Tue, 31 Jan 2023 16:16 UTC

On 2023-01-31 14:07:05 +0000, Simon Clubley said:

> I would not disagree with that. Having never really used DEC Basic, I
> had forgotten about them until you brought them up.
>
> Did they exist back in the V4 days when David started writing his code ?

VAX/VMS V3.x BASIC apps usually used integers, and used numeric strings
via the VAX/VMS RTLs.

At that time (IIRC), the VAX decimal instructions were only "exposed"
in COBOL and MACRO-32. And IIRC from the era of the OpenVMS port to
Alpha, it was still only COBOL and MACRO-32.

Ported a BP2 system from PDP-11 running some mutt RSX-11M/M+ SYSGEN to
VAX/VMS ~V3.2 and that eventually running DEC BASIC.

The app developer had used FP for cash all over the place. Also some
other sorts of unsavory things. And not unexpectedly, the calculations
were not working quite right. Particularly around sales tax. The
accountants and billing folks and customers were all annoyed. Though my
hat is off to the lawyer that kept sending in the corrected cash
remittance for the bad-math bill they'd been receiving.

Ended up going to integers for most of the math, and to numeric strings
when greater range was required.

Had considered going to multiple-precision integer math and skipping
the string math, but the string math was (is) built-in and was working,
and was fast enough for that app.

Now, I'd use quadwords / long long / int64_t for that stuff, or would
use a bignum package. Quadword would have been enough for the cash
involved in that app, and in most other cash-related apps.

~USD$184,467,440,737,095,516.15 / ~MXN$184,467,440,737,095,516.15 /
€184.467.440.737.095.516,15 / etc.

OpenVMS still lacks native-API bignum support (past the string math),
though the OpenSSL cryptographic library and other multiple-precision
libraries can potentially be useful there.

I haven't seen much in the way of x86-64 app porting guidelines from
VSI, but I suspect that's somewhat tangled with the ongoing
compiler-porting work and related shake-out.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: VMS Software Q1 '23 Update

<trbf76$toh$1@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Tue, 31 Jan 2023 17:21:57 +0100
Organization: MGT Consulting
Message-ID: <trbf76$toh$1@news.misty.com>
References: <tq8dgc$r4km$1@dont-email.me>
<660be03d-246e-423c-a2b3-36c54d3759a4n@googlegroups.com>
<tr4hgr$2ffm6$2@dont-email.me> <tr4i45$80t$1@panix2.panix.com>
<tr4pp3$2jk4s$1@dont-email.me> <tr4q3f$2jlld$1@dont-email.me>
<tr538n$2l4tu$1@dont-email.me> <tr5tjr$2pjrn$1@dont-email.me>
<tr6161$2q3dq$1@dont-email.me> <tr9p1h$riq$1@news.misty.com>
<trb7a8$3r68c$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 16:21:58 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="30481"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.13.1
Content-Language: en-US
In-Reply-To: <trb7a8$3r68c$1@dont-email.me>
 by: Johnny Billquist - Tue, 31 Jan 2023 16:21 UTC

On 2023-01-31 15:07, Simon Clubley wrote:
> On 2023-01-30, Johnny Billquist <bqt@softjar.se> wrote:
>> On 2023-01-29 15:51, Simon Clubley wrote:
>>> On 2023-01-29, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>>> On 1/29/2023 1:21 AM, Dave Froble wrote:
>>>>> On 1/28/2023 10:44 PM, Arne Vajhøj wrote:
>>>>>> Could PDP-11 do 32 bit integers?
>>>>>
>>>>> What part of "signed word integers" didn't you understand?  As in 16
>>>>> bits. -32768 to 32767.
>>>>
>>>> I sort of had guessed that word was the same as on VAX,
>>>> but I don't understand how it can't have a 32 bit integer.
>>>>
>>>> How does one work with file sizes and file position
>>>> in bytes on PDP-11?
>>>>
>>>
>>> The same way as it's done with a block-based filesystem (ODS-2) on VMS.
>>
>> If you look at the QIO functions to F11ACP in RSX, the block number take
>> two parameters, in order to be 32 bits. Fields in RMS structures are
>> simply just 32 bits where needed, if you deal at it at that level.
>>
>>> In general, the 16-bit nature of the PDP-11 is reflected in the API.
>>
>> Not sure which API you are referring to here. The QIO interface
>> obviously have just 16-bit wide arguments, so something like the block
>> number needs to parameter values for the full 32 bits.
>> Most other APIs (such as FCS or RMS) just define 32-bit values where needed.
>>
>
> The system services/syscalls/whatever they were called on PDP-11.

I guess the really correct term in RSX is directives.
As calls such as QIO to access some block is using a 32-bit number, you
might argue that it deals with 32-bit integers then. Even if it have to
provide the high and low 16 bits as two separate values. But they are
just interpreted together as a 32-bit value all the time.

>>> Ever worked with real-mode MS-DOS at assembly language level ?
>>>
>>> It's the same kind of thing.
>>
>> No. Not at all comparable. The PDP-11 is rather different than the x86.
>> There was never far pointers, segment registers, or all the weird stuff
>> of MS-DOS.
>>
>
> The reference was to having to string together 16-bit chunks of a number
> into a larger value instead of just being able to directly write into a
> 32-bit register in 32-bit chunks.

Well, that is true for just about any CPU, for anything larger than just
fits into one register. Both PDP-11 and VAX string multiple registers
together for some operations for larger values than fit in one register.
And same when in memory.

>>>> I know you don't do C, but I believe C was invented on
>>>> PDP-11.
>>>>
>>>
>>> What makes you think that "int" in C is _always_ at least 32 bits ? :-)
>>>
>>> There's a reason why both int and long int have always existed in C.
>>>
>>> And on architectures that do not support 32-bit ints, then long int is
>>> a library/RTL feature implemented by the language in the same way as
>>> 64-bit long long int is implemented by the language RTL on 32-bit
>>> architectures.
>>
>> Um. Not necessarily. The compiler can just know how to do 32-bit
>> operations on a 16-bit machine, and generate the code straight off, even
>> if it's a bit more complex than simple 16-bit operations.
>>
>> And that is what I see for PDP-11 C for example.
>>
>
> It's still something that has to be implemented in the generated compiler
> code instead of it being able to directly write into a 32-bit register in
> 32-bit chunks.

Well, the compiler needs to implement the moving into one register as
well. Nothing happens automatically. So - moving to one register, or
two. What's the big deal? Same thing with arithmetic.
No library/RTL actually needed for the simple stuff.

>>> Also, most languages on RSTS/E intended for commercial data processing
>>> also supported a decimal datatype, which was implemented by the language's
>>> RTL. It seems early RSTS/E Basic wasn't one of them however, based on
>>> what David is saying.
>>
>> You could definitely argue that the numeric strings are a decimal data type.
>>
>
> I would not disagree with that. Having never really used DEC Basic,
> I had forgotten about them until you brought them up.

At one point I did some financial code in BASIC, very long time ago, and
then I did use those functions because they just seemed more precise.

With that said, I had also forgotten about "==" which is used to check
for approximate equality of FP in BASIC+.

> Did they exist back in the V4 days when David started writing his code ?

That is a good question. I can't say for absolutely sure, but I did find
a BASIC+ manual from V6, and couldn't find it in there, so I suspect
not. Next I checked V10, and there it is in the manual. Couldn't find
any manual in between on a quick search.

Johnny

Re: VMS Software Q1 '23 Update

<da9a1236-e949-4f94-b8c1-14a79b829239n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:4186:b0:53f:a622:2215 with SMTP id ld6-20020a056214418600b0053fa6222215mr275519qvb.32.1675187226329;
Tue, 31 Jan 2023 09:47:06 -0800 (PST)
X-Received: by 2002:ad4:5225:0:b0:53a:6e21:5f5c with SMTP id
r5-20020ad45225000000b0053a6e215f5cmr545447qvq.13.1675187226093; Tue, 31 Jan
2023 09:47:06 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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: Tue, 31 Jan 2023 09:47:05 -0800 (PST)
In-Reply-To: <tr9ni7$3gkj3$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=71.80.99.242; posting-account=M3IgSwoAAADJd6EnOmsrCCfB6_OyTOkv
NNTP-Posting-Host: 71.80.99.242
References: <tr6dje$2s9rm$1@dont-email.me> <memo.20230129194144.24676H@jgd.cix.co.uk>
<tr6sm1$2v21d$1@dont-email.me> <tr72b6$2vvvr$1@dont-email.me>
<tr7ga9$35007$1@dont-email.me> <tr9ni7$3gkj3$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <da9a1236-e949-4f94-b8c1-14a79b829239n@googlegroups.com>
Subject: Re: VMS Software Q1 '23 Update
From: xyzzy1...@gmail.com (John Reagan)
Injection-Date: Tue, 31 Jan 2023 17:47:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3011
 by: John Reagan - Tue, 31 Jan 2023 17:47 UTC

On Monday, January 30, 2023 at 7:32:10 PM UTC-5, Arne Vajhøj wrote:
> On 1/29/2023 11:16 PM, Dave Froble wrote:
> > On 1/29/2023 7:17 PM, Arne Vajhøj wrote:
> >> The Alpha architecture manual says that it only
> >> supports:
> >> - load D from memory
> >> - convert from D to G
> >> - do G math
> >> - convert back from G to D
> >> - store D in memory
> >> which sort of operate on D float but loose 3 bits precision.
> >
> > Correct, that is how it's provided.
> >
> >> The alternative is software emulation, which will be able to do VAX
> >> compatible D math but at a speed cost.
> >
> > Would you think it would do better than the loss of the 3 bits? Not an
> > issue most of the time. However, I'm aware of a few instances where
> > things aren't so good. I seem to recall the 5.9 to 6.0 range having an
> > issue.
> I wonder what Basic on Itanium does and what Basic on x86-64 does / will do.
>
> Convert to T and do T math? Or software emulation?

Just like Itanium. Convert G to T (same size exponent) or convert D to T (and round
3 bits); operate on the T; convert back to G (or D) as needed. Nobody complained
on Itanium.

For VAX to Alpha, VEST/TIE would actually emulate all 56 bits of the D exponents.
VEST/TIE also emulated VAX H-float. Native Alpha rounded 3 bits for D to G,
nobody complained.

For Alpha, most compilers went from F/D on VAX to F/G on Alpha. However, BASIC
has stuck with D-floating for DOUBLE on Alpha and on Itanium. At this point, we
will probably continue that mapping (although I think they shouldn't have stuck with D
for all that time).

Re: VMS Software Q1 '23 Update

<cc46031e-1643-44fc-9408-f7094b0fc967n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a37:bac7:0:b0:706:94a4:545b with SMTP id k190-20020a37bac7000000b0070694a4545bmr3050601qkf.80.1675187589920;
Tue, 31 Jan 2023 09:53:09 -0800 (PST)
X-Received: by 2002:a05:622a:1a9a:b0:3b8:2615:8b24 with SMTP id
s26-20020a05622a1a9a00b003b826158b24mr1141076qtc.492.1675187589669; Tue, 31
Jan 2023 09:53:09 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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: Tue, 31 Jan 2023 09:53:09 -0800 (PST)
In-Reply-To: <trbes7$3sjls$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=71.80.99.242; posting-account=M3IgSwoAAADJd6EnOmsrCCfB6_OyTOkv
NNTP-Posting-Host: 71.80.99.242
References: <tr4hgr$2ffm6$2@dont-email.me> <tr4i45$80t$1@panix2.panix.com>
<tr4pp3$2jk4s$1@dont-email.me> <tr4q3f$2jlld$1@dont-email.me>
<tr538n$2l4tu$1@dont-email.me> <tr5tjr$2pjrn$1@dont-email.me>
<tr6161$2q3dq$1@dont-email.me> <tr9p1h$riq$1@news.misty.com>
<trb7a8$3r68c$1@dont-email.me> <trbes7$3sjls$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cc46031e-1643-44fc-9408-f7094b0fc967n@googlegroups.com>
Subject: Re: VMS Software Q1 '23 Update
From: xyzzy1...@gmail.com (John Reagan)
Injection-Date: Tue, 31 Jan 2023 17:53:09 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2476
 by: John Reagan - Tue, 31 Jan 2023 17:53 UTC

On Tuesday, January 31, 2023 at 11:16:10 AM UTC-5, Stephen Hoffman wrote:
> On 2023-01-31 14:07:05 +0000, Simon Clubley said:
>
> > I would not disagree with that. Having never really used DEC Basic, I
> > had forgotten about them until you brought them up.
> >
> > Did they exist back in the V4 days when David started writing his code ?
> VAX/VMS V3.x BASIC apps usually used integers, and used numeric strings
> via the VAX/VMS RTLs.
>
> At that time (IIRC), the VAX decimal instructions were only "exposed"
> in COBOL and MACRO-32. And IIRC from the era of the OpenVMS port to
> Alpha, it was still only COBOL and MACRO-32.
>
VAX BLISS also has packed decimal builtins. Not moved forward.

The packed decimal "instructions" (actually macros that expand to
library routine calls in STARLET.OLB, written in Macro-32 of course)
work just fine on Macro-32 on x86.

For COBOL, the visible behavior is the same. For certain intermediates,
it uses a B100 (base100 packed format) on Itanium, but we went with
128-bit integers on x86. Easier to pass around and has more than enough
digits.

Re: VMS Software Q1 '23 Update

<trboeh$3u8kc$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Tue, 31 Jan 2023 14:00:23 -0500
Organization: A noiseless patient Spider
Lines: 66
Message-ID: <trboeh$3u8kc$1@dont-email.me>
References: <tr6dje$2s9rm$1@dont-email.me>
<memo.20230129194144.24676H@jgd.cix.co.uk> <tr6sm1$2v21d$1@dont-email.me>
<tr72b6$2vvvr$1@dont-email.me> <tr7ga9$35007$1@dont-email.me>
<tr9ni7$3gkj3$1@dont-email.me>
<da9a1236-e949-4f94-b8c1-14a79b829239n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Jan 2023 18:59:29 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="54c5d878ad8531c4db2ea7ee5cb89dfb";
logging-data="4137612"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EJmYdlJBypl0TQ1XWQJvX7KBKOooWO3w="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:b+ToD5MAFVtYpicSj0nY8ylxLt0=
In-Reply-To: <da9a1236-e949-4f94-b8c1-14a79b829239n@googlegroups.com>
 by: Dave Froble - Tue, 31 Jan 2023 19:00 UTC

On 1/31/2023 12:47 PM, John Reagan wrote:
> On Monday, January 30, 2023 at 7:32:10 PM UTC-5, Arne Vajhøj wrote:
>> On 1/29/2023 11:16 PM, Dave Froble wrote:
>>> On 1/29/2023 7:17 PM, Arne Vajhøj wrote:
>>>> The Alpha architecture manual says that it only
>>>> supports:
>>>> - load D from memory
>>>> - convert from D to G
>>>> - do G math
>>>> - convert back from G to D
>>>> - store D in memory
>>>> which sort of operate on D float but loose 3 bits precision.
>>>
>>> Correct, that is how it's provided.
>>>
>>>> The alternative is software emulation, which will be able to do VAX
>>>> compatible D math but at a speed cost.
>>>
>>> Would you think it would do better than the loss of the 3 bits? Not an
>>> issue most of the time. However, I'm aware of a few instances where
>>> things aren't so good. I seem to recall the 5.9 to 6.0 range having an
>>> issue.
>> I wonder what Basic on Itanium does and what Basic on x86-64 does / will do.
>>
>> Convert to T and do T math? Or software emulation?
>
> Just like Itanium. Convert G to T (same size exponent) or convert D to T (and round
> 3 bits); operate on the T; convert back to G (or D) as needed. Nobody complained
> on Itanium.
>
> For VAX to Alpha, VEST/TIE would actually emulate all 56 bits of the D exponents.
> VEST/TIE also emulated VAX H-float. Native Alpha rounded 3 bits for D to G,
> nobody complained.

Not 100% accurate, but complaining would do no good, so adequate work arounds
were developed.

It just expounds on the concept that if one wants accuracy, then, don't use FP.
If one has no reasonable choice, then, you get what you get.

> For Alpha, most compilers went from F/D on VAX to F/G on Alpha. However, BASIC
> has stuck with D-floating for DOUBLE on Alpha and on Itanium. At this point, we
> will probably continue that mapping (although I think they shouldn't have stuck with D
> for all that time).
>

If one begins a journey, and instead of continuing, continues to go back and
start over, one never reaches the goal.

I and others knew that use of D-float for money wasn't an optimum solution, but
once going down that road, if workable solutions were in place, it wasn't
reasonable to go back and start over.

I tried one time with a customer. The suggestion was to convert all monetary
data to another format, including historical data, programs, everything. It
wasn't going to be cheap. I was asked what the benefit would be. Basically,
maybe a penny here, a penny there. I was almost thrown out of the CEO's office.
I'd already wasted more of his time than whatever accuracy could be saved. I
learned that lesson real quick, and well.

--
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 Software Q1 '23 Update

<trcf1g$1u13$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Tue, 31 Jan 2023 20:25:04 -0500
Organization: A noiseless patient Spider
Lines: 86
Message-ID: <trcf1g$1u13$1@dont-email.me>
References: <tr6dje$2s9rm$1@dont-email.me>
<memo.20230129194144.24676H@jgd.cix.co.uk> <tr6sm1$2v21d$1@dont-email.me>
<tr72b6$2vvvr$1@dont-email.me> <tr7ga9$35007$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 1 Feb 2023 01:25:04 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="777ed7562fe670d5fac8239016f90433";
logging-data="63523"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KaT+GJQWRCpjjJkrRaCMpDE+Dx/m60vc="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:lIJAYY/cHyBGMiLZ6oAl2B1mino=
In-Reply-To: <tr7ga9$35007$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Wed, 1 Feb 2023 01:25 UTC

On 1/29/2023 11:16 PM, Dave Froble wrote:
> On 1/29/2023 7:17 PM, Arne Vajhøj wrote:
>> The Alpha architecture manual says that it only
>> supports:
>> - load D from memory
>> - convert from D to G
>> - do G math
>> - convert back from G to D
>> - store D in memory
>> which sort of operate on D float but loose 3 bits precision.
>
> Correct, that is how it's provided.
>
>> The alternative is software emulation, which will be able to do VAX
>> compatible D math but at a speed cost.
>
> Would you think it would do better than the loss of the 3 bits?  Not an
> issue most of the time.  However,  I'm aware of a few instances where
> things aren't so good.  I seem to recall the 5.9 to 6.0 range having an
> issue.

Those bit are usually not significant.

I had to think hard to come up with an example showing
the bits getting chopped off.

program dg

declare integer i

external sub test(integer)

for i = 0 to 15
call test(i)
next i

end program
! sub test(integer v)

map (xb) double x
map (xb) byte b(7)

external double function add(double, double)

b(0) = 0
b(1) = 64
b(2) = 0
b(3) = 0
b(4) = 0
b(5) = 0
b(6) = v
b(7) = 0
x = add(x, 0.0)
print v, "->", b(6)

end sub
! function double add(double a, double b)

add = a + b

end function

$ r dg
0 -> 0
1 -> 0
2 -> 0
3 -> 0
4 -> 8
5 -> 8
6 -> 8
7 -> 8
8 -> 8
9 -> 8
10 -> 8
11 -> 8
12 -> 16
13 -> 16
14 -> 16
15 -> 16

Arne

Re: VMS Software Q1 '23 Update

<trdooi$blc0$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Wed, 1 Feb 2023 13:17:06 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <trdooi$blc0$1@dont-email.me>
References: <tr4hgr$2ffm6$2@dont-email.me> <tr4i45$80t$1@panix2.panix.com> <tr4pp3$2jk4s$1@dont-email.me> <tr4q3f$2jlld$1@dont-email.me> <tr538n$2l4tu$1@dont-email.me> <tr5tjr$2pjrn$1@dont-email.me> <tr6161$2q3dq$1@dont-email.me> <tr9p1h$riq$1@news.misty.com> <trb7a8$3r68c$1@dont-email.me> <trbes7$3sjls$1@dont-email.me>
Injection-Date: Wed, 1 Feb 2023 13:17:06 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="ec9a98471e2a572dd81760235daefa32";
logging-data="382336"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VY1L1E0c8nCpOIMnakdV3wJuC/cA4cWM="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:NSX7djNxQGkPGgxVpxFVd1a5HJE=
 by: Simon Clubley - Wed, 1 Feb 2023 13:17 UTC

On 2023-01-31, Stephen Hoffman <seaohveh@hoffmanlabs.invalid> wrote:
> On 2023-01-31 14:07:05 +0000, Simon Clubley said:
>
>> I would not disagree with that. Having never really used DEC Basic, I
>> had forgotten about them until you brought them up.
>>
>> Did they exist back in the V4 days when David started writing his code ?
>
> VAX/VMS V3.x BASIC apps usually used integers, and used numeric strings
> via the VAX/VMS RTLs.
>

Actually, the V4 reference here was to RSTS/E, not VAX/VMS... :-)

Interesting story however, and shows just how easy it is to screw up
using FP.

Something just occurred to me while writing this: does the latest solution
to everything :-) (ie: Rust) still allow you to directly compare two floating
point numbers ?

Based on a quick search, the answer would appear to be yes, which was
a bit of a surprise...

Simon.

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

Pages:123456
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor