Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

<wiggy> bwah, vodka in my mouse


computers / comp.os.vms / Re: C et al (was: Re: Rust as a HS language, was: Re: Quiet?)

SubjectAuthor
* Rust as a HS language, was: Re: Quiet?Simon Clubley
+* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
|`* Re: Rust as a HS language, was: Re: Quiet?Simon Clubley
| +* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| |+* Re: Rust as a HS language, was: Re: Quiet?Dave Froble
| ||+- Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| ||+* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| |||`* Re: Rust as a HS language, was: Re: Quiet?Simon Clubley
| ||| `- Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| ||`* Re: Rust as a HS language, was: Re: Quiet?Simon Clubley
| || `- Re: Rust as a HS language, was: Re: Quiet?Dave Froble
| |`* Re: Rust as a HS language, was: Re: Quiet?Simon Clubley
| | `* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| |  `* Re: Rust as a HS language, was: Re: Quiet?Chris Townley
| |   +- Re: Rust as a HS language, was: Re: Quiet?Bill Gunshannon
| |   +* Re: Rust as a HS language, was: Re: Quiet?Jan-Erik Söderholm
| |   |`- Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| |   `* Re: Rust as a HS language, was: Re: Quiet?Simon Clubley
| |    `* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| |     `- Re: Rust as a HS language, was: Re: Quiet?Simon Clubley
| +- Re: Rust as a HS language, was: Re: Quiet?Craig A. Berry
| `* Re: Rust as a HS language, was: Re: Quiet?chris
|  `* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
|   `* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
|    `* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
|     +* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
|     |`- Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
|     `* Re: Rust as a HS language, was: Re: Quiet?chris
|      `* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
|       `* Re: Rust as a HS language, was: Re: Quiet?chris
|        +* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
|        |`* Re: Rust as a HS language, was: Re: Quiet?chris
|        | `* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
|        |  `- Re: Rust as a HS language, was: Re: Quiet?chris
|        +- Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
|        `* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
|         `* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
|          +* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
|          |`* Re: Rust as a HS language, was: Re: Quiet?Johnny Billquist
|          | `- Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
|          `* Re: Rust as a HS language, was: Re: Quiet?Johnny Billquist
|           `* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
|            +* Re: Rust as a HS language, was: Re: Quiet?Simon Clubley
|            |`- Re: Rust as a HS language, was: Re: Quiet?Dan Cross
|            `* Re: Rust as a HS language, was: Re: Quiet?Johnny Billquist
|             `- Re: Rust as a HS language, was: Re: Quiet?Dan Cross
+* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
|`* Re: Rust as a HS language, was: Re: Quiet?Simon Clubley
| +* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| |+- Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| |`* Re: Rust as a HS language, was: Re: Quiet?Dave Froble
| | `* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| |  `* Re: Rust as a HS language, was: Re: Quiet?Dave Froble
| |   `- Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| +* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| |`* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| | +* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| | |+* Re: Rust as a HS language, was: Re: Quiet?Bill Gunshannon
| | ||+* Re: Rust as a HS language, was: Re: Quiet?plugh
| | |||`- Re: Rust as a HS language, was: Re: Quiet?plugh
| | ||+* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| | |||`* Re: Rust as a HS language, was: Re: Quiet?Simon Clubley
| | ||| +* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| | ||| |`* Re: Rust as a HS language, was: Re: Quiet?Bill Gunshannon
| | ||| | +- Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| | ||| | `* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| | ||| |  `- Unsafe coding, was: Re: Rust as a HS languageSimon Clubley
| | ||| `* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| | |||  `* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| | |||   `* Re: Rust as a HS language, was: Re: Quiet?Simon Clubley
| | |||    +- Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| | |||    `* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| | |||     +* Re: Rust as a HS language, was: Re: Quiet?chris
| | |||     |+* Re: Rust as a HS language, was: Re: Quiet?VAXman-
| | |||     ||`* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| | |||     || `* Re: Rust as a HS language, was: Re: Quiet?Simon Clubley
| | |||     ||  +* Re: Rust as a HS language, was: Re: Quiet?Dave Froble
| | |||     ||  |`* Re: Rust as a HS language, was: Re: Quiet?Bill Gunshannon
| | |||     ||  | `- Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| | |||     ||  `* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| | |||     ||   `- Re: Rust as a HS language, was: Re: Quiet?chris
| | |||     |`* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| | |||     | +* Re: Rust as a HS language, was: Re: Quiet?Bill Gunshannon
| | |||     | |+* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| | |||     | ||+* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| | |||     | |||`- Re: Rust as a HS language, was: Re: Quiet?Dave Froble
| | |||     | ||`* Re: Rust as a HS language, was: Re: Quiet?Dave Froble
| | |||     | || +- Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| | |||     | || `* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| | |||     | ||  +* Re: Rust as a HS language, was: Re: Quiet?Dave Froble
| | |||     | ||  |`* Re: Rust as a HS language, was: Re: Quiet?Dan Cross
| | |||     | ||  | `- Re: Rust as a HS language, was: Re: Quiet?Dave Froble
| | |||     | ||  `* Re: Rust as a HS language, was: Re: Quiet?chris
| | |||     | ||   `- Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| | |||     | |+* Re: Rust as a HS language, was: Re: Quiet?chris
| | |||     | ||`* Re: Rust as a HS language, was: Re: Quiet?Dave Froble
| | |||     | || `- Re: Rust as a HS language, was: Re: Quiet?Bill Gunshannon
| | |||     | |`- Re: Rust as a HS language, was: Re: Quiet?Dave Froble
| | |||     | +- Re: Rust as a HS language, was: Re: Quiet?chris
| | |||     | `- Re: Rust as a HS language, was: Re: Quiet?Dave Froble
| | |||     `* Re: Rust as a HS language, was: Re: Quiet?Simon Clubley
| | ||`* Re: Rust as a HS language, was: Re: Quiet?Arne Vajhøj
| | |`* Re: Rust as a HS language, was: Re: Quiet?plugh
| | `* Re: Rust as a HS language, was: Re: Quiet?Simon Clubley
| `- Re: Rust as a HS language, was: Re: Quiet?chris
`- Re: Rust as a HS language, was: Re: Quiet?Galen

Pages:12345678910
Re: C et al (was: Re: Rust as a HS language, was: Re: Quiet?)

<t31i38$1t7$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: C et al (was: Re: Rust as a HS language, was: Re: Quiet?)
Date: Mon, 11 Apr 2022 11:39:20 -0400
Organization: HoffmanLabs LLC
Lines: 44
Message-ID: <t31i38$1t7$1@dont-email.me>
References: <6251fe92$0$696$14726298@news.sunsite.dk> <memo.20220409231014.22520b@jgd.cix.co.uk> <t2tff1$l99$1@dont-email.me> <t2v09n$sgf$1@dont-email.me> <t319jv$92b$5@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="6eac88bef5d0d2eefdcfd2bb08331dab";
logging-data="1959"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fm7QDxn4fd/3WXmcS4P1U6tm2PstGfKI="
User-Agent: Unison/2.2
Cancel-Lock: sha1:PWlfYKcG0H5aFLDH3AC5E8uYwNo=
 by: Stephen Hoffman - Mon, 11 Apr 2022 15:39 UTC

On 2022-04-11 13:14:39 +0000, Simon Clubley said:

> On 2022-04-10, Stephen Hoffman <seaohveh@hoffmanlabs.invalid> wrote:
>> On 2022-04-10 02:29:53 +0000, Stephen Hoffman said:
>>
>>> My usual pointer to just what volatile provides, and doesn't provide:
>>>
>>> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1152r0.html
>>
>> For those that believe there is but one write with volatile, there's
>> one write per byte yes, but there can be multiple and arbitrary-ordered
>> writes involved within that operation.
>>
>
> Any compiler doing anything as brain-dead as that would instantly be
> dropped and if it was an open-source compiler, would instantly be
> forked, XFree86 style, and the brain-dead additions removed.

That's unclear, as there can be differences between the C abstract
machine and the physical machine—such as around unaligned memory
access. q.v. Alpha.

If you can only do one write to a range of bytes per volatile, and if
the memory address is unaligned, then you can have to do that in
separate writes with older Alpha.

The older Alpha hardware didn't have the instructions necessary for
that memory access.

The compiler would preferentially align the memory address, but that's
not necessarily always possible with machine registers.

In C, the ways of volatile are subtle and quick to anger.

As much as I can and do use C and will continue to use C on OpenVMS and
elsewhere, I'm also looking forward to access to UBSan and some new
tooling, and to Clang, to make existing and new C code better.

And I'll continue to look into options and alternatives, including
Swift. Maybe zig. Albeit that not on OpenVMS.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: C et al (was: Re: Rust as a HS language, was: Re: Quiet?)

<t31kl2$a3l$1@reader1.panix.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cro...@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.os.vms
Subject: Re: C et al (was: Re: Rust as a HS language, was: Re: Quiet?)
Date: Mon, 11 Apr 2022 16:22:58 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <t31kl2$a3l$1@reader1.panix.com>
References: <6251fe92$0$696$14726298@news.sunsite.dk> <t2v09n$sgf$1@dont-email.me> <t319jv$92b$5@dont-email.me> <t31i38$1t7$1@dont-email.me>
Injection-Date: Mon, 11 Apr 2022 16:22:58 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="10357"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)
 by: Dan Cross - Mon, 11 Apr 2022 16:22 UTC

In article <t31i38$1t7$1@dont-email.me>,
Stephen Hoffman <seaohveh@hoffmanlabs.invalid> wrote:
>In C, the ways of volatile are subtle and quick to anger.
>
>As much as I can and do use C and will continue to use C on OpenVMS and
>elsewhere, I'm also looking forward to access to UBSan and some new
>tooling, and to Clang, to make existing and new C code better.
>
>And I'll continue to look into options and alternatives, including
>Swift. Maybe zig. Albeit that not on OpenVMS.

This, along with many other reasons, is what finally convinced
me to start looking at real alternatives to C for kernel-level
programming. I maintain that Rust sits at a local maxima right
now with respect to the combination of efficiency, expressive
power, and safety for that application domain. It's not perfect
though, and if a better alternative comes along, I'll gladly
give it a fair shake.

- Dan C.

Re: C et al (was: Re: Rust as a HS language, was: Re: Quiet?)

<t31q3t$pr0$4@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: C et al (was: Re: Rust as a HS language, was: Re: Quiet?)
Date: Mon, 11 Apr 2022 17:56:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <t31q3t$pr0$4@dont-email.me>
References: <6251fe92$0$696$14726298@news.sunsite.dk> <memo.20220409231014.22520b@jgd.cix.co.uk> <t2tff1$l99$1@dont-email.me> <t2v09n$sgf$1@dont-email.me> <t319jv$92b$5@dont-email.me> <t31i38$1t7$1@dont-email.me>
Injection-Date: Mon, 11 Apr 2022 17:56:13 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a1d310d89677f7fdedc2e25b5f724c79";
logging-data="26464"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bjcZFV1mPWc2t6gJZAjcjm4Ln642a9ZA="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:EVZrkWrG5l3g/wBr3kQ200U6KDc=
 by: Simon Clubley - Mon, 11 Apr 2022 17:56 UTC

On 2022-04-11, Stephen Hoffman <seaohveh@hoffmanlabs.invalid> wrote:
> On 2022-04-11 13:14:39 +0000, Simon Clubley said:
>
>> On 2022-04-10, Stephen Hoffman <seaohveh@hoffmanlabs.invalid> wrote:
>>> On 2022-04-10 02:29:53 +0000, Stephen Hoffman said:
>>>
>>>> My usual pointer to just what volatile provides, and doesn't provide:
>>>>
>>>> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1152r0.html
>>>
>>> For those that believe there is but one write with volatile, there's
>>> one write per byte yes, but there can be multiple and arbitrary-ordered
>>> writes involved within that operation.
>>>
>>
>> Any compiler doing anything as brain-dead as that would instantly be
>> dropped and if it was an open-source compiler, would instantly be
>> forked, XFree86 style, and the brain-dead additions removed.
>
> That's unclear, as there can be differences between the C abstract
> machine and the physical machine?such as around unaligned memory
> access. q.v. Alpha.
>

Ok. I'll modify my statement to call the compiler brain-dead if the
hardware can support addresses being accessed in the correct way, but
the compiler chooses to follow the above rules instead.

Simon.

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

Re: C et al (was: Re: Rust as a HS language, was: Re: Quiet?)

<6254bb5f$0$705$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Mon, 11 Apr 2022 19:35:53 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Subject: Re: C et al (was: Re: Rust as a HS language, was: Re: Quiet?)
Content-Language: en-US
Newsgroups: comp.os.vms
References: <6251fe92$0$696$14726298@news.sunsite.dk>
<memo.20220409231014.22520b@jgd.cix.co.uk> <t2tff1$l99$1@dont-email.me>
<t2v09n$sgf$1@dont-email.me> <t319jv$92b$5@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <t319jv$92b$5@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 44
Message-ID: <6254bb5f$0$705$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 8e0cc9b3.news.sunsite.dk
X-Trace: 1649720159 news.sunsite.dk 705 arne@vajhoej.dk/68.9.63.232:51269
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Mon, 11 Apr 2022 23:35 UTC

On 4/11/2022 9:14 AM, Simon Clubley wrote:
> On 2022-04-10, Stephen Hoffman <seaohveh@hoffmanlabs.invalid> wrote:
>> On 2022-04-10 02:29:53 +0000, Stephen Hoffman said:
>>> My usual pointer to just what volatile provides, and doesn't provide:
>>>
>>> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1152r0.html
>>
>> For those that believe there is but one write with volatile, there's
>> one write per byte yes, but there can be multiple and arbitrary-ordered
>> writes involved within that operation.
>
> Any compiler doing anything as brain-dead as that would instantly be
> dropped and if it was an open-source compiler, would instantly be
> forked, XFree86 style, and the brain-dead additions removed.

If we look at the language standard, then ISO C has a lot of
undefined and implementation specific behavior. There are lot
of C code but not that much which is guaranteed to work by ISO C
standard.

"C deemed not brain-dead by Simon" is a very unofficial standard
that is not so relevant.

The practical impact may not be so big though.

I suspect that your use case may be typical for such code:

# Reasoning: the most common use of volatile I have in my code is
# for reading and writing to device registers.

You just need to know that the compiler you use will
do what you expect. You do not care if some compiler
somewhere else does not, because such code would
need to be rewritten anyway if ported read as
reimplemented for that platform.

C is more portable than assembler, but it is not that easy
to write 100% portable code in C. But then like above: if
100% portability is a requirement, then C is most likely not
the right choice of language!

Arne

Re: C et al (was: Re: Rust as a HS language, was: Re: Quiet?)

<t34gle$hs5$1@reader1.panix.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cro...@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.os.vms
Subject: Re: C et al (was: Re: Rust as a HS language, was: Re: Quiet?)
Date: Tue, 12 Apr 2022 18:33:18 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <t34gle$hs5$1@reader1.panix.com>
References: <6251fe92$0$696$14726298@news.sunsite.dk> <t2v09n$sgf$1@dont-email.me> <t319jv$92b$5@dont-email.me> <6254bb5f$0$705$14726298@news.sunsite.dk>
Injection-Date: Tue, 12 Apr 2022 18:33:18 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="18309"; 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 - Tue, 12 Apr 2022 18:33 UTC

In article <6254bb5f$0$705$14726298@news.sunsite.dk>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 4/11/2022 9:14 AM, Simon Clubley wrote:
>> On 2022-04-10, Stephen Hoffman <seaohveh@hoffmanlabs.invalid> wrote:
>>> On 2022-04-10 02:29:53 +0000, Stephen Hoffman said:
>>>> My usual pointer to just what volatile provides, and doesn't provide:
>>>>
>>>> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1152r0.html
>>>
>>> For those that believe there is but one write with volatile, there's
>>> one write per byte yes, but there can be multiple and arbitrary-ordered
>>> writes involved within that operation.
>>
>> Any compiler doing anything as brain-dead as that would instantly be
>> dropped and if it was an open-source compiler, would instantly be
>> forked, XFree86 style, and the brain-dead additions removed.
>
>If we look at the language standard, then ISO C has a lot of
>undefined and implementation specific behavior. There are lot
>of C code but not that much which is guaranteed to work by ISO C
>standard.

This thread started off with assertions that one of the big
problems with Rust is that it doesn't have an official standard.
Now we find that the standard has behavior that is surprising,
even to seasoned hands! Indeed, this was one of the impetuses
for the creation of Rust.

>"C deemed not brain-dead by Simon" is a very unofficial standard
>that is not so relevant.
>
>The practical impact may not be so big though.
>
>I suspect that your use case may be typical for such code:
>
># Reasoning: the most common use of volatile I have in my code is
># for reading and writing to device registers.
>
>You just need to know that the compiler you use will
>do what you expect.

An issue here is that the compiler may change, even over the
lifetime of a single project. Linux started with some version
of GCC; now it will compile with much more recent versions
(that are sufficiently different that they're different
compilers for all intents and purposes) and clang, which wasn't
even a twinkle in Lattner's eye when Torvalds started.

>You do not care if some compiler
>somewhere else does not, because such code would
>need to be rewritten anyway if ported read as
>reimplemented for that platform.

Or the compiler version changes or you port to a new hardware
platform or....

>C is more portable than assembler, but it is not that easy
>to write 100% portable code in C. But then like above: if
>100% portability is a requirement, then C is most likely not
>the right choice of language!

Even portability to what one might call oneself over time!

- Dan C.

Re: Rust as a HS language, was: Re: Quiet?

<t34r0l$cp7$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!/ReFBvBOC/0j4ziiar0/qg.user.46.165.242.75.POSTED!not-for-mail
From: no_em...@invalid.invalid (Galen)
Newsgroups: comp.os.vms
Subject: Re: Rust as a HS language, was: Re: Quiet?
Date: Tue, 12 Apr 2022 21:29:57 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <t34r0l$cp7$1@gioia.aioe.org>
References: <t2eo9n$mj7$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="13095"; posting-host="/ReFBvBOC/0j4ziiar0/qg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: NewsTap/5.5 (iPad)
Cancel-Lock: sha1:kM7dB9+6U8opEQKI+sOWwGOt9yA=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Galen - Tue, 12 Apr 2022 21:29 UTC

Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
> On 2022-04-03, plugh <jchimene@gmail.com> wrote:
>>
>> Perhaps this will stimulate a discussion
>>
>> https://highassurance.rs
>
> There are 3 things that switch me off from considering Rust as a HA language.
> These 3 things are more important than any specific advantages that Rust
> might have over other programming languages.
>
> 1) The syntax. It's horrible and imposes a higher cognitive load than
> it needs to when you are looking at something new or revisiting old code.
> That means you are more likely to miss something or work a lot harder
> than you need to in order to understand the code.
>
> One of the official Ada RMs/Style Guides/etc had it right when it pointed
> out that you write the code once but read it many times. The Rust people
> have forgotten this.
>
> 2) No official ISO or similar language standard I can rely on 5/10/20 years
> from now when I need to work on my safety or general production critical
> code at that point.
>
> Even though many of the Rust people appear not to understand this, the
> lack of those guarantees is a _massive_ problem in the real world.
>
> 3) Unlike mainstream programming languages, the Rust community always
> seems to be lurching from one social drama to the next.
>
> That in itself is an instant switchoff because the community is one
> major social crisis away from falling apart (at least until it's then
> rebuilt and a new direction emerges).
>
> You can't rely on a programming language when something like that is
> a real possibility. You wouldn't see social crisis stuff on the C/C++/Ada
> language standards groups for example.
>
> Simon.
>

This has become another incarnation of The Thread That Would Not Die.

Re: C et al (was: Re: Rust as a HS language, was: Re: Quiet?)

<t34uhq$vlv$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: C et al (was: Re: Rust as a HS language, was: Re: Quiet?)
Date: Tue, 12 Apr 2022 22:30:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <t34uhq$vlv$2@dont-email.me>
References: <6251fe92$0$696$14726298@news.sunsite.dk> <t2v09n$sgf$1@dont-email.me> <t319jv$92b$5@dont-email.me> <6254bb5f$0$705$14726298@news.sunsite.dk> <t34gle$hs5$1@reader1.panix.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 12 Apr 2022 22:30:18 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="695020543a52d78e7a7c7400b4f5ba91";
logging-data="32447"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19TTkGeuBd3uV4qP7KLbIOohNr0WWrDs7w="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:3j72Qc08ujGhXlSwOjvugaYkIKs=
 by: Simon Clubley - Tue, 12 Apr 2022 22:30 UTC

On 2022-04-12, Dan Cross <cross@spitfire.i.gajendra.net> wrote:
> In article <6254bb5f$0$705$14726298@news.sunsite.dk>,
> Arne Vajhøj <arne@vajhoej.dk> wrote:
>>C is more portable than assembler, but it is not that easy
>>to write 100% portable code in C. But then like above: if
>>100% portability is a requirement, then C is most likely not
>>the right choice of language!
>
> Even portability to what one might call oneself over time!
>

:-)

I really, really, wish DEC had followed through on Pillar.

If it took off, we would have had an alternative to C by now.

As I've mentioned before, I use C because it is the most viable
choice in the places I use it, not because it is the best choice.

Simon.

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

Pages:12345678910
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor