Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Nature always sides with the hidden flaw.


computers / comp.os.vms / Re: Floating Point, Machine Epsilon, Rust, Swift, Etc (was: 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

<trdru4$c52s$1@dont-email.me>

  copy mid

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

  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: Wed, 1 Feb 2023 09:11:15 -0500
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <trdru4$c52s$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>
<trdooi$blc0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Feb 2023 14:11:16 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="777ed7562fe670d5fac8239016f90433";
logging-data="398428"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZBDIl+6rUEZIM7Dzjv/EitETl9+GD/GQ="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:PoWcuA5QHv1judIATyWeH6qNtQE=
Content-Language: en-US
In-Reply-To: <trdooi$blc0$1@dont-email.me>
 by: Arne Vajhøj - Wed, 1 Feb 2023 14:11 UTC

On 2/1/2023 8:17 AM, Simon Clubley wrote:
> 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...

It does but Clippy complains unless you instruct it not to.

#[allow(clippy::float_cmp)]

fn main() {
let x:f64 = 123.456;
let y:f64 = 123.456;
let eq1:bool = x == y;
println!("{0} = {1} is {2}", x, y, eq1);
}

Arne

Re: VMS Software Q1 '23 Update

<tre15a$d76m$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Wed, 1 Feb 2023 16:40:26 +0100
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <tre15a$d76m$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>
<trdooi$blc0$1@dont-email.me> <trdru4$c52s$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 15:40:26 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="c0e9bece08997a09c2a866a979275682";
logging-data="433366"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19c1hMbOHwjRvMtaGhNzeQG"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:6wLdq+Nga03nUPxVTetKtION6ic=
In-Reply-To: <trdru4$c52s$1@dont-email.me>
Content-Language: sv
 by: Jan-Erik Söderholm - Wed, 1 Feb 2023 15:40 UTC

Den 2023-02-01 kl. 15:11, skrev Arne Vajhøj:
> On 2/1/2023 8:17 AM, Simon Clubley wrote:
>> 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...
>
> It does but Clippy complains unless you instruct it not to.
>
> #[allow(clippy::float_cmp)]
>
> fn main() {
>     let x:f64 = 123.456;
>     let y:f64 = 123.456;
>     let eq1:bool = x == y;
>     println!("{0} = {1} is {2}", x, y, eq1);
> }
>
>
> Arne
>
>

Is that true for < or > compares also?
That seems as less of an issue...

Re: VMS Software Q1 '23 Update

<tre3qf$dlgn$1@dont-email.me>

  copy mid

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

  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: Wed, 1 Feb 2023 11:25:51 -0500
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <tre3qf$dlgn$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>
<trdooi$blc0$1@dont-email.me> <trdru4$c52s$1@dont-email.me>
<tre15a$d76m$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 16:25:51 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="777ed7562fe670d5fac8239016f90433";
logging-data="448023"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XA44GWjXes/FHT282fELck9ojH1ubQUc="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:SPe/24dV+dLR3WZXSqLiYCt5ICs=
Content-Language: en-US
In-Reply-To: <tre15a$d76m$1@dont-email.me>
 by: Arne Vajhøj - Wed, 1 Feb 2023 16:25 UTC

On 2/1/2023 10:40 AM, Jan-Erik Söderholm wrote:
> Den 2023-02-01 kl. 15:11, skrev Arne Vajhøj:
>> On 2/1/2023 8:17 AM, Simon Clubley wrote:
>>> 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...
>>
>> It does but Clippy complains unless you instruct it not to.
>>
>> #[allow(clippy::float_cmp)]
>>
>> fn main() {
>>      let x:f64 = 123.456;
>>      let y:f64 = 123.456;
>>      let eq1:bool = x == y;
>>      println!("{0} = {1} is {2}", x, y, eq1);
>> }
>
> Is that true for < or > compares also?
> That seems as less of an issue...

Docs says:

<quote>
What it does

Checks for (in-)equality comparisons on floating-point values
</quote>

so I guess only == and !=.

Arne

Re: VMS Software Q1 '23 Update

<tre42h$d76m$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: VMS Software Q1 '23 Update
Date: Wed, 1 Feb 2023 17:30:04 +0100
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <tre42h$d76m$2@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>
<trdooi$blc0$1@dont-email.me> <trdru4$c52s$1@dont-email.me>
<tre15a$d76m$1@dont-email.me> <tre3qf$dlgn$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 16:30:09 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="c0e9bece08997a09c2a866a979275682";
logging-data="433366"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+XKjLXcOqmmYJuqu9ouHeW"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:TjzJF3yRa3L3iGu2lNfWBa4KQZY=
Content-Language: sv
In-Reply-To: <tre3qf$dlgn$1@dont-email.me>
 by: Jan-Erik Söderholm - Wed, 1 Feb 2023 16:30 UTC

Den 2023-02-01 kl. 17:25, skrev Arne Vajhøj:
> On 2/1/2023 10:40 AM, Jan-Erik Söderholm wrote:
>> Den 2023-02-01 kl. 15:11, skrev Arne Vajhøj:
>>> On 2/1/2023 8:17 AM, Simon Clubley wrote:
>>>> 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...
>>>
>>> It does but Clippy complains unless you instruct it not to.
>>>
>>> #[allow(clippy::float_cmp)]
>>>
>>> fn main() {
>>>      let x:f64 = 123.456;
>>>      let y:f64 = 123.456;
>>>      let eq1:bool = x == y;
>>>      println!("{0} = {1} is {2}", x, y, eq1);
>>> }
>>
>> Is that true for < or > compares also?
>> That seems as less of an issue...
>
> Docs says:
>
> <quote>
> What it does
>
> Checks for (in-)equality comparisons on floating-point values
> </quote>
>
> so I guess only == and !=.
>
> Arne
>

OK, sounds logical... :-)

Re: VMS Software Q1 '23 Update

<tre5ac$dtob$1@dont-email.me>

  copy mid

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

  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: Wed, 1 Feb 2023 11:52:19 -0500
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <tre5ac$dtob$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>
<trdooi$blc0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Feb 2023 16:51:24 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="5c834131088a9952c93ad04a09939011";
logging-data="456459"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ewazItwmAK3H4MoES9knWH2TA+fZtuN0="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:KmE31Bt2r4kJB6vgUq8fdloPczg=
In-Reply-To: <trdooi$blc0$1@dont-email.me>
 by: Dave Froble - Wed, 1 Feb 2023 16:52 UTC

On 2/1/2023 8:17 AM, Simon Clubley wrote:
> 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.
>

I'm assuming you're referring to comparisons for equality, but, greater than and
less than are also comparisons.

--
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: Floating Point, Machine Epsilon, Rust, Swift, Etc (was: Re: VMS Software Q1 '23 Update)

<tre5cj$dv77$1@dont-email.me>

  copy mid

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

  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: Floating Point, Machine Epsilon, Rust, Swift, Etc (was: Re: VMS Software Q1 '23 Update)
Date: Wed, 1 Feb 2023 11:52:35 -0500
Organization: HoffmanLabs LLC
Lines: 46
Message-ID: <tre5cj$dv77$1@dont-email.me>
References: <tq8dgc$r4km$1@dont-email.me> <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> <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> <trdooi$blc0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="45c4e1da052e76a011589f875afc44c8";
logging-data="457959"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+W1rQw5YQscR/enyT4uonycCtVgBqr7Dw="
User-Agent: Unison/2.2
Cancel-Lock: sha1:nfhf873O8uNKbYFo5Z5ar3k3uOc=
 by: Stephen Hoffman - Wed, 1 Feb 2023 16:52 UTC

On 2023-02-01 13:17:06 +0000, Simon Clubley said:

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

Rust crates:

https://docs.rs/float-cmp/latest/float_cmp/

https://docs.rs/efloat/latest/efloat/

Swift has a deliberately-obscurely-named equivalent to machine epsilon,
as do some other languages.

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

Unfortunately, stuff that's labeled "epsilon" is all too often not what
you want to use.

And (more general, not specific to Rust) background on floating point:

https://randomascii.wordpress.com/category/floating-point/

https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
(part of a longer series)

The last OpenVMS port had a fairly long write-up on floating point, and
the x86-64 probably has an update to same, as floating point is always
"fun".

--
Pure Personal Opinion | HoffmanLabs LLC

Re: VMS Software Q1 '23 Update

<tre76s$gvm$1@reader2.panix.com>

  copy mid

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

  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 Software Q1 '23 Update
Date: Wed, 1 Feb 2023 17:23:40 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <tre76s$gvm$1@reader2.panix.com>
References: <tr4hgr$2ffm6$2@dont-email.me> <trb7a8$3r68c$1@dont-email.me> <trbes7$3sjls$1@dont-email.me> <trdooi$blc0$1@dont-email.me>
Injection-Date: Wed, 1 Feb 2023 17:23:40 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="17398"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)
 by: Dan Cross - Wed, 1 Feb 2023 17:23 UTC

In article <trdooi$blc0$1@dont-email.me>,
Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
>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...

It depends on how you do it, but yes, Rust lets you compare
two floating point numbers for equality:

: igor; rustc --version
rustc 1.67.0 (fc594f156 2023-01-24)
: igor; cat >test.rs
fn main() {
let x = 0.6;
let y = 0.6;

if x == y {
println!("comparison on floats is true");
}

match x {
0.6 => println!("match on floats...for now"),
_ => println!("bah, humbug."),
}
} : igor; rustc test.rs
warning: floating-point types cannot be used in patterns
--> test.rs:10:9
|
10 | 0.6 => println!("match on floats...for now"),
| ^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
= note: `#[warn(illegal_floating_point_literal_pattern)]` on by default

warning: 1 warning emitted

: igor; ./test
comparison on floats is true
match on floats...for now
: igor;

Note the warning on `match` against floats.

I suspect that tests for equality are permitted since testing
for partial equality (e.g., <=, >=) may be important and there's
not an easy way to turn off equality testing if you support
partial orderings.

Note that Rust does treat things somewhat specially when it
comes to floating point. cf the PartialOrd and PartialEq
traits:
https://doc.rust-lang.org/std/cmp/trait.PartialEq.html
https://doc.rust-lang.org/std/cmp/trait.PartialOrd.html

- Dan C.

Re: Floating Point, Machine Epsilon, Rust, Swift, Etc (was: Re: VMS Software Q1 '23 Update)

<tre863$ecn5$1@dont-email.me>

  copy mid

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

  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: Floating Point, Machine Epsilon, Rust, Swift, Etc (was: Re: VMS
Software Q1 '23 Update)
Date: Wed, 1 Feb 2023 12:40:19 -0500
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <tre863$ecn5$1@dont-email.me>
References: <tq8dgc$r4km$1@dont-email.me> <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>
<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>
<trdooi$blc0$1@dont-email.me> <tre5cj$dv77$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Feb 2023 17:40:19 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="777ed7562fe670d5fac8239016f90433";
logging-data="471781"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LP5WrZgKiF6xWxgIwqgpJ6R0YxBV+eI0="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:GHWXFwQBr3p8auSg7IAXCw7/MEI=
Content-Language: en-US
In-Reply-To: <tre5cj$dv77$1@dont-email.me>
 by: Arne Vajhøj - Wed, 1 Feb 2023 17:40 UTC

On 2/1/2023 11:52 AM, Stephen Hoffman wrote:
> Swift has a deliberately-obscurely-named equivalent to machine epsilon,
> as do some other languages.

The reality is that a relevant epsilon for floating point comparison
depends on the context.

When I am exposed to the problem then it is typical regarding
testing for convergence of iterative algorithms. Is Xt
the same as Xt-1.

And the right epsilon depends on the scale of the data.

Arne

Re: VMS Software Q1 '23 Update

<3dcecff588b83ba2c47c47f13984dc1483efc11a.camel@munted.eu>

  copy mid

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

  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 Software Q1 '23 Update
Date: Wed, 01 Feb 2023 18:36:19 +0000
Organization: One very high maintenance cat
Message-ID: <3dcecff588b83ba2c47c47f13984dc1483efc11a.camel@munted.eu>
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>
<trdooi$blc0$1@dont-email.me> <trdru4$c52s$1@dont-email.me>
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="386804"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Evolution 3.46.2
Cancel-Lock: sha1:kXMdb2ErfqalxcZbgmPi/K4LyS0=
In-Reply-To: <trdru4$c52s$1@dont-email.me>
X-User-ID: eJwNyrEBACEIBLCVhIfzGQeB238ErdLEPwhqGxzmdM5yFqxxHtJhE2mxmGPBiNwUti9R/6sUzUoZqL7JOLUvdFkWbA==
 by: Single Stage to Orbi - Wed, 1 Feb 2023 18:36 UTC

On Wed, 2023-02-01 at 09:11 -0500, Arne Vajhøj wrote:
> > Based on a quick search, the answer would appear to be yes, which
> > was
> > a bit of a surprise...
>
> It does but Clippy complains unless you instruct it not to.
>
> #[allow(clippy::float_cmp)]
>
> fn main() {
>      let x:f64 = 123.456;
>      let y:f64 = 123.456;
>      let eq1:bool = x == y;
>      println!("{0} = {1} is {2}", x, y, eq1);
> }

I'm currently teaching myself Rust and have been for the past two
years. It is a most interesting programming language.
--
Tactical Nuclear Kittens

Re: VMS Software Q1 '23 Update

<e2fafd3e-2055-4e9f-a4d9-377cef03915cn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:57c3:0:b0:3b8:6b3c:a31 with SMTP id w3-20020ac857c3000000b003b86b3c0a31mr505014qta.279.1675348857072;
Thu, 02 Feb 2023 06:40:57 -0800 (PST)
X-Received: by 2002:a0c:e186:0:b0:537:4bb0:14f6 with SMTP id
p6-20020a0ce186000000b005374bb014f6mr417441qvl.33.1675348856746; Thu, 02 Feb
2023 06:40:56 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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, 2 Feb 2023 06:40:56 -0800 (PST)
In-Reply-To: <3dcecff588b83ba2c47c47f13984dc1483efc11a.camel@munted.eu>
Injection-Info: google-groups.googlegroups.com; posting-host=198.54.130.117; posting-account=uNeudQoAAACm0ETOCzPNrvtq-73lRbuD
NNTP-Posting-Host: 198.54.130.117
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>
<trdooi$blc0$1@dont-email.me> <trdru4$c52s$1@dont-email.me> <3dcecff588b83ba2c47c47f13984dc1483efc11a.camel@munted.eu>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e2fafd3e-2055-4e9f-a4d9-377cef03915cn@googlegroups.com>
Subject: Re: VMS Software Q1 '23 Update
From: jchim...@gmail.com (plugh)
Injection-Date: Thu, 02 Feb 2023 14:40:57 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2426
 by: plugh - Thu, 2 Feb 2023 14:40 UTC

On Wednesday, February 1, 2023 at 12:02:14 PM UTC-7, Single Stage to Orbit wrote:
> On Wed, 2023-02-01 at 09:11 -0500, Arne Vajhøj wrote:
> > > Based on a quick search, the answer would appear to be yes, which
> > > was
> > > a bit of a surprise...
> >
> > It does but Clippy complains unless you instruct it not to.
> >
> > #[allow(clippy::float_cmp)]
> >
> > fn main() {
> > let x:f64 = 123.456;
> > let y:f64 = 123.456;
> > let eq1:bool = x == y;
> > println!("{0} = {1} is {2}", x, y, eq1);
> > }
> I'm currently teaching myself Rust and have been for the past two
> years. It is a most interesting programming language.
> --
> Tactical Nuclear Kittens

It would be interesting to make this available on the new VMS. I had some notes on this, but I don't think I kept them.

Re: VMS Software Q1 '23 Update

<00e5d648bfc898a2e9f565739eb26a5cccef1dba.camel@munted.eu>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.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 Software Q1 '23 Update
Date: Thu, 02 Feb 2023 15:08:04 +0000
Organization: One very high maintenance cat
Message-ID: <00e5d648bfc898a2e9f565739eb26a5cccef1dba.camel@munted.eu>
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>
<trdooi$blc0$1@dont-email.me> <trdru4$c52s$1@dont-email.me>
<3dcecff588b83ba2c47c47f13984dc1483efc11a.camel@munted.eu>
<e2fafd3e-2055-4e9f-a4d9-377cef03915cn@googlegroups.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="404634"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Evolution 3.46.2
Cancel-Lock: sha1:W+a53HZ1sPZHKr/7hJ84fzG1L/A=
X-User-ID: eJwFwYEBwDAEBMCVXjxqHET2H6F3pi4+QTenPXuKtTsny/SrOv5x8RqxzcDs4kjZQju781YAPcmr8ghS9AdaqBVt
In-Reply-To: <e2fafd3e-2055-4e9f-a4d9-377cef03915cn@googlegroups.com>
 by: Single Stage to Orbi - Thu, 2 Feb 2023 15:08 UTC

On Thu, 2023-02-02 at 06:40 -0800, plugh wrote:
> > I'm currently teaching myself Rust and have been for the past two
> > years. It is a most interesting programming language.
>
> It would be interesting to make this available on the new VMS. I had
> some notes on this, but I don't think I kept them.

LLVM supports x86_64 and ELF out the box, so I imagine the truly hard
bits wil be the bindings to OpenVMS calls and data structures. Async
and locking primitives will need to be implemented, that won't be easy.
--
Tactical Nuclear Kittens

Re: VMS Software Q1 '23 Update

<6fff99cd-eae4-4368-88d4-699a91b3ee69n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:5a10:0:b0:3ab:6bd6:d3b5 with SMTP id n16-20020ac85a10000000b003ab6bd6d3b5mr738594qta.80.1675353906457;
Thu, 02 Feb 2023 08:05:06 -0800 (PST)
X-Received: by 2002:a0c:f842:0:b0:53a:93a:3b37 with SMTP id
g2-20020a0cf842000000b0053a093a3b37mr447740qvo.7.1675353906264; Thu, 02 Feb
2023 08:05:06 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!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: Thu, 2 Feb 2023 08:05:05 -0800 (PST)
In-Reply-To: <e2fafd3e-2055-4e9f-a4d9-377cef03915cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=198.54.130.117; posting-account=uNeudQoAAACm0ETOCzPNrvtq-73lRbuD
NNTP-Posting-Host: 198.54.130.117
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>
<trdooi$blc0$1@dont-email.me> <trdru4$c52s$1@dont-email.me>
<3dcecff588b83ba2c47c47f13984dc1483efc11a.camel@munted.eu> <e2fafd3e-2055-4e9f-a4d9-377cef03915cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6fff99cd-eae4-4368-88d4-699a91b3ee69n@googlegroups.com>
Subject: Re: VMS Software Q1 '23 Update
From: jchim...@gmail.com (plugh)
Injection-Date: Thu, 02 Feb 2023 16:05:06 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1737
 by: plugh - Thu, 2 Feb 2023 16:05 UTC

https://groups.google.com/g/comp.os.vms/c/IThxF57t9PU/m/JDmJQHI7AQAJ
is the reference I was thinking of

Re: Floating Point, Machine Epsilon, Rust, Swift, Etc (was: Re: VMS Software Q1 '23 Update)

<trhed3$8ar$1@reader2.panix.com>

  copy mid

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

  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: Floating Point, Machine Epsilon, Rust, Swift, Etc (was: Re: VMS
Software Q1 '23 Update)
Date: Thu, 2 Feb 2023 22:44:51 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <trhed3$8ar$1@reader2.panix.com>
References: <tq8dgc$r4km$1@dont-email.me> <trdooi$blc0$1@dont-email.me> <tre5cj$dv77$1@dont-email.me> <tre863$ecn5$1@dont-email.me>
Injection-Date: Thu, 2 Feb 2023 22:44:51 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="8539"; 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 - Thu, 2 Feb 2023 22:44 UTC

In article <tre863$ecn5$1@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 2/1/2023 11:52 AM, Stephen Hoffman wrote:
>> Swift has a deliberately-obscurely-named equivalent to machine epsilon,
>> as do some other languages.
>
>The reality is that a relevant epsilon for floating point comparison
>depends on the context.
>
>When I am exposed to the problem then it is typical regarding
>testing for convergence of iterative algorithms. Is Xt
>the same as Xt-1.
>
>And the right epsilon depends on the scale of the data.

I interpreted Stephen Hoffman's mention of epsilon as
referring to the constant (e.g., in IEEE754 floating
point). This is well defined for each representation.
https://en.wikipedia.org/wiki/Machine_epsilon

- Dan C.

Re: Floating Point, Machine Epsilon, Rust, Swift, Etc (was: Re: VMS Software Q1 '23 Update)

<trhhvi$13ikm$1@dont-email.me>

  copy mid

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

  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: Floating Point, Machine Epsilon, Rust, Swift, Etc (was: Re: VMS
Software Q1 '23 Update)
Date: Thu, 2 Feb 2023 18:45:53 -0500
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <trhhvi$13ikm$1@dont-email.me>
References: <tq8dgc$r4km$1@dont-email.me> <trdooi$blc0$1@dont-email.me>
<tre5cj$dv77$1@dont-email.me> <tre863$ecn5$1@dont-email.me>
<trhed3$8ar$1@reader2.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 2 Feb 2023 23:45:54 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="fb0a294d8bc1d1e2b97ffc766b304e49";
logging-data="1165974"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+mJEclZZMtbluvOag6Mh1FCq1aTev94Ds="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:6pHtDy+4Hc1EGRLjqkqITOZSDc8=
In-Reply-To: <trhed3$8ar$1@reader2.panix.com>
Content-Language: en-US
 by: Arne Vajhøj - Thu, 2 Feb 2023 23:45 UTC

On 2/2/2023 5:44 PM, Dan Cross wrote:
> In article <tre863$ecn5$1@dont-email.me>,
> Arne Vajhøj <arne@vajhoej.dk> wrote:
>> On 2/1/2023 11:52 AM, Stephen Hoffman wrote:
>>> Swift has a deliberately-obscurely-named equivalent to machine epsilon,
>>> as do some other languages.
>>
>> The reality is that a relevant epsilon for floating point comparison
>> depends on the context.
>>
>> When I am exposed to the problem then it is typical regarding
>> testing for convergence of iterative algorithms. Is Xt
>> the same as Xt-1.
>>
>> And the right epsilon depends on the scale of the data.
>
> I interpreted Stephen Hoffman's mention of epsilon as
> referring to the constant (e.g., in IEEE754 floating
> point). This is well defined for each representation.
> https://en.wikipedia.org/wiki/Machine_epsilon

That is possible. It sort of fit the context.

But that is very rarely a good epsilon/delta/whatever
value when testing for equality.

Arne

Re: VMS Software Q1 '23 Update

<trhi5t$13ikm$2@dont-email.me>

  copy mid

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

  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: Thu, 2 Feb 2023 18:49:17 -0500
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <trhi5t$13ikm$2@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>
<trdooi$blc0$1@dont-email.me> <trdru4$c52s$1@dont-email.me>
<3dcecff588b83ba2c47c47f13984dc1483efc11a.camel@munted.eu>
<e2fafd3e-2055-4e9f-a4d9-377cef03915cn@googlegroups.com>
<00e5d648bfc898a2e9f565739eb26a5cccef1dba.camel@munted.eu>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 2 Feb 2023 23:49:18 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="fb0a294d8bc1d1e2b97ffc766b304e49";
logging-data="1165974"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+x6H2Ym3OzAKkLjvTHLjHLPni6nx+nLX0="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:NyFmIJhZ5vqxFm8iV6setZ5Ojvc=
In-Reply-To: <00e5d648bfc898a2e9f565739eb26a5cccef1dba.camel@munted.eu>
Content-Language: en-US
 by: Arne Vajhøj - Thu, 2 Feb 2023 23:49 UTC

On 2/2/2023 10:08 AM, Single Stage to Orbit wrote:
> On Thu, 2023-02-02 at 06:40 -0800, plugh wrote:
>>> I'm currently teaching myself Rust and have been for the past two
>>> years. It is a most interesting programming language.
>>
>> It would be interesting to make this available on the new VMS. I had
>> some notes on this, but I don't think I kept them.
>
> LLVM supports x86_64 and ELF out the box, so I imagine the truly hard
> bits wil be the bindings to OpenVMS calls and data structures.

I suspect that there is a bit more to get a LLVM based compiler
working on VMS x86-64 than that.

> Async
> and locking primitives will need to be implemented, that won't be easy.

Isn't async build on top of threads?

Arne

Re: VMS Software Q1 '23 Update

<7805c45dd60472f6021643e91b152dca72f72f7f.camel@munted.eu>

  copy mid

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

  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 Software Q1 '23 Update
Date: Fri, 03 Feb 2023 00:15:05 +0000
Organization: One very high maintenance cat
Message-ID: <7805c45dd60472f6021643e91b152dca72f72f7f.camel@munted.eu>
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>
<trdooi$blc0$1@dont-email.me> <trdru4$c52s$1@dont-email.me>
<3dcecff588b83ba2c47c47f13984dc1483efc11a.camel@munted.eu>
<e2fafd3e-2055-4e9f-a4d9-377cef03915cn@googlegroups.com>
<00e5d648bfc898a2e9f565739eb26a5cccef1dba.camel@munted.eu>
<trhi5t$13ikm$2@dont-email.me>
Reply-To: alex.buell@munted.eu
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
Injection-Info: solani.org;
logging-data="442433"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Evolution 3.46.2
Cancel-Lock: sha1:0Rqs7iK7BS70o16m+ML96sth05w=
X-User-ID: eJwNxsERACEIBLCWBBc4ysEV+i/hnHxi28UZcHPY2NyEWi7pW2fvtql0siOCfRgF4eIn+q54wgbXUW4ceOoPY+YVlg==
In-Reply-To: <trhi5t$13ikm$2@dont-email.me>
 by: Single Stage to Orbi - Fri, 3 Feb 2023 00:15 UTC

On Thu, 2023-02-02 at 18:49 -0500, Arne Vajhøj wrote:
> > LLVM supports x86_64 and ELF out the box, so I imagine the truly
> > hard
> > bits wil be the bindings to OpenVMS calls and data structures.
>
> I suspect that there is a bit more to get a LLVM based compiler
> working on VMS x86-64 than that.
>

Probably. That was just hand-wavey bits. VSI is working on using LLVM
for their compilers, yes?
                                                               
> > Async
> > and locking primitives will need to be implemented, that won't be
> > easy.
>
> Isn't async build on top of threads?

Perhaps, I'm still not an expert Rust coder yet.
--
Tactical Nuclear Kittens

Re: VMS Software Q1 '23 Update

<trhmgp$13roh$2@dont-email.me>

  copy mid

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

  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: Thu, 2 Feb 2023 20:03:21 -0500
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <trhmgp$13roh$2@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>
<trdooi$blc0$1@dont-email.me> <trdru4$c52s$1@dont-email.me>
<3dcecff588b83ba2c47c47f13984dc1483efc11a.camel@munted.eu>
<e2fafd3e-2055-4e9f-a4d9-377cef03915cn@googlegroups.com>
<00e5d648bfc898a2e9f565739eb26a5cccef1dba.camel@munted.eu>
<trhi5t$13ikm$2@dont-email.me>
<7805c45dd60472f6021643e91b152dca72f72f7f.camel@munted.eu>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 3 Feb 2023 01:03:21 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="fb0a294d8bc1d1e2b97ffc766b304e49";
logging-data="1175313"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TghVvJcJSI+1dugiyMDr2xisajj7tSHo="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:TGu7olpAkQbo9ncFh1YKltS5pp4=
Content-Language: en-US
In-Reply-To: <7805c45dd60472f6021643e91b152dca72f72f7f.camel@munted.eu>
 by: Arne Vajhøj - Fri, 3 Feb 2023 01:03 UTC

On 2/2/2023 7:15 PM, Single Stage to Orbit wrote:
> On Thu, 2023-02-02 at 18:49 -0500, Arne Vajhøj wrote:
>>> LLVM supports x86_64 and ELF out the box, so I imagine the truly
>>> hard
>>> bits wil be the bindings to OpenVMS calls and data structures.
>>
>> I suspect that there is a bit more to get a LLVM based compiler
>> working on VMS x86-64 than that.
>
> Probably. That was just hand-wavey bits. VSI is working on using LLVM
> for their compilers, yes?

They are using LLVM yes.

Arne

Re: VMS Software Q1 '23 Update

<trj153$1epoa$1@dont-email.me>

  copy mid

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

  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: Fri, 3 Feb 2023 08:10:58 -0500
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <trj153$1epoa$1@dont-email.me>
References: <tq8dgc$r4km$1@dont-email.me> <tq8r16$tc7h$2@dont-email.me>
<tq9087$r4km$2@dont-email.me> <k2qh00Fdet2U1@mid.individual.net>
<26ed14b7-db40-49b1-bc1d-841c81c4877dn@googlegroups.com>
<tqp7bm$871q$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 3 Feb 2023 13:10:59 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="fb0a294d8bc1d1e2b97ffc766b304e49";
logging-data="1533706"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nr2UNlHAqNgLSbPUNQyILFimTrtsYTKg="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:iOtzqMCgtCZ81/FbA2Atesgw/gA=
Content-Language: en-US
In-Reply-To: <tqp7bm$871q$1@dont-email.me>
 by: Arne Vajhøj - Fri, 3 Feb 2023 13:10 UTC

> |What position does PostgreSQL have on the list of opensource software?
> |
> |We have no plans to port PostgreSQL to OpenVMS.
>
> Huh ?

This just hit my inbox:

<quote>
International OpenVMS Forum

Eindhoven, March 7th , 2023
....
13:30 – 14:30 Jan Karremans: OpenVMS and PostgreSQL, the dawn of a new era

Jan Karremans is a database technologist at EDB, working with people and
organizations to maximize their potential in a data centric world. He is
a Postgres advocate.

Postgres is gaining more and more momentum as enterprise database on
OpenVMS. The key benefits are obvious: a high-performing database,
considerable savings on license fees, and access to a large pool of
skilled resources.
</quote>

Either "enterprise database on OpenVMS" means "PostgreSQL client on
OpenVMS accessing PostgreSQL server on Linux" or he believes
PostgreSQL server on VMS will show up.

Arne

Re: VMS Software Q1 '23 Update

<trj3tq$nkv$1@reader2.panix.com>

  copy mid

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

  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 Software Q1 '23 Update
Date: Fri, 3 Feb 2023 13:58:18 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <trj3tq$nkv$1@reader2.panix.com>
References: <tr4hgr$2ffm6$2@dont-email.me> <e2fafd3e-2055-4e9f-a4d9-377cef03915cn@googlegroups.com> <00e5d648bfc898a2e9f565739eb26a5cccef1dba.camel@munted.eu> <trhi5t$13ikm$2@dont-email.me>
Injection-Date: Fri, 3 Feb 2023 13:58:18 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="24223"; 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 - Fri, 3 Feb 2023 13:58 UTC

In article <trhi5t$13ikm$2@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 2/2/2023 10:08 AM, Single Stage to Orbit wrote:
>> On Thu, 2023-02-02 at 06:40 -0800, plugh wrote:
>>>> I'm currently teaching myself Rust and have been for the past two
>>>> years. It is a most interesting programming language.
>>>
>>> It would be interesting to make this available on the new VMS. I had
>>> some notes on this, but I don't think I kept them.
>>
>> LLVM supports x86_64 and ELF out the box, so I imagine the truly hard
>> bits wil be the bindings to OpenVMS calls and data structures.
>
>I suspect that there is a bit more to get a LLVM based compiler
>working on VMS x86-64 than that.
>
>> Async
>> and locking primitives will need to be implemented, that won't be easy.
>
>Isn't async build on top of threads?

No, not necessarily. async can be used to build threads,
and async executors can run in threads, but the two are
in many ways duals of one another.

- Dan C.

Re: VMS Software Q1 '23 Update

<trj666$1epo9$2@dont-email.me>

  copy mid

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

  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: Fri, 3 Feb 2023 09:36:54 -0500
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <trj666$1epo9$2@dont-email.me>
References: <tr4hgr$2ffm6$2@dont-email.me>
<e2fafd3e-2055-4e9f-a4d9-377cef03915cn@googlegroups.com>
<00e5d648bfc898a2e9f565739eb26a5cccef1dba.camel@munted.eu>
<trhi5t$13ikm$2@dont-email.me> <trj3tq$nkv$1@reader2.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 3 Feb 2023 14:36:54 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="fb0a294d8bc1d1e2b97ffc766b304e49";
logging-data="1533705"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+K/TCB+sl+ou0A4KvmWU3S99FtQCVgOY4="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:dIiFnKE/7fMscCJxA52gSBkG2Og=
Content-Language: en-US
In-Reply-To: <trj3tq$nkv$1@reader2.panix.com>
 by: Arne Vajhøj - Fri, 3 Feb 2023 14:36 UTC

On 2/3/2023 8:58 AM, Dan Cross wrote:
> In article <trhi5t$13ikm$2@dont-email.me>,
> Arne Vajhøj <arne@vajhoej.dk> wrote:
>> On 2/2/2023 10:08 AM, Single Stage to Orbit wrote:
>>> On Thu, 2023-02-02 at 06:40 -0800, plugh wrote:
>>>>> I'm currently teaching myself Rust and have been for the past two
>>>>> years. It is a most interesting programming language.
>>>>
>>>> It would be interesting to make this available on the new VMS. I had
>>>> some notes on this, but I don't think I kept them.
>>>
>>> LLVM supports x86_64 and ELF out the box, so I imagine the truly hard
>>> bits wil be the bindings to OpenVMS calls and data structures.
>>
>> I suspect that there is a bit more to get a LLVM based compiler
>> working on VMS x86-64 than that.
>>
>>> Async
>>> and locking primitives will need to be implemented, that won't be easy.
>>
>> Isn't async build on top of threads?
>
> No, not necessarily. async can be used to build threads,
> and async executors can run in threads, but the two are
> in many ways duals of one another.

It is two very different programming models.

But the usual async await model is that it is syntactic
sugar that under the hood creates a task that get scheduled
to run in a thread pool.

From as programming model perspective it is:

async await - task and thread pool - raw threads

But implementation wise it is different levels of abstraction:

async await
|
task and thread pool
|
raw threads

For someone developing applications in Rust then the
programming model is what is important.

But for porting Rust compiler and runtime to a new OS,
then the implementation matters.

My expectation would be that if the OS expose a
working pthreads C library then Rust could do
async await on that platform as all the layers
in between would work.

Of course all this stuff is most useful if
there is support for async IO. VMS most definitely
support that. But depending on what Rust rely on
then there may be a gap between what the Rust
runtime expects and what VMS has.

Bridging *nix centric IO and VMS IO can be
tricky. Just look at the Java IO on VMS
mess.

So I am not definitely not saying that getting
Rust running on VMS will be easy.

Arne

Re: VMS Software Q1 '23 Update

<trj9ee$m8n$1@reader2.panix.com>

  copy mid

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

  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 Software Q1 '23 Update
Date: Fri, 3 Feb 2023 15:32:30 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <trj9ee$m8n$1@reader2.panix.com>
References: <tr4hgr$2ffm6$2@dont-email.me> <trhi5t$13ikm$2@dont-email.me> <trj3tq$nkv$1@reader2.panix.com> <trj666$1epo9$2@dont-email.me>
Injection-Date: Fri, 3 Feb 2023 15:32:30 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="22807"; 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 - Fri, 3 Feb 2023 15:32 UTC

In article <trj666$1epo9$2@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 2/3/2023 8:58 AM, Dan Cross wrote:
>>> Isn't async build on top of threads?
>>
>> No, not necessarily. async can be used to build threads,
>> and async executors can run in threads, but the two are
>> in many ways duals of one another.
>
>It is two very different programming models.
>
>But the usual async await model is that it is syntactic
>sugar that under the hood creates a task that get scheduled
>to run in a thread pool.

You're conflating async/await and the executor model generally
with executors running in thread pools. The two are separable,
and one can write a totally custom executor that runs completely
independently of an underlying thread abstraction.

> From as programming model perspective it is:
>
>async await - task and thread pool - raw threads
>
>But implementation wise it is different levels of abstraction:
>
>async await
> |
>task and thread pool
> |
>raw threads

Nope. See above.

>For someone developing applications in Rust then the
>programming model is what is important.
>
>But for porting Rust compiler and runtime to a new OS,
>then the implementation matters.

I'm talking about the implementation.

There is no, "Rust Runtime" per se, which is one of the things
that makes it so pleasant for bare-metal and kernel development:
turn on the computer, get running wherever you're linked at, set
up a stack, and jump into Rust code. For example, here's the
boot loader I wrote for our machines. It runs from the x86
reset vector: https://github.com/oxidecomputer/phbl/

There _is_ a standard library, but how it's implemented varies
based on target.

>My expectation would be that if the OS expose a
>working pthreads C library then Rust could do
>async await on that platform as all the layers
>in between would work.

Pthreads, or any other such thread implementation, are not
required for async Rust to be implemented on a system. For
example, look at "lilos", which is targeted towards
microcontrollers, and makes heavy use of `async`:
https://github.com/cbiffle/lilos/

System developers, e.g., those doing an OpenVMS port, may
_choose_ to run executors in terms of the underlying thread
primitives provided by the OS, but that's not at all required.

>Of course all this stuff is most useful if
>there is support for async IO. VMS most definitely
>support that. But depending on what Rust rely on
>then there may be a gap between what the Rust
>runtime expects and what VMS has.

Again, there is no, "Rust runtime" in the sense you're implying.

>Bridging *nix centric IO and VMS IO can be
>tricky. Just look at the Java IO on VMS
>mess.
>
>So I am not definitely not saying that getting
>Rust running on VMS will be easy.

I don't see why not, honestly. Bringing over the standard
library may be a bit of work, but there's a Windows port and in
an ironic twist of fate, that may well serve as an example of
how to implement the VMS-specific bits.

- Dan C.

Pages:123456
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor