Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Language shapes the way we think, and determines what we can think about." -- B. L. Whorf


computers / comp.os.vms / Re: Why Linux ?, was: Re: VMS article in The Register

SubjectAuthor
* Why Linux ?, was: Re: VMS article in The RegisterSimon Clubley
`* Re: Why Linux ?, was: Re: VMS article in The RegisterBill Gunshannon
 `* Re: Why Linux ?, was: Re: VMS article in The RegisterJake Hamby
  +* Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
  |+* Re: Why Linux ?, was: Re: VMS article in The RegisterPaul Hardy
  ||`* Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
  || `* Re: Why Linux ?, was: Re: VMS article in The RegisterJan-Erik Söderholm
  ||  `- Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
  |+* Re: Why Linux ?, was: Re: VMS article in The RegisterSimon Clubley
  ||`- Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
  |`* Re: Why Linux ?, was: Re: VMS article in The RegisterBill Gunshannon
  | +* Re: Why Linux ?, was: Re: VMS article in The RegisterJake Hamby
  | |+- Re: Why Linux ?, was: Re: VMS article in The RegisterJohn Dallman
  | |`* Re: Why Linux ?, was: Re: VMS article in The RegisterCraig A. Berry
  | | +* Re: Why Linux ?, was: Re: VMS article in The RegisterJake Hamby
  | | |`- Re: Why Linux ?, was: Re: VMS article in The RegisterCraig A. Berry
  | | `* Re: Why Linux ?, was: Re: VMS article in The RegisterJohn Reagan
  | |  `* Re: Why Linux ?, was: Re: VMS article in The RegisterCraig A. Berry
  | |   `- Re: Why Linux ?, was: Re: VMS article in The RegisterJohn Reagan
  | `- Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
  `* Re: Why Linux ?, was: Re: VMS article in The RegisterSimon Clubley
   `* Re: Why Linux ?, was: Re: VMS article in The RegisterJohn Reagan
    +- Re: Why Linux ?, was: Re: VMS article in The RegisterSimon Clubley
    `* Re: Why Linux ?, was: Re: VMS article in The RegisterStephen Hoffman
     +* Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
     |+* Re: Why Linux ?, was: Re: VMS article in The RegisterStephen Hoffman
     ||`* Re: Why Linux ?, was: Re: VMS article in The RegisterStephen Hoffman
     || `* Re: Why Linux ?, was: Re: VMS article in The RegisterSimon Clubley
     ||  `- Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
     |`* Re: Why Linux ?, was: Re: VMS article in The Registerchris
     | +* Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
     | |`* Re: Why Linux ?, was: Re: VMS article in The Registerchris
     | | +* Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
     | | |`* Re: Why Linux ?, was: Re: VMS article in The RegisterBill Gunshannon
     | | | `- Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
     | | `- Re: Why Linux ?, was: Re: VMS article in The RegisterBill Gunshannon
     | `- Re: Why Linux ?, was: Re: VMS article in The RegisterBill Gunshannon
     `* Re: Why Linux ?, was: Re: VMS article in The RegisterBill Gunshannon
      +* Re: Why Linux ?, was: Re: VMS article in The RegisterSimon Clubley
      |`* Re: Why Linux ?, was: Re: VMS article in The RegisterBill Gunshannon
      | `* Re: Why Linux ?, was: Re: VMS article in The RegisterDave Froble
      |  `- Re: Why Linux ?, was: Re: VMS article in The RegisterBill Gunshannon
      `* Re: Why Linux ?, was: Re: VMS article in The RegisterStephen Hoffman
       +* Re: Why Linux ?, was: Re: VMS article in The RegisterBill Gunshannon
       |+- Re: Why Linux ?, was: Re: VMS article in The RegisterStephen Hoffman
       |`* Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
       | `* Re: Why Linux ?, was: Re: VMS article in The RegisterBill Gunshannon
       |  `* Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
       |   `* Re: Why Linux ?, was: Re: VMS article in The RegisterBill Gunshannon
       |    `* Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
       |     `* Re: Why Linux ?, was: Re: VMS article in The RegisterBill Gunshannon
       |      +* Re: Why Linux ?, was: Re: VMS article in The RegisterJake Hamby
       |      |`* Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
       |      | `* Re: Why Linux ?, was: Re: VMS article in The RegisterJohn Reagan
       |      |  `* Re: Why Linux ?, was: Re: VMS article in The RegisterJake Hamby
       |      |   +- Re: Why Linux ?, was: Re: VMS article in The RegisterJohn Reagan
       |      |   `- Re: Why Linux ?, was: Re: VMS article in The RegisterArne Vajhøj
       |      `* Re: Why Linux ?, was: Re: VMS article in The RegisterStephen Hoffman
       |       `* Re: Why Linux ?, was: Re: VMS article in The RegisterBill Gunshannon
       |        +- Re: Why Linux ?, was: Re: VMS article in The RegisterDave Froble
       |        `- Re: Why Linux ?, was: Re: VMS article in The RegisterStephen Hoffman
       `* Re: Why Linux ?, was: Re: VMS article in The RegisterJake Hamby
        +* Re: Why Linux ?, was: Re: VMS article in The RegisterJake Hamby
        |`* Re: Why Linux ?, was: Re: VMS article in The RegisterJohn Reagan
        | `* Re: Why Linux ?, was: Re: VMS article in The RegisterJake Hamby
        |  `- Re: Why Linux ?, was: Re: VMS article in The RegisterJohn Reagan
        `- Re: Why Linux ?, was: Re: VMS article in The RegisterStephen Hoffman

Pages:123
Re: Why Linux ?, was: Re: VMS article in The Register

<jenet1FfmjaU1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (Bill Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Date: Thu, 19 May 2022 14:00:01 -0400
Lines: 66
Message-ID: <jenet1FfmjaU1@mid.individual.net>
References: <t5j0si$jm8$4@dont-email.me> <je4kkuFrm0hU1@mid.individual.net>
<573cf2f7-9888-43cb-b5b1-bd95f8043ed6n@googlegroups.com>
<t5u43k$13f$4@dont-email.me>
<c38ce173-3cba-431a-9747-8fbf63c654ccn@googlegroups.com>
<t5u8il$qmq$1@dont-email.me> <6282aadd$0$705$14726298@news.sunsite.dk>
<t6006g$12dv$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 49+KBz7YZfkA0HvX5mCTcACvfru++LJ97zCNcpgyzrWed4rrbR
Cancel-Lock: sha1:O9MKiDrswV1pjrfqKj76F/aE1ic=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Content-Language: en-US
In-Reply-To: <t6006g$12dv$1@gioia.aioe.org>
 by: Bill Gunshannon - Thu, 19 May 2022 18:00 UTC

On 5/17/22 07:16, chris wrote:
> On 05/16/22 20:49, Arne Vajhøj wrote:
>> On 5/16/2022 3:27 PM, Stephen Hoffman wrote:
>>> On 2022-05-16 18:22:55 +0000, John Reagan said:
>>>> It is just another setting in the C frontend, so yes, it is there on
>>>> x86.  However, it hides SOOOO MANY errors and bad programming that I
>>>> strongly suggest people stop using it everywhere.
>>>
>>> If working with or updating old K&R C code, simply finding that
>>> compiler switch usually means added work remediating the issues
>>> reported by newer C compilers and newer C standards.
>>
>>> Fix the latent errors now, or troubleshoot in acceptance testing and
>>> production and find and fix a subset of the bugs later.
>>>
>>> Code refactoring and remediation is an ongoing and necessary project
>>> in all non-trivial code-bases, and finding K&R C code means it's been
>>> a while.
>>
>> I agree with the advice to get rid of any code requiring /STANDARD=VAXC.
>>
>> But I think those with the problem should consider whether
>> rewriting to standard C99 is the right choice or maybe go
>> for another language.
>>
>> If it is a device driver or similar then sure C is obvious.
>> But if it is a piece of business logic, then why should it
>> stay in C.
>>
>> Back in the mid-late 80's there were not that many
>> common alternatives and it was a period when some
>> people thought that C would take over the world and
>> everything should be written in C.
>>
>> Since then the number of languages has increased. And
>> many have realized that C is good for some things but
>> not good for a lot of other things.
>>
>> Maybe going C++ and a higher abstraction
>> level would make sense.
>>
>> Maybe going a lot higher and go for Java or
>> Python make sense.
>>
>> Maybe sticking to traditional procedural
>> but switching to Pascal or Basic make sense.
>>
>> Arne
>>
>>
>
> But most important of all, that sort of code refactoring needs
> people fluent in both the original and substitute languages.
> Since C is the most widely used language. might make sense to
> stick with it.
>
> Recipe for disaster to choose a substitute language which
> has a small available pool of programmers. Increases costs
> and risk of serious bugs...
>

Thank you. You beat me to it and said it more eloquently than I
would have.

bill

Re: Why Linux ?, was: Re: VMS article in The Register

<jenf31FfmjaU2@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (Bill Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Date: Thu, 19 May 2022 14:03:13 -0400
Lines: 98
Message-ID: <jenf31FfmjaU2@mid.individual.net>
References: <t5j0si$jm8$4@dont-email.me> <je4kkuFrm0hU1@mid.individual.net>
<573cf2f7-9888-43cb-b5b1-bd95f8043ed6n@googlegroups.com>
<t5u43k$13f$4@dont-email.me>
<c38ce173-3cba-431a-9747-8fbf63c654ccn@googlegroups.com>
<t5u8il$qmq$1@dont-email.me> <6282aadd$0$705$14726298@news.sunsite.dk>
<t6006g$12dv$1@gioia.aioe.org> <628406a6$0$698$14726298@news.sunsite.dk>
<t6192v$1kde$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net OZgI62EVbb//hwf0yJWJbw5pdHS2gkFDbhOpcdAjJPMnr3kWej
Cancel-Lock: sha1:xICGcNnSh4h1mvv6eRtad4ORkeM=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Content-Language: en-US
In-Reply-To: <t6192v$1kde$1@gioia.aioe.org>
 by: Bill Gunshannon - Thu, 19 May 2022 18:03 UTC

On 5/17/22 18:54, chris wrote:
> On 05/17/22 21:33, Arne Vajhøj wrote:
>> On 5/17/2022 7:16 AM, chris wrote:
>>> On 05/16/22 20:49, Arne Vajhøj wrote:
>>>> On 5/16/2022 3:27 PM, Stephen Hoffman wrote:
>>>>> On 2022-05-16 18:22:55 +0000, John Reagan said:
>>>>>> It is just another setting in the C frontend, so yes, it is there on
>>>>>> x86.  However, it hides SOOOO MANY errors and bad programming that I
>>>>>> strongly suggest people stop using it everywhere.
>>>>>
>>>>> If working with or updating old K&R C code, simply finding that
>>>>> compiler switch usually means added work remediating the issues
>>>>> reported by newer C compilers and newer C standards.
>>>>
>>>>> Fix the latent errors now, or troubleshoot in acceptance testing and
>>>>> production and find and fix a subset of the bugs later.
>>>>>
>>>>> Code refactoring and remediation is an ongoing and necessary project
>>>>> in all non-trivial code-bases, and finding K&R C code means it's been
>>>>> a while.
>>>>
>>>> I agree with the advice to get rid of any code requiring
>>>> /STANDARD=VAXC.
>>>>
>>>> But I think those with the problem should consider whether
>>>> rewriting to standard C99 is the right choice or maybe go
>>>> for another language.
>>>>
>>>> If it is a device driver or similar then sure C is obvious.
>>>> But if it is a piece of business logic, then why should it
>>>> stay in C.
>>>>
>>>> Back in the mid-late 80's there were not that many
>>>> common alternatives and it was a period when some
>>>> people thought that C would take over the world and
>>>> everything should be written in C.
>>>>
>>>> Since then the number of languages has increased. And
>>>> many have realized that C is good for some things but
>>>> not good for a lot of other things.
>>>>
>>>> Maybe going C++ and a higher abstraction
>>>> level would make sense.
>>>>
>>>> Maybe going a lot higher and go for Java or
>>>> Python make sense.
>>>>
>>>> Maybe sticking to traditional procedural
>>>> but switching to Pascal or Basic make sense.
>>>
>>> But most important of all, that sort of code refactoring needs
>>> people fluent in both the original and substitute languages.
>>
>> They need people able to read C and people able to write
>> in the new language.
>>
>>> Since C is the most widely used language. might make sense to
>>> stick with it.
>>  >
>>> Recipe for disaster to choose a substitute language which
>>> has a small available pool of programmers. Increases costs
>>> and risk of serious bugs...
>>
>> That could be a problem with Pascal and Basic.
>>
>> But you will find more Java and Python programmers than
>> C programmers today
>
> But are they software engineers ?. Different requirements
> apply, for example apps programming, web programming
> and embedded real time.

Sorry, based on what I saw in a place with a Masters Degree Program
in SE I would take a good old fashioned Programmer/Analyst over a
Software engineer any day.

>
>>
>> And probably around the same number of C++ programmers
>> as C programmers.
>>
>> And C is not really suited for the typical business
>> application - it was not created for such usage - and
>> it shows.
>>
>> Arne
>>
>
> No argument about that, but no doubt many business apps have
> been written in C in the past. C is still arguably the best
> systems programming language, despite fashions of the moment...

Actually, there is another one that was ideal but never found its
way into common usage or even off of one processor. PL/M.

bill

Re: Why Linux ?, was: Re: VMS article in The Register

<jenf84FfmjaU3@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (Bill Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Date: Thu, 19 May 2022 14:05:56 -0400
Lines: 61
Message-ID: <jenf84FfmjaU3@mid.individual.net>
References: <t5j0si$jm8$4@dont-email.me> <je4kkuFrm0hU1@mid.individual.net>
<573cf2f7-9888-43cb-b5b1-bd95f8043ed6n@googlegroups.com>
<t5u43k$13f$4@dont-email.me>
<c38ce173-3cba-431a-9747-8fbf63c654ccn@googlegroups.com>
<t5u8il$qmq$1@dont-email.me> <6282aadd$0$705$14726298@news.sunsite.dk>
<t6006g$12dv$1@gioia.aioe.org> <628406a6$0$698$14726298@news.sunsite.dk>
<t6192v$1kde$1@gioia.aioe.org> <628430a1$0$700$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ALxT2VgW3bzUxB9HuubWMw/o0fqSbH510jLJFojiEf2Q3hVmr1
Cancel-Lock: sha1:zh5CQurPkG+KSyZ30GCOmI04UBU=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Content-Language: en-US
In-Reply-To: <628430a1$0$700$14726298@news.sunsite.dk>
 by: Bill Gunshannon - Thu, 19 May 2022 18:05 UTC

On 5/17/22 19:32, Arne Vajhøj wrote:
> On 5/17/2022 6:54 PM, chris wrote:
>> On 05/17/22 21:33, Arne Vajhøj wrote:
>>> On 5/17/2022 7:16 AM, chris wrote:
>>>> Since C is the most widely used language. might make sense to
>>>> stick with it.
>>>  >
>>>> Recipe for disaster to choose a substitute language which
>>>> has a small available pool of programmers. Increases costs
>>>> and risk of serious bugs...
>>>
>>> That could be a problem with Pascal and Basic.
>>>
>>> But you will find more Java and Python programmers than
>>> C programmers today
>>
>> But are they software engineers ?.
>
> Java and C++ programmers should have the same or maybe even
> higher percentage of sofware engineers as C programmers.
>
> Python probably a bit smaller due to the admin scripters
> and the data scientists.
>
>>                                     Different requirements
>> apply, for example apps programming, web programming
>> and embedded real time.
>
> Yes.
>
> But somewhere above - long dropped from quote - I was talking about
> business applications.

All the more reason I would shun Software Engineers in favor of
old fashioned Programmer/Analysts.

>
>>> And probably around the same number of C++ programmers
>>> as C programmers.
>>>
>>> And C is not really suited for the typical business
>>> application - it was not created for such usage - and
>>> it shows.
>>
>> No argument about that, but no doubt many business apps have
>> been written in C in the past. C is still arguably the best
>> systems programming language, despite fashions of the moment...
>
> C is definitely still king in this area.
>
> And going C for that is a safe choice.
>
> Rust, Go, Hare, Zig etc. are just "promising" but not
> "proven".

Promising what? Aren't they just solutions searching for a problem?
Or new ego trips.

bill

Re: Why Linux ?, was: Re: VMS article in The Register

<t66169$pl5$4@dont-email.me>

  copy mid

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

  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: Why Linux ?, was: Re: VMS article in The Register
Date: Thu, 19 May 2022 18:10:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <t66169$pl5$4@dont-email.me>
References: <t5j0si$jm8$4@dont-email.me> <je4kkuFrm0hU1@mid.individual.net> <573cf2f7-9888-43cb-b5b1-bd95f8043ed6n@googlegroups.com> <t5u43k$13f$4@dont-email.me> <c38ce173-3cba-431a-9747-8fbf63c654ccn@googlegroups.com> <t5u8il$qmq$1@dont-email.me> <jenek0Ffj8dU2@mid.individual.net>
Injection-Date: Thu, 19 May 2022 18:10:17 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d327c006448c4a619a36cb107abf0734";
logging-data="26277"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1800X0jeUTVKp8XePiVVJz1nqlsYE9gYWM="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:JSohcM5+nt5INariJYIME3b1Rh8=
 by: Simon Clubley - Thu, 19 May 2022 18:10 UTC

On 2022-05-19, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
> On 5/16/22 15:27, Stephen Hoffman wrote:
>>
>>
>> If that remediation work doesn't happen, the new work inherently "owns"
>> the existing and quite possibly unstable K&R C code.
>>
>
> What makes the code inherently unstable just because it is K&R
> as opposed to the crap being written in the more modern languages?
>

Because of what the compilers let you get away with back then and
also didn't even bother to warn you about so you could realise there
was a problem and fix it.

These days, you get a lot more compiler errors and warnings and
code is better for it.

Have you forgotten about VAX C and what an improvement DEC C was ? :-)

Have you forgotten how bad your code is if you need to use /standard=vaxc
to compile it ? :-)

As John has just confirmed, that qualifier is still going to be
available for the GEM-based C compiler for x86-64...

Simon.

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

Re: Why Linux ?, was: Re: VMS article in The Register

<t664pc$32q$1@dont-email.me>

  copy mid

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

  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: Why Linux ?, was: Re: VMS article in The Register
Date: Thu, 19 May 2022 15:11:40 -0400
Organization: HoffmanLabs LLC
Lines: 33
Message-ID: <t664pc$32q$1@dont-email.me>
References: <jenek0Ffj8dU2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="4260fb81b3a19c37ded3b650587971b3";
logging-data="3162"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180qA0wV9MIgYlPTDnPDv2j5Q6z48UxDFc="
User-Agent: Unison/2.2
Cancel-Lock: sha1:qZS8KmhiP+CLn04sgueDCZg1keQ=
 by: Stephen Hoffman - Thu, 19 May 2022 19:11 UTC

On 2022-05-19 17:55:12 +0000, Bill Gunshannon said:

> On 5/16/22 15:27, Stephen Hoffman wrote:
>>
>>
>> If that remediation work doesn't happen, the new work inherently "owns"
>> the existing and quite possibly unstable K&R C code.
>>
>
> What makes the code inherently unstable just because it is K&R as
> opposed to the crap being written in the more modern languages?

Undetected and unresolved latent bugs. Weird bugs. Irreproducible bugs.

K&R C such as VAX C or DEC C with CC /STANDARD=VAXC is easy-mode for
adding code bugs, and that compilation usually also with YOLO-grade
diagnostics settings.

Clang building with C18 / C2X with diagnostics lit (clang -Wall, maybe
also with -Wextra) produces more reliable code.

VSI C with /STANDARD=C99 /WARN=( ENABLE=( NOC99, OBSOLESCENT, DEFUNCT,
QUESTCODE, ...), DISABLE=(...)) does well at finding trouble. Adding
VERBOSE and OVERFLOW can be useful, too.

There can be good VAX C code. It's just... very rarely encountered. If
OpenVMS C code is now compiling with /STANDARD=VAXC, then somebody
noticed the C diagnostics, and decided to ignore them.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: Why Linux ?, was: Re: VMS article in The Register

<jenjvrFglkeU1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (Bill Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Date: Thu, 19 May 2022 15:26:50 -0400
Lines: 49
Message-ID: <jenjvrFglkeU1@mid.individual.net>
References: <t5j0si$jm8$4@dont-email.me> <je4kkuFrm0hU1@mid.individual.net>
<573cf2f7-9888-43cb-b5b1-bd95f8043ed6n@googlegroups.com>
<t5u43k$13f$4@dont-email.me>
<c38ce173-3cba-431a-9747-8fbf63c654ccn@googlegroups.com>
<t5u8il$qmq$1@dont-email.me> <jenek0Ffj8dU2@mid.individual.net>
<t66169$pl5$4@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 9bikIwkaox+kGv9Jge4Y4Q+WBh5hVnnFxxdOaecZPBupVlvrEM
Cancel-Lock: sha1:HhCzlmIs6n5pJQk4V3KmYbE7bEc=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Content-Language: en-US
In-Reply-To: <t66169$pl5$4@dont-email.me>
 by: Bill Gunshannon - Thu, 19 May 2022 19:26 UTC

On 5/19/22 14:10, Simon Clubley wrote:
> On 2022-05-19, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>> On 5/16/22 15:27, Stephen Hoffman wrote:
>>>
>>>
>>> If that remediation work doesn't happen, the new work inherently "owns"
>>> the existing and quite possibly unstable K&R C code.
>>>
>>
>> What makes the code inherently unstable just because it is K&R
>> as opposed to the crap being written in the more modern languages?
>>
>
> Because of what the compilers let you get away with back then and
> also didn't even bother to warn you about so you could realise there
> was a problem and fix it.

Are we talking compilers or language? No one is using PCC any more.

>
> These days, you get a lot more compiler errors and warnings and
> code is better for it.

And a modern compiler could not generate those warning for K&R?
Note, I said "could not" not doesn't.

>
> Have you forgotten about VAX C and what an improvement DEC C was ? :-)

And what does that have to do with the language? That's a compiler
issue.

>
> Have you forgotten how bad your code is if you need to use /standard=vaxc
> to compile it ? :-)

My code isn't bad. No matter what compiler I use or what compiler
options I choose. I don't rely on compilers to write my code.

>
> As John has just confirmed, that qualifier is still going to be
> available for the GEM-based C compiler for x86-64...

So? Do they deliberately allow bad code without even a warning
because "It's K&R"?

bill

Re: Why Linux ?, was: Re: VMS article in The Register

<jenk72FgmudU1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (Bill Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Date: Thu, 19 May 2022 15:30:41 -0400
Lines: 42
Message-ID: <jenk72FgmudU1@mid.individual.net>
References: <jenek0Ffj8dU2@mid.individual.net> <t664pc$32q$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net nf2bWXEG2r0SGJo9W1SZugB1uMY6KcYsPBnZvJ9f/gJ73R03jM
Cancel-Lock: sha1:Vs/Gm0OHt13GYLiKuvc5miiCeZc=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Content-Language: en-US
In-Reply-To: <t664pc$32q$1@dont-email.me>
 by: Bill Gunshannon - Thu, 19 May 2022 19:30 UTC

On 5/19/22 15:11, Stephen Hoffman wrote:
> On 2022-05-19 17:55:12 +0000, Bill Gunshannon said:
>
>> On 5/16/22 15:27, Stephen Hoffman wrote:
>>>
>>>
>>> If that remediation work doesn't happen, the new work inherently
>>> "owns" the existing and quite possibly unstable K&R C code.
>>>
>>
>> What makes the code inherently unstable just because it is K&R as
>> opposed to the crap being written in the more modern languages?
>
> Undetected and unresolved latent bugs. Weird bugs. Irreproducible bugs.
>
> K&R C such as VAX C or DEC C with CC /STANDARD=VAXC is easy-mode for
> adding code bugs, and that compilation usually also with YOLO-grade
> diagnostics settings.
>
> Clang building with C18 / C2X with diagnostics lit (clang -Wall, maybe
> also with -Wextra) produces more reliable code.
>
> VSI C with /STANDARD=C99 /WARN=( ENABLE=( NOC99, OBSOLESCENT, DEFUNCT,
> QUESTCODE, ...), DISABLE=(...)) does well at finding trouble. Adding
> VERBOSE and OVERFLOW can be useful, too.
>
> There can be good VAX C code. It's just... very rarely encountered. If
> OpenVMS C code is now compiling with /STANDARD=VAXC, then somebody
> noticed the C diagnostics, and decided to ignore them.
>
>

But that's a compiler (or programmer) problem and has nothing to
do with K&R beyond the age of the language definition. A lot was
left out in the bygone era because of the limits on resources.
There is no reason, today, why th compiler can't point out the
bad ideas that programmers do that don't violate the K&R definition
but are just bad ideas. Do I need to point out the Safe C Compiler
again?

bill

Re: Why Linux ?, was: Re: VMS article in The Register

<t66aci$l68$1@dont-email.me>

  copy mid

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

  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: Why Linux ?, was: Re: VMS article in The Register
Date: Thu, 19 May 2022 16:47:14 -0400
Organization: HoffmanLabs LLC
Lines: 49
Message-ID: <t66aci$l68$1@dont-email.me>
References: <jenek0Ffj8dU2@mid.individual.net> <t664pc$32q$1@dont-email.me> <jenk72FgmudU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="4260fb81b3a19c37ded3b650587971b3";
logging-data="21704"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/blKcZXGryX0EHgq4+/oLzIORuGUdW1w="
User-Agent: Unison/2.2
Cancel-Lock: sha1:lNtDT9vYsLw9rYbad6LxWAwbWk0=
 by: Stephen Hoffman - Thu, 19 May 2022 20:47 UTC

On 2022-05-19 19:30:41 +0000, Bill Gunshannon said:

> On 5/19/22 15:11, Stephen Hoffman wrote:
>> On 2022-05-19 17:55:12 +0000, Bill Gunshannon said:
>>
>>> On 5/16/22 15:27, Stephen Hoffman wrote:
>>>>
>>>>
>>>> If that remediation work doesn't happen, the new work inherently "owns"
>>>> the existing and quite possibly unstable K&R C code.
>>>>
>>>
>>> What makes the code inherently unstable just because it is K&R as
>>> opposed to the crap being written in the more modern languages?
>>
>> Undetected and unresolved latent bugs. Weird bugs. Irreproducible bugs.
>>
>> K&R C such as VAX C or DEC C with CC /STANDARD=VAXC is easy-mode for
>> adding code bugs, and that compilation usually also with YOLO-grade
>> diagnostics settings.
>>
>> Clang building with C18 / C2X with diagnostics lit (clang -Wall, maybe
>> also with -Wextra) produces more reliable code.
>>
>> VSI C with /STANDARD=C99 /WARN=( ENABLE=( NOC99, OBSOLESCENT, DEFUNCT,
>> QUESTCODE, ...), DISABLE=(...)) does well at finding trouble. Adding
>> VERBOSE and OVERFLOW can be useful, too.
>>
>> There can be good VAX C code. It's just... very rarely encountered. If
>> OpenVMS C code is now compiling with /STANDARD=VAXC, then somebody
>> noticed the C diagnostics, and decided to ignore them.
>>
>>
>
> But that's a compiler (or programmer) problem and has nothing to do
> with K&R beyond the age of the language definition. A lot was left out
> in the bygone era because of the limits on resources. There is no
> reason, today, why th compiler can't point out the bad ideas that
> programmers do that don't violate the K&R definition but are just bad
> ideas. Do I need to point out the Safe C Compiler again?

You're one of the most adorable folks here. That you continue to
contribute your wealth of knowledge and insight and experience is a
gift to all of us. And by all means, please do scope your projects and
price your project work however you want.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: Why Linux ?, was: Re: VMS article in The Register

<t66bd3$1mh$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Date: Thu, 19 May 2022 17:04:36 -0400
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <t66bd3$1mh$2@dont-email.me>
References: <t5j0si$jm8$4@dont-email.me> <je4kkuFrm0hU1@mid.individual.net>
<573cf2f7-9888-43cb-b5b1-bd95f8043ed6n@googlegroups.com>
<t5u43k$13f$4@dont-email.me>
<c38ce173-3cba-431a-9747-8fbf63c654ccn@googlegroups.com>
<t5u8il$qmq$1@dont-email.me> <jenek0Ffj8dU2@mid.individual.net>
<t66169$pl5$4@dont-email.me> <jenjvrFglkeU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 19 May 2022 21:04:35 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="050d0624a3998dffee76c48a3f2e4ca1";
logging-data="1745"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/itVLiwGTcw4UQWyoYP3HCqvKIGs4ml54="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:vnTDve65t7ady2eaOAraW3z3zeo=
In-Reply-To: <jenjvrFglkeU1@mid.individual.net>
 by: Dave Froble - Thu, 19 May 2022 21:04 UTC

On 5/19/2022 3:26 PM, Bill Gunshannon wrote:
> On 5/19/22 14:10, Simon Clubley wrote:
>> On 2022-05-19, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>>> On 5/16/22 15:27, Stephen Hoffman wrote:
>>>>
>>>>
>>>> If that remediation work doesn't happen, the new work inherently "owns"
>>>> the existing and quite possibly unstable K&R C code.
>>>>
>>>
>>> What makes the code inherently unstable just because it is K&R
>>> as opposed to the crap being written in the more modern languages?
>>>
>>
>> Because of what the compilers let you get away with back then and
>> also didn't even bother to warn you about so you could realise there
>> was a problem and fix it.
>
> Are we talking compilers or language? No one is using PCC any more.
>
>>
>> These days, you get a lot more compiler errors and warnings and
>> code is better for it.
>
> And a modern compiler could not generate those warning for K&R?
> Note, I said "could not" not doesn't.
>
>>
>> Have you forgotten about VAX C and what an improvement DEC C was ? :-)
>
> And what does that have to do with the language? That's a compiler
> issue.
>
>>
>> Have you forgotten how bad your code is if you need to use /standard=vaxc
>> to compile it ? :-)
>
> My code isn't bad. No matter what compiler I use or what compiler
> options I choose. I don't rely on compilers to write my code.
>
>>
>> As John has just confirmed, that qualifier is still going to be
>> available for the GEM-based C compiler for x86-64...
>
> So? Do they deliberately allow bad code without even a warning
> because "It's K&R"?
>
> bill
>
>

My, Bill is kind of feisty these days. Wonder what they gave him in that
hospital? Have to get me some of that ...

:-)

--
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: Why Linux ?, was: Re: VMS article in The Register

<52c6a1b7-0a41-4398-8b4f-9338aba4c1e2n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ae9:de43:0:b0:69f:7585:8276 with SMTP id s64-20020ae9de43000000b0069f75858276mr4416097qkf.706.1652995262761;
Thu, 19 May 2022 14:21:02 -0700 (PDT)
X-Received: by 2002:a05:6214:21e9:b0:45a:995c:fc32 with SMTP id
p9-20020a05621421e900b0045a995cfc32mr5517894qvj.32.1652995262597; Thu, 19 May
2022 14:21:02 -0700 (PDT)
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, 19 May 2022 14:21:02 -0700 (PDT)
In-Reply-To: <t664pc$32q$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:46b0:abc0:66be:b97e:1166:ceab;
posting-account=OGFVHQoAAAASiNAamRQec8BtkuXxYFnQ
NNTP-Posting-Host: 2600:1700:46b0:abc0:66be:b97e:1166:ceab
References: <jenek0Ffj8dU2@mid.individual.net> <t664pc$32q$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <52c6a1b7-0a41-4398-8b4f-9338aba4c1e2n@googlegroups.com>
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
From: jake.ha...@gmail.com (Jake Hamby)
Injection-Date: Thu, 19 May 2022 21:21:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3736
 by: Jake Hamby - Thu, 19 May 2022 21:21 UTC

On Thursday, May 19, 2022 at 12:11:43 PM UTC-7, Stephen Hoffman wrote:
> > What makes the code inherently unstable just because it is K&R as
> > opposed to the crap being written in the more modern languages?
> Undetected and unresolved latent bugs. Weird bugs. Irreproducible bugs.
>
> K&R C such as VAX C or DEC C with CC /STANDARD=VAXC is easy-mode for
> adding code bugs, and that compilation usually also with YOLO-grade
> diagnostics settings.
>
> Clang building with C18 / C2X with diagnostics lit (clang -Wall, maybe
> also with -Wextra) produces more reliable code.
>
> VSI C with /STANDARD=C99 /WARN=( ENABLE=( NOC99, OBSOLESCENT, DEFUNCT,
> QUESTCODE, ...), DISABLE=(...)) does well at finding trouble. Adding
> VERBOSE and OVERFLOW can be useful, too.

I completely agree with everything you said, and thanks for the suggestion of useful warnings to enable.

I've been working on reviving the OpenVMS port of Regina (Rexx interpreter), which has been great fun (I have a strange sense of fun) and very educational. Before I could begin to tackle the VMS-specific wrapper functions (the previous author implemented nearly all of the DCL lexical functions as native Rexx functions, which I spent nearly a week modernizing), I had to fix compiler warnings produced by DEC C at the default warning level. Mismatched types (signed/unsigned, pointer types). Turning on the warnings you suggested has exposed a whole new set of questionable things to fix.

Apparently, few people are compiling Regina with the debug assertions enabled and running the test scripts that it comes with, because I spent some time worrying about an assertion failure in Regina's internal memory allocator, only to discover, fortunately, that it was a bug in their implementation of UPPER() and LOWER() that wasn't allocating a big enough string when the output string was longer than the input. Nothing at all VMS-specific about that bug, and I really have had no complaints about DEC C/C++ in terms of the compiler crashing with internal errors or generating bad code or anything like that with open source programs I've compiled.

> There can be good VAX C code. It's just... very rarely encountered. If
> OpenVMS C code is now compiling with /STANDARD=VAXC, then somebody
> noticed the C diagnostics, and decided to ignore them.

Fortunately, I haven't run into that particular issue!

-Jake

Re: Why Linux ?, was: Re: VMS article in The Register

<5e165e6b-c0c6-4dab-a2b6-f24c3d885a29n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:102c:b0:69f:c056:43a1 with SMTP id a12-20020a05620a102c00b0069fc05643a1mr4473469qkk.526.1652996426418;
Thu, 19 May 2022 14:40:26 -0700 (PDT)
X-Received: by 2002:ad4:5bc1:0:b0:42c:3700:a6df with SMTP id
t1-20020ad45bc1000000b0042c3700a6dfmr5661512qvt.94.1652996426167; Thu, 19 May
2022 14:40:26 -0700 (PDT)
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, 19 May 2022 14:40:25 -0700 (PDT)
In-Reply-To: <jenebhFfj8dU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:46b0:abc0:66be:b97e:1166:ceab;
posting-account=OGFVHQoAAAASiNAamRQec8BtkuXxYFnQ
NNTP-Posting-Host: 2600:1700:46b0:abc0:66be:b97e:1166:ceab
References: <t5j0si$jm8$4@dont-email.me> <je4kkuFrm0hU1@mid.individual.net>
<573cf2f7-9888-43cb-b5b1-bd95f8043ed6n@googlegroups.com> <628190f5$0$697$14726298@news.sunsite.dk>
<jenebhFfj8dU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5e165e6b-c0c6-4dab-a2b6-f24c3d885a29n@googlegroups.com>
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
From: jake.ha...@gmail.com (Jake Hamby)
Injection-Date: Thu, 19 May 2022 21:40:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3787
 by: Jake Hamby - Thu, 19 May 2022 21:40 UTC

On Thursday, May 19, 2022 at 10:50:44 AM UTC-7, Bill Gunshannon wrote:
> On 5/15/22 19:46, Arne Vajhøj wrote:
> >
> > Linux got aio, epoll, libevent etc..
> >
> > Maybe it is more of a bolt-on than native, but it is there
> > and that is what matters.
> >
> > I would try and sell VMS as being lean. Linux is getting fat.
> Might work. Until the first time you have to run a benchmark.

That's a mean thing to say, but it's a big open question (at least for me, since I don't have access to the x86 version): how well does VMS actually perform on modern x86-64 hardware?

I don't think VSI did themselves any favors by demoing VMS booting up on a 9600 bps serial console or whatever speed they were using in VirtualBox. BTW, I've ported some simple IPC benchmarks from Linux to find out for myself how well it performs on vintage hardware:

https://github.com/jhamby/vms-ipc_benchmark/

For comparison, running "pipe" and "tcp" with 8K message size, I can easily get 6,500 MB/s, or 835,000 msg/s on an Intel Xeon W-1290P CPU @ 3.70GHz (turbo to 5.2 GHz) running Ubuntu 22.04 (kernel 5.15.0).

On a dual 1.6 GHz / 3MB ("Fanwood") HP rx2620, the best I can get is around 160MB/s, or 1/40 of the speed of the new PC. On my 667 MHz EV67 XP1000, I get about 65MB/s, or 1%. That hardware is from 2005 and 2002, respectively. The Alpha hits a limit of around 20,000 msg/s that's a bottleneck as I shrink the packet size to 4K and below, while the Itanium handles smaller writes without much issue.

My biggest battle with tuning VMS was discovering that my BIOLM shouldn't be 10000 or higher, because then the writer seems to get congested and the CPU starts to idle and performance fluctuates. With a BIOLM of between 400 and 600, the sustained local pipe/socketpair/TCP/UDP performance (using MultiNet) are the numbers I reported.

You'll also notice if you check the source code that I'm linking in the vms_crtl_init.c and vms_crtl_values.c from the VSI Python 3.10 port, which set the behavior of pipe() to be as UNIX-like as possible. Without that, the speed would be hovering around 14MB/s on the Itanium. Completely unacceptable.

As I said, it's a big open question for me as to whether or not VMS actually *is* lean, because the hardware I have available to me as a hobbyist is so old.

Cheers,
Jake

Re: Why Linux ?, was: Re: VMS article in The Register

<memo.20220519224607.11824Z@jgd.cix.co.uk>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jgd...@cix.co.uk (John Dallman)
Newsgroups: comp.os.vms
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Date: Thu, 19 May 2022 22:46 +0100 (BST)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <memo.20220519224607.11824Z@jgd.cix.co.uk>
References: <5e165e6b-c0c6-4dab-a2b6-f24c3d885a29n@googlegroups.com>
Reply-To: jgd@cix.co.uk
Injection-Info: reader02.eternal-september.org; posting-host="eeadcdd1656c7f34783a891892fc0c99";
logging-data="3706"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XhluQQaQkJjCNgkjvyGgp3ihJ2nE5KCg="
Cancel-Lock: sha1:ar6yFgQbHcPgDLBC4YCvx85KhfA=
 by: John Dallman - Thu, 19 May 2022 21:46 UTC

In article <5e165e6b-c0c6-4dab-a2b6-f24c3d885a29n@googlegroups.com>,
jake.hamby@gmail.com (Jake Hamby) wrote:

> That's a mean thing to say, but it's a big open question (at least
> for me, since I don't have access to the x86 version): how well
> does VMS actually perform on modern x86-64 hardware?

In the late 1990s, when I was new there, my employers were testing the
same software regularly on three different Alpha platforms: 32-bit VMS,
32-bit Windows NT, and 64-bit OSF/1 UNIX. As best I remember, the OSF was
fastest, with Windows and VMS being approximately similar.

Of course, the hardware has changed a lot since then.

John

Re: Why Linux ?, was: Re: VMS article in The Register

<6286ea6b$0$701$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Thu, 19 May 2022 21:09:56 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.0
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Content-Language: en-US
Newsgroups: comp.os.vms
References: <t5j0si$jm8$4@dont-email.me> <je4kkuFrm0hU1@mid.individual.net>
<573cf2f7-9888-43cb-b5b1-bd95f8043ed6n@googlegroups.com>
<628190f5$0$697$14726298@news.sunsite.dk> <jenebhFfj8dU1@mid.individual.net>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <jenebhFfj8dU1@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 30
Message-ID: <6286ea6b$0$701$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: d154993c.news.sunsite.dk
X-Trace: 1653009003 news.sunsite.dk 701 arne@vajhoej.dk/68.9.63.232:55469
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Fri, 20 May 2022 01:09 UTC

On 5/19/2022 1:50 PM, Bill Gunshannon wrote:
> On 5/15/22 19:46, Arne Vajhøj wrote:
>> On 5/13/2022 10:15 PM, Jake Hamby wrote:
>>> My sales pitch for VMS is that the architecture is well-suited for
>>> server applications today because async I/O is now very fashionable
>>> (Node.js, C#, Rust, any language with lambdas), and $QIO is the core
>>> of OpenVMS (and Windows NT as well, since they copied the idea). If
>>> you're used to the UNIX world, then VMS is going to be alien and you
>>> won't see at first what benefits it could provide, but if you're
>>> thinking in terms of a stack like Node.js or Erlang or some of the
>>> open source that VSI is porting to VMS, then it could potentially be
>>> efficient, if the drivers are, because the core OS is very lean
>>> (designed for a slow VAX).
>>
>> Linux got aio, epoll, libevent etc..
>>
>> Maybe it is more of a bolt-on than native, but it is there
>> and that is what matters.
>>
>> I would try and sell VMS as being lean. Linux is getting fat.
>
> Might work.  Until the first time you  have to run a benchmark.

Nobody pick OS based on benchmarks today.

Speed is not the issue. Software bugs and vulnerabilities are
the issue. More code means higher risk.

Arne

Re: Why Linux ?, was: Re: VMS article in The Register

<6286eb16$0$701$14726298@news.sunsite.dk>

  copy mid

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

  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: Thu, 19 May 2022 21:12:51 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.0
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Content-Language: en-US
Newsgroups: comp.os.vms
References: <jenek0Ffj8dU2@mid.individual.net> <t664pc$32q$1@dont-email.me>
<jenk72FgmudU1@mid.individual.net>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <jenk72FgmudU1@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 46
Message-ID: <6286eb16$0$701$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: d154993c.news.sunsite.dk
X-Trace: 1653009174 news.sunsite.dk 701 arne@vajhoej.dk/68.9.63.232:55469
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Fri, 20 May 2022 01:12 UTC

On 5/19/2022 3:30 PM, Bill Gunshannon wrote:
> On 5/19/22 15:11, Stephen Hoffman wrote:
>> On 2022-05-19 17:55:12 +0000, Bill Gunshannon said:
>>> On 5/16/22 15:27, Stephen Hoffman wrote:
>>>> If that remediation work doesn't happen, the new work inherently
>>>> "owns" the existing and quite possibly unstable K&R C code.
>>>
>>> What makes the code inherently unstable just because it is K&R as
>>> opposed to the crap being written in the more modern languages?
>>
>> Undetected and unresolved latent bugs. Weird bugs. Irreproducible bugs.
>>
>> K&R C such as VAX C or DEC C with CC /STANDARD=VAXC is easy-mode for
>> adding code bugs, and that compilation usually also with YOLO-grade
>> diagnostics settings.
>>
>> Clang building with C18 / C2X with diagnostics lit (clang -Wall, maybe
>> also with -Wextra) produces more reliable code.
>>
>> VSI C with /STANDARD=C99 /WARN=( ENABLE=( NOC99, OBSOLESCENT, DEFUNCT,
>> QUESTCODE, ...), DISABLE=(...)) does well at finding trouble. Adding
>> VERBOSE and OVERFLOW can be useful, too.
>>
>> There can be good VAX C code. It's just... very rarely encountered. If
>> OpenVMS C code is now compiling with /STANDARD=VAXC, then somebody
>> noticed the C diagnostics, and decided to ignore them.
>
> But that's a compiler (or programmer) problem and has nothing to
> do with K&R beyond the age of the language definition.  A lot was
> left out in the bygone era because of the limits on resources.
> There is no reason, today, why th compiler can't point out the
> bad ideas that programmers do that don't violate the K&R definition
> but are just bad ideas. Do I need to point out the Safe C Compiler
> again?

Many things are possible.

But are there any really good checking K&R compilers
available?

If not then the fact that one could be written is not
that useful.

Arne

Re: Why Linux ?, was: Re: VMS article in The Register

<jeo8biFka96U1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (Bill Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Date: Thu, 19 May 2022 21:14:24 -0400
Lines: 68
Message-ID: <jeo8biFka96U1@mid.individual.net>
References: <t5j0si$jm8$4@dont-email.me> <je4kkuFrm0hU1@mid.individual.net>
<573cf2f7-9888-43cb-b5b1-bd95f8043ed6n@googlegroups.com>
<t5u43k$13f$4@dont-email.me>
<c38ce173-3cba-431a-9747-8fbf63c654ccn@googlegroups.com>
<t5u8il$qmq$1@dont-email.me> <jenek0Ffj8dU2@mid.individual.net>
<t66169$pl5$4@dont-email.me> <jenjvrFglkeU1@mid.individual.net>
<t66bd3$1mh$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net t4jfpeVB03nvPSgV9attDA8SUOq44SDBLFYzjjZVp0Gc4RgU2k
Cancel-Lock: sha1:HYg/jwe+RmvQpPWAMn/TDIF2THQ=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Content-Language: en-US
In-Reply-To: <t66bd3$1mh$2@dont-email.me>
 by: Bill Gunshannon - Fri, 20 May 2022 01:14 UTC

On 5/19/22 17:04, Dave Froble wrote:
> On 5/19/2022 3:26 PM, Bill Gunshannon wrote:
>> On 5/19/22 14:10, Simon Clubley wrote:
>>> On 2022-05-19, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>>>> On 5/16/22 15:27, Stephen Hoffman wrote:
>>>>>
>>>>>
>>>>> If that remediation work doesn't happen, the new work inherently
>>>>> "owns"
>>>>> the existing and quite possibly unstable K&R C code.
>>>>>
>>>>
>>>> What makes the code inherently unstable just because it is K&R
>>>> as opposed to the crap being written in the more modern languages?
>>>>
>>>
>>> Because of what the compilers let you get away with back then and
>>> also didn't even bother to warn you about so you could realise there
>>> was a problem and fix it.
>>
>> Are we talking compilers or language?  No one is using PCC any more.
>>
>>>
>>> These days, you get a lot more compiler errors and warnings and
>>> code is better for it.
>>
>> And a modern compiler could not generate those warning for K&R?
>> Note, I said "could not" not doesn't.
>>
>>>
>>> Have you forgotten about VAX C and what an improvement DEC C was ? :-)
>>
>> And what does that have to do with the language?  That's a compiler
>> issue.
>>
>>>
>>> Have you forgotten how bad your code is if you need to use
>>> /standard=vaxc
>>> to compile it ? :-)
>>
>> My code isn't bad.  No matter what compiler I use or what compiler
>> options I choose.  I don't rely on compilers to write my code.
>>
>>>
>>> As John has just confirmed, that qualifier is still going to be
>>> available for the GEM-based C compiler for x86-64...
>>
>> So?  Do they deliberately allow bad code without even a warning
>> because "It's K&R"?
>>
>> bill
>>
>>
>
> My, Bill is kind of feisty these days.  Wonder what they gave him in
> that hospital?  Have to get me some of that ...
>
> :-)
>

Trust me, no you don't. The only good news I got was that I
don't have COVID. Went in for knee surgery. Got to the OR.
Everybody jumped up and yelled "April Fool". Got a free ride
to the ER and 3 fun filled days in the hospital. Not a fun week.

bill

Re: Why Linux ?, was: Re: VMS article in The Register

<6286ec8e$0$701$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Thu, 19 May 2022 21:19:02 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.0
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Content-Language: en-US
Newsgroups: comp.os.vms
References: <t5j0si$jm8$4@dont-email.me> <je4kkuFrm0hU1@mid.individual.net>
<573cf2f7-9888-43cb-b5b1-bd95f8043ed6n@googlegroups.com>
<t5u43k$13f$4@dont-email.me>
<c38ce173-3cba-431a-9747-8fbf63c654ccn@googlegroups.com>
<t5u8il$qmq$1@dont-email.me> <6282aadd$0$705$14726298@news.sunsite.dk>
<t6006g$12dv$1@gioia.aioe.org> <628406a6$0$698$14726298@news.sunsite.dk>
<t6192v$1kde$1@gioia.aioe.org> <628430a1$0$700$14726298@news.sunsite.dk>
<jenf84FfmjaU3@mid.individual.net>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <jenf84FfmjaU3@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 37
Message-ID: <6286ec8e$0$701$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: d154993c.news.sunsite.dk
X-Trace: 1653009551 news.sunsite.dk 701 arne@vajhoej.dk/68.9.63.232:55697
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Fri, 20 May 2022 01:19 UTC

On 5/19/2022 2:05 PM, Bill Gunshannon wrote:
> On 5/17/22 19:32, Arne Vajhøj wrote:
>> On 5/17/2022 6:54 PM, chris wrote:
>>> On 05/17/22 21:33, Arne Vajhøj wrote:
>>>> And probably around the same number of C++ programmers
>>>> as C programmers.
>>>>
>>>> And C is not really suited for the typical business
>>>> application - it was not created for such usage - and
>>>> it shows.
>>>
>>> No argument about that, but no doubt many business apps have
>>> been written in C in the past. C is still arguably the best
>>> systems programming language, despite fashions of the moment...
>>
>> C is definitely still king in this area.
>>
>> And going C for that is a safe choice.
>>
>> Rust, Go, Hare, Zig etc. are just "promising" but not
>> "proven".
>
> Promising what?  Aren't they just solutions searching for a problem?
> Or new ego trips.

They all try to address some known problems in old languages.
The problems are identified and they fix them.

But that does not guarantee that they overall are better
than the old languages.

And in case there are multiple that are better it is
still open which one of the new languages is best.

Arne

Re: Why Linux ?, was: Re: VMS article in The Register

<jeo9bmFkgeeU1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (Bill Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Date: Thu, 19 May 2022 21:31:32 -0400
Lines: 56
Message-ID: <jeo9bmFkgeeU1@mid.individual.net>
References: <jenek0Ffj8dU2@mid.individual.net> <t664pc$32q$1@dont-email.me>
<jenk72FgmudU1@mid.individual.net> <6286eb16$0$701$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net pGqj1cTFvdpbCNFwxM2cSgR7OPSeQ2F9QMV6oLk2lnVuDKjLfI
Cancel-Lock: sha1:DgwBhh30mSJUzOMZS5MChejTxBE=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Content-Language: en-US
In-Reply-To: <6286eb16$0$701$14726298@news.sunsite.dk>
 by: Bill Gunshannon - Fri, 20 May 2022 01:31 UTC

On 5/19/22 21:12, Arne Vajhøj wrote:
> On 5/19/2022 3:30 PM, Bill Gunshannon wrote:
>> On 5/19/22 15:11, Stephen Hoffman wrote:
>>> On 2022-05-19 17:55:12 +0000, Bill Gunshannon said:
>>>> On 5/16/22 15:27, Stephen Hoffman wrote:
>>>>> If that remediation work doesn't happen, the new work inherently
>>>>> "owns" the existing and quite possibly unstable K&R C code.
>>>>
>>>> What makes the code inherently unstable just because it is K&R as
>>>> opposed to the crap being written in the more modern languages?
>>>
>>> Undetected and unresolved latent bugs. Weird bugs. Irreproducible bugs.
>>>
>>> K&R C such as VAX C or DEC C with CC /STANDARD=VAXC is easy-mode for
>>> adding code bugs, and that compilation usually also with YOLO-grade
>>> diagnostics settings.
>>>
>>> Clang building with C18 / C2X with diagnostics lit (clang -Wall,
>>> maybe also with -Wextra) produces more reliable code.
>>>
>>> VSI C with /STANDARD=C99 /WARN=( ENABLE=( NOC99, OBSOLESCENT,
>>> DEFUNCT, QUESTCODE, ...), DISABLE=(...)) does well at finding
>>> trouble. Adding VERBOSE and OVERFLOW can be useful, too.
>>>
>>> There can be good VAX C code. It's just... very rarely encountered.
>>> If OpenVMS C code is now compiling with /STANDARD=VAXC, then somebody
>>> noticed the C diagnostics, and decided to ignore them.
>>
>> But that's a compiler (or programmer) problem and has nothing to
>> do with K&R beyond the age of the language definition.  A lot was
>> left out in the bygone era because of the limits on resources.
>> There is no reason, today, why th compiler can't point out the
>> bad ideas that programmers do that don't violate the K&R definition
>> but are just bad ideas. Do I need to point out the Safe C Compiler
>> again?
>
> Many things are possible.
>
> But are there any really good checking K&R compilers
> available?

Yes, there was. I have mentioned it here numerous times. It
was called Safe C and was available on both the PDP-11 and VAX.
And, apparently, the industry resoundingly rejected it.

>
> If not then the fact that one could be written is not
> that useful.

Why is that? GCC was written from scratch. It was not a rehash
of PCC. They could have put anything they wanted into it. It
would seem they chose to put nothing new in it at all.

bill

Re: Why Linux ?, was: Re: VMS article in The Register

<6286f0a2$0$701$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Thu, 19 May 2022 21:36:31 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.0
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Content-Language: en-US
Newsgroups: comp.os.vms
References: <jenek0Ffj8dU2@mid.individual.net> <t664pc$32q$1@dont-email.me>
<jenk72FgmudU1@mid.individual.net> <6286eb16$0$701$14726298@news.sunsite.dk>
<jeo9bmFkgeeU1@mid.individual.net>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <jeo9bmFkgeeU1@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 36
Message-ID: <6286f0a2$0$701$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: d154993c.news.sunsite.dk
X-Trace: 1653010594 news.sunsite.dk 701 arne@vajhoej.dk/68.9.63.232:56946
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Fri, 20 May 2022 01:36 UTC

On 5/19/2022 9:31 PM, Bill Gunshannon wrote:
> On 5/19/22 21:12, Arne Vajhøj wrote:
>> On 5/19/2022 3:30 PM, Bill Gunshannon wrote:
>>> But that's a compiler (or programmer) problem and has nothing to
>>> do with K&R beyond the age of the language definition.  A lot was
>>> left out in the bygone era because of the limits on resources.
>>> There is no reason, today, why th compiler can't point out the
>>> bad ideas that programmers do that don't violate the K&R definition
>>> but are just bad ideas. Do I need to point out the Safe C Compiler
>>> again?
>>
>> Many things are possible.
>>
>> But are there any really good checking K&R compilers
>> available?
>
> Yes, there was.  I have mentioned it here numerous times.  It
> was called Safe C and was available on both the PDP-11 and VAX.
> And, apparently, the industry resoundingly rejected it.

So there was something available 30-40 years ago.

That does not help anyone today.

>> If not then the fact that one could be written is not
>> that useful.
>
> Why is that?

Because those people with C code want to build their
C code - they do not want to write their own compiler.
They have to use the C compilers that are actual available
for the platforms of today.

Arne

Re: Why Linux ?, was: Re: VMS article in The Register

<t66u7j$5l2$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Date: Thu, 19 May 2022 21:25:54 -0500
Organization: A noiseless patient Spider
Lines: 65
Message-ID: <t66u7j$5l2$1@dont-email.me>
References: <t5j0si$jm8$4@dont-email.me> <je4kkuFrm0hU1@mid.individual.net>
<573cf2f7-9888-43cb-b5b1-bd95f8043ed6n@googlegroups.com>
<628190f5$0$697$14726298@news.sunsite.dk> <jenebhFfj8dU1@mid.individual.net>
<5e165e6b-c0c6-4dab-a2b6-f24c3d885a29n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 20 May 2022 02:25:55 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2a994087abbbbd8565604c051fa632d2";
logging-data="5794"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+h/wgP/d4tUDiXmrLpc2P1p83u4oZAbgA="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.0
Cancel-Lock: sha1:8XxmSg3u3F8TX0VWgaPPCH1S+dY=
In-Reply-To: <5e165e6b-c0c6-4dab-a2b6-f24c3d885a29n@googlegroups.com>
Content-Language: en-US
 by: Craig A. Berry - Fri, 20 May 2022 02:25 UTC

On 5/19/22 4:40 PM, Jake Hamby wrote:
> On Thursday, May 19, 2022 at 10:50:44 AM UTC-7, Bill Gunshannon wrote:
>> On 5/15/22 19:46, Arne Vajhøj wrote:

>>> I would try and sell VMS as being lean. Linux is getting fat.
>> Might work. Until the first time you have to run a benchmark.

> That's a mean thing to say, but it's a big open question (at least
> for me, since I don't have access to the x86 version): how well does VMS
> actually perform on modern x86-64 hardware?

It's going to remain an open question for some time. As far as I know,
none of the cross compilers has optimizations turned on, which means
there is no optimized code in the OS or libraries shipped with the OS,
much less in anything you build yourself.

Once the optimizations are available, you'll run into the inherently
slow file I/O and network I/O that have been discussed many times here.
The current roadmap does not include either of the new filesystems that
have been planned and set aside, nor the networking overhaul (VCI 2.0).
One can hope these will come back one day once the port to x86 is done.

I would not expect VMS to be competitive in raw speed with other OSs on
the same hardware anytime soon, but it really just needs to be a bit
faster on virtual x86 than it was on the last generation of Integrity
hardware for it to be a big step forward. Reducing cost and risk are
going to be a lot more important to most people in the near term than
increasing speed.

> I've ported some simple IPC benchmarks from Linux to
> find out for myself how well it performs on vintage hardware:
>
> https://github.com/jhamby/vms-ipc_benchmark/
>
> For comparison, running "pipe" and "tcp" with 8K message size, I can
> easily get 6,500 MB/s, or 835,000 msg/s on an Intel Xeon W-1290P CPU @
> 3.70GHz (turbo to 5.2 GHz) running Ubuntu 22.04 (kernel 5.15.0).
>
> On a dual 1.6 GHz / 3MB ("Fanwood") HP rx2620, the best I can get is
> around 160MB/s, or 1/40 of the speed of the new PC. On my 667 MHz EV67
> XP1000, I get about 65MB/s, or 1%. That hardware is from 2005 and 2002,
> respectively. The Alpha hits a limit of around 20,000 msg/s that's a
> bottleneck as I shrink the packet size to 4K and below, while the
> Itanium handles smaller writes without much issue.

> You'll also notice if you check the source code that I'm linking in
> the vms_crtl_init.c and vms_crtl_values.c from the VSI Python 3.10 port,
> which set the behavior of pipe() to be as UNIX-like as possible. Without
> that, the speed would be hovering around 14MB/s on the Itanium.
> Completely unacceptable.

pipe() on VMS is based on mailboxes, an ancient virtual device
technology that is convenient to use and quite effective for passing
small messages around between processes. But it's slow, and it's a
record-oriented device, which doesn't always play nice in a
stream-oriented world (though stream-oriented behavior is emulated to
some extent). For a faster pipe implementation see dmpipe, which uses
global sections:

https://sourceforge.net/p/vms-ports/dmpipe

Unfortunately this involves wrapping pretty much every function in the
CRTL that touches a file descriptor -- the fix should really be inside
the CRTL, but, alas, that also is not on the roadmap.

Re: Why Linux ?, was: Re: VMS article in The Register

<jepi8eFrt3gU1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (Bill Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Date: Fri, 20 May 2022 09:09:34 -0400
Lines: 59
Message-ID: <jepi8eFrt3gU1@mid.individual.net>
References: <jenek0Ffj8dU2@mid.individual.net> <t664pc$32q$1@dont-email.me>
<jenk72FgmudU1@mid.individual.net> <6286eb16$0$701$14726298@news.sunsite.dk>
<jeo9bmFkgeeU1@mid.individual.net> <6286f0a2$0$701$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 5ZprYF3d+ENzy4I7kzQKnw3oM9eLA1aZVeXqQHDQrQ3IzbTr94
Cancel-Lock: sha1:v5VXD//MsTXMpVQxV3oNFHgcjmM=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Content-Language: en-US
In-Reply-To: <6286f0a2$0$701$14726298@news.sunsite.dk>
 by: Bill Gunshannon - Fri, 20 May 2022 13:09 UTC

On 5/19/22 21:36, Arne Vajhøj wrote:
> On 5/19/2022 9:31 PM, Bill Gunshannon wrote:
>> On 5/19/22 21:12, Arne Vajhøj wrote:
>>> On 5/19/2022 3:30 PM, Bill Gunshannon wrote:
>>>> But that's a compiler (or programmer) problem and has nothing to
>>>> do with K&R beyond the age of the language definition.  A lot was
>>>> left out in the bygone era because of the limits on resources.
>>>> There is no reason, today, why th compiler can't point out the
>>>> bad ideas that programmers do that don't violate the K&R definition
>>>> but are just bad ideas. Do I need to point out the Safe C Compiler
>>>> again?
>>>
>>> Many things are possible.
>>>
>>> But are there any really good checking K&R compilers
>>> available?
>>
>> Yes, there was.  I have mentioned it here numerous times.  It
>> was called Safe C and was available on both the PDP-11 and VAX.
>> And, apparently, the industry resoundingly rejected it.
>
> So there was something available 30-40 years ago.
>
> That does not help anyone today.

Yes, but the point was that it could be. Just like they could
have come up with better string handling libraries which over
time could have found their way into the CRTL. Heck, ANSI
could have come up with a defined string that was not null
terminated. Over the past 30-40 years all of this could have
been done and with minimal impact on older code. A defined
string would not have stopped people from using a null
terminated array of char bujt it would have given an option
for future development and even maintenance of older programs.
But it wasn't and that is not the fault of the language.

>
>>> If not then the fact that one could be written is not
>>> that useful.
>>
>> Why is that?
>
> Because those people with C code want to build their
> C code - they do not want to write their own compiler.
> They have to use the C compilers that are actual available
> for the platforms of today.

No one had to write their own compiler. It was done. The
industry wasn't interested. For whatever reason they chose
to continue with compilers that allowed dangerous code. If
it had been accepted it could have been the new standard for
C compilers and we wouldn't be having this conversation. As
you said above, we had 30-40 years to fix this. We even had
a major change of the language by ANSI. Why did no one do
anything about it?

bill

Re: Why Linux ?, was: Re: VMS article in The Register

<6287b721$0$700$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Fri, 20 May 2022 11:43:26 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.0
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Content-Language: en-US
Newsgroups: comp.os.vms
References: <jenek0Ffj8dU2@mid.individual.net> <t664pc$32q$1@dont-email.me>
<jenk72FgmudU1@mid.individual.net> <6286eb16$0$701$14726298@news.sunsite.dk>
<jeo9bmFkgeeU1@mid.individual.net> <6286f0a2$0$701$14726298@news.sunsite.dk>
<jepi8eFrt3gU1@mid.individual.net>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <jepi8eFrt3gU1@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 67
Message-ID: <6287b721$0$700$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 159abc7d.news.sunsite.dk
X-Trace: 1653061410 news.sunsite.dk 700 arne@vajhoej.dk/68.9.63.232:59152
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Fri, 20 May 2022 15:43 UTC

On 5/20/2022 9:09 AM, Bill Gunshannon wrote:
> On 5/19/22 21:36, Arne Vajhøj wrote:
>> On 5/19/2022 9:31 PM, Bill Gunshannon wrote:
>>> On 5/19/22 21:12, Arne Vajhøj wrote:
>>>> On 5/19/2022 3:30 PM, Bill Gunshannon wrote:
>>>>> But that's a compiler (or programmer) problem and has nothing to
>>>>> do with K&R beyond the age of the language definition.  A lot was
>>>>> left out in the bygone era because of the limits on resources.
>>>>> There is no reason, today, why th compiler can't point out the
>>>>> bad ideas that programmers do that don't violate the K&R definition
>>>>> but are just bad ideas. Do I need to point out the Safe C Compiler
>>>>> again?
>>>>
>>>> Many things are possible.
>>>>
>>>> But are there any really good checking K&R compilers
>>>> available?
>>>
>>> Yes, there was.  I have mentioned it here numerous times.  It
>>> was called Safe C and was available on both the PDP-11 and VAX.
>>> And, apparently, the industry resoundingly rejected it.
>>
>> So there was something available 30-40 years ago.
>>
>> That does not help anyone today.
>
> Yes, but the point was that it could be.  Just like they could
> have come up with better string handling libraries which over
> time could have found their way into the CRTL.  Heck, ANSI
> could have come up with a defined string that was not null
> terminated.  Over the past 30-40 years all of this could have
> been done and with minimal impact on older code.  A defined
> string would not have stopped people from using a null
> terminated array of char bujt it would have given an option
> for future development and even maintenance of older programs.
> But it wasn't and that is not the fault of the language.
>
>>>> If not then the fact that one could be written is not
>>>> that useful.
>>>
>>> Why is that?
>>
>> Because those people with C code want to build their
>> C code - they do not want to write their own compiler.
>> They have to use the C compilers that are actual available
>> for the platforms of today.
>
> No one had to write their own compiler.  It was done.  The
> industry wasn't interested.  For whatever reason they chose
> to continue with compilers that allowed dangerous code.  If
> it had been accepted it could have been the new standard for
> C compilers and we wouldn't be having this conversation.  As
> you said above, we had 30-40 years to fix this.  We even had
> a major change of the language by ANSI.  Why did no one do
> anything about it?

A lot of things is possible. New compilers could be developed.
Some compiler existed 30-40 years ago.

But that does not help those with K&R C code today. They have
the compilers they have.

And based on how the state of world actually are today then
I think Hoff's advice made a lot of sense.

Arne

Re: Why Linux ?, was: Re: VMS article in The Register

<jepthlFu23oU1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (Bill Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
Date: Fri, 20 May 2022 12:22:12 -0400
Lines: 75
Message-ID: <jepthlFu23oU1@mid.individual.net>
References: <jenek0Ffj8dU2@mid.individual.net> <t664pc$32q$1@dont-email.me>
<jenk72FgmudU1@mid.individual.net> <6286eb16$0$701$14726298@news.sunsite.dk>
<jeo9bmFkgeeU1@mid.individual.net> <6286f0a2$0$701$14726298@news.sunsite.dk>
<jepi8eFrt3gU1@mid.individual.net> <6287b721$0$700$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net RoWKuRd/RrcUFPWSVee6dwEnRsJ93FftJBXVM1O1ppyERanjFX
Cancel-Lock: sha1:r7AHYSruT283iZeYQqpP48kKDWE=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Content-Language: en-US
In-Reply-To: <6287b721$0$700$14726298@news.sunsite.dk>
 by: Bill Gunshannon - Fri, 20 May 2022 16:22 UTC

On 5/20/22 11:43, Arne Vajhøj wrote:
> On 5/20/2022 9:09 AM, Bill Gunshannon wrote:
>> On 5/19/22 21:36, Arne Vajhøj wrote:
>>> On 5/19/2022 9:31 PM, Bill Gunshannon wrote:
>>>> On 5/19/22 21:12, Arne Vajhøj wrote:
>>>>> On 5/19/2022 3:30 PM, Bill Gunshannon wrote:
>>>>>> But that's a compiler (or programmer) problem and has nothing to
>>>>>> do with K&R beyond the age of the language definition.  A lot was
>>>>>> left out in the bygone era because of the limits on resources.
>>>>>> There is no reason, today, why th compiler can't point out the
>>>>>> bad ideas that programmers do that don't violate the K&R definition
>>>>>> but are just bad ideas. Do I need to point out the Safe C Compiler
>>>>>> again?
>>>>>
>>>>> Many things are possible.
>>>>>
>>>>> But are there any really good checking K&R compilers
>>>>> available?
>>>>
>>>> Yes, there was.  I have mentioned it here numerous times.  It
>>>> was called Safe C and was available on both the PDP-11 and VAX.
>>>> And, apparently, the industry resoundingly rejected it.
>>>
>>> So there was something available 30-40 years ago.
>>>
>>> That does not help anyone today.
>>
>> Yes, but the point was that it could be.  Just like they could
>> have come up with better string handling libraries which over
>> time could have found their way into the CRTL.  Heck, ANSI
>> could have come up with a defined string that was not null
>> terminated.  Over the past 30-40 years all of this could have
>> been done and with minimal impact on older code.  A defined
>> string would not have stopped people from using a null
>> terminated array of char bujt it would have given an option
>> for future development and even maintenance of older programs.
>> But it wasn't and that is not the fault of the language.
>>
>>>>> If not then the fact that one could be written is not
>>>>> that useful.
>>>>
>>>> Why is that?
>>>
>>> Because those people with C code want to build their
>>> C code - they do not want to write their own compiler.
>>> They have to use the C compilers that are actual available
>>> for the platforms of today.
>>
>> No one had to write their own compiler.  It was done.  The
>> industry wasn't interested.  For whatever reason they chose
>> to continue with compilers that allowed dangerous code.  If
>> it had been accepted it could have been the new standard for
>> C compilers and we wouldn't be having this conversation.  As
>> you said above, we had 30-40 years to fix this.  We even had
>> a major change of the language by ANSI.  Why did no one do
>> anything about it?
>
> A lot of things is possible. New compilers could be developed.
> Some compiler existed 30-40 years ago.
>
> But that does not help those with K&R C code today. They have
> the compilers they have.
>
> And based on how the state of world actually are today then
> I think Hoff's advice made a lot of sense.

True, but some of what I mentioned isn't limited to compilers
or just K&R code.

Why didn't ANSI fix some of the problems like null terminated
strings, requiring bounds checking, etc. when they had the
chance?

bill

Re: Why Linux ?, was: Re: VMS article in The Register

<d9e5040b-a61b-4fc5-bfe6-85401980e486n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:c99:b0:6a3:3c41:2d6 with SMTP id q25-20020a05620a0c9900b006a33c4102d6mr5433937qki.744.1653076759052;
Fri, 20 May 2022 12:59:19 -0700 (PDT)
X-Received: by 2002:a05:622a:7:b0:2f3:c136:b7bc with SMTP id
x7-20020a05622a000700b002f3c136b7bcmr8903494qtw.243.1653076758852; Fri, 20
May 2022 12:59:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Fri, 20 May 2022 12:59:18 -0700 (PDT)
In-Reply-To: <jepthlFu23oU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:46b0:abc0:5c9b:8844:95b9:a6ff;
posting-account=OGFVHQoAAAASiNAamRQec8BtkuXxYFnQ
NNTP-Posting-Host: 2600:1700:46b0:abc0:5c9b:8844:95b9:a6ff
References: <jenek0Ffj8dU2@mid.individual.net> <t664pc$32q$1@dont-email.me>
<jenk72FgmudU1@mid.individual.net> <6286eb16$0$701$14726298@news.sunsite.dk>
<jeo9bmFkgeeU1@mid.individual.net> <6286f0a2$0$701$14726298@news.sunsite.dk>
<jepi8eFrt3gU1@mid.individual.net> <6287b721$0$700$14726298@news.sunsite.dk> <jepthlFu23oU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d9e5040b-a61b-4fc5-bfe6-85401980e486n@googlegroups.com>
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
From: jake.ha...@gmail.com (Jake Hamby)
Injection-Date: Fri, 20 May 2022 19:59:19 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4350
 by: Jake Hamby - Fri, 20 May 2022 19:59 UTC

On Friday, May 20, 2022 at 9:22:17 AM UTC-7, Bill Gunshannon wrote:
> >
> > And based on how the state of world actually are today then
> > I think Hoff's advice made a lot of sense.
> True, but some of what I mentioned isn't limited to compilers
> or just K&R code.
>
> Why didn't ANSI fix some of the problems like null terminated
> strings, requiring bounds checking, etc. when they had the
> chance?
>
> bill

Well, C is very much in the "worse is better" spirit of software design that Richard Gabriel coined in 1989, to contrast with Lisp and other designs that focused on correctness rather than "move fast and break things".

C++ is the way it is because everyone wanted it to be backwards-compatible to C. It also didn't have the ability in the early days to support safer ways of working with data (STL, exceptions). If you want to see something truly hideous, look up how Symbian (EPOC32) implemented strings and byte buffers (ASCII and UTF-16) for an early GCC cross-compiler using their own custom class library (they had their own setjmp/longjmp based alternative to C++ exceptions, too).

One VMSism that fascinates me is that it's the only OS that I've used with a calling standard that passes the number of arguments and their types (64-bit int or float) to the callee, so it's simple to implement variadic functions in C that don't crash if the programmer put too many "%" specifiers in their printf() string for the number of arguments passed. That's also how the CRTL can have POSIX functions with VMS extensions that take an extra argument or two. Without the argument info register, this wouldn't be possible, and isn't possible on UNIX or Windows.

In a fit of madness about 16 months ago, I started writing some C++ wrappers for VMS system primitives, string descriptors, RMS, etc. to see if it'd be possible to make a friendlier wrapper than the C API. One advantage of C++ is that it's possible to wrap classes around C in a zero-overhead way. In fact, some of my classes inherited from the VMS struct they add functions to.

https://github.com/jhamby/vms-cd-new/tree/main/src

Sadly, I didn't finish my C++ version of the "CD" utility I was trying to port from VAX MACRO, but the attempt was quite educational. I think the C APIs are sufficient for someone to wrap much higher-level abstractions on top of. If you look at VSI's Python modules for VMS system calls, you can see that they're very low-level wrappers on top of the VMS APIs, much like my C++ headers. I prefer the way the port of Regina works, where the author wrote implementations of the DCL F$ lexical functions and then does all the work under the hood in C code to get the info the user wants, as a string or integer.

Jake

Re: Why Linux ?, was: Re: VMS article in The Register

<9a71bf8e-01c9-415b-825f-a8ebc382be7dn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:622a:1a20:b0:2f7:3b31:7cba with SMTP id f32-20020a05622a1a2000b002f73b317cbamr9226111qtb.689.1653077843547;
Fri, 20 May 2022 13:17:23 -0700 (PDT)
X-Received: by 2002:a37:8a85:0:b0:6a2:fa5b:e7db with SMTP id
m127-20020a378a85000000b006a2fa5be7dbmr7520076qkd.347.1653077843340; Fri, 20
May 2022 13:17:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Fri, 20 May 2022 13:17:23 -0700 (PDT)
In-Reply-To: <t66u7j$5l2$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:46b0:abc0:5c9b:8844:95b9:a6ff;
posting-account=OGFVHQoAAAASiNAamRQec8BtkuXxYFnQ
NNTP-Posting-Host: 2600:1700:46b0:abc0:5c9b:8844:95b9:a6ff
References: <t5j0si$jm8$4@dont-email.me> <je4kkuFrm0hU1@mid.individual.net>
<573cf2f7-9888-43cb-b5b1-bd95f8043ed6n@googlegroups.com> <628190f5$0$697$14726298@news.sunsite.dk>
<jenebhFfj8dU1@mid.individual.net> <5e165e6b-c0c6-4dab-a2b6-f24c3d885a29n@googlegroups.com>
<t66u7j$5l2$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9a71bf8e-01c9-415b-825f-a8ebc382be7dn@googlegroups.com>
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
From: jake.ha...@gmail.com (Jake Hamby)
Injection-Date: Fri, 20 May 2022 20:17:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5095
 by: Jake Hamby - Fri, 20 May 2022 20:17 UTC

On Thursday, May 19, 2022 at 7:25:58 PM UTC-7, Craig A. Berry wrote:
> It's going to remain an open question for some time. As far as I know,
> none of the cross compilers has optimizations turned on, which means
> there is no optimized code in the OS or libraries shipped with the OS,
> much less in anything you build yourself.
>
> Once the optimizations are available, you'll run into the inherently
> slow file I/O and network I/O that have been discussed many times here.
> The current roadmap does not include either of the new filesystems that
> have been planned and set aside, nor the networking overhaul (VCI 2.0).
> One can hope these will come back one day once the port to x86 is done.
>
> I would not expect VMS to be competitive in raw speed with other OSs on
> the same hardware anytime soon, but it really just needs to be a bit
> faster on virtual x86 than it was on the last generation of Integrity
> hardware for it to be a big step forward. Reducing cost and risk are
> going to be a lot more important to most people in the near term than
> increasing speed.

I agree with everything you just said.

> pipe() on VMS is based on mailboxes, an ancient virtual device
> technology that is convenient to use and quite effective for passing
> small messages around between processes. But it's slow, and it's a
> record-oriented device, which doesn't always play nice in a
> stream-oriented world (though stream-oriented behavior is emulated to
> some extent). For a faster pipe implementation see dmpipe, which uses
> global sections:
>
> https://sourceforge.net/p/vms-ports/dmpipe
>
> Unfortunately this involves wrapping pretty much every function in the
> CRTL that touches a file descriptor -- the fix should really be inside
> the CRTL, but, alas, that also is not on the roadmap.

Aha, that's where I should look for a faster pipe implementation, thanks! I saw something similar to dmpipe in the GNV bash port ("vms_vm_pipe.c"), but it didn't come with docs or test programs, so I didn't want to use that version.

The code that I need to update, to finish making Regina useful again on VMS, is reviving the original author's code to call lib$spawn() with the NOWAIT flag to execute DCL commands and redirect their SYS$INPUT and SYS$OUTPUT.

It'd be nice if I could use the vfork()/execvp() code that I wrote, but it only works for .exe and .com files, not DCL commands. So I'm going to have to revive the lib$spawn() based vms_do_command(), which uses mailbox devices, and was ironically #ifdef'd out later with the (too-optimistic) comment:

/*
* At least with OpenVMS 7.3-1 on Alpha, the Posix way seems to work.
* So there is no need to redirect on (now) bogus code.
* But I keep the code here in case I didn't see something.
*/

Honestly, I'm not sure what code paths any previous users of Regina on VMS were actually using, because, before I started making my changes, the do_command code was falling through to generic code that used temp files for redirection instead of any of the clever POSIX stuff that does mostly seem to work on VMS. It's just that I have to modify it to try to use lib$spawn() first, to achieve the original behavior of letting you put arbitrary DCL commands in Rexx scripts and redirect their input/output into files or Rexx FIFOs (a really cool feature of the language). The vfork()/execvp() code is still useful as a fallback, and when Regina needs to spawn itself as a subprocess.

Jake

Re: Why Linux ?, was: Re: VMS article in The Register

<dadf066f-46f1-4698-895f-5270535f6b19n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a37:58c6:0:b0:6a3:3037:a5f with SMTP id m189-20020a3758c6000000b006a330370a5fmr6452877qkb.680.1653078505380;
Fri, 20 May 2022 13:28:25 -0700 (PDT)
X-Received: by 2002:a05:620a:c86:b0:69f:c7cb:935a with SMTP id
q6-20020a05620a0c8600b0069fc7cb935amr7521093qki.229.1653078505207; Fri, 20
May 2022 13:28:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Fri, 20 May 2022 13:28:24 -0700 (PDT)
In-Reply-To: <52c6a1b7-0a41-4398-8b4f-9338aba4c1e2n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:46b0:abc0:5c9b:8844:95b9:a6ff;
posting-account=OGFVHQoAAAASiNAamRQec8BtkuXxYFnQ
NNTP-Posting-Host: 2600:1700:46b0:abc0:5c9b:8844:95b9:a6ff
References: <jenek0Ffj8dU2@mid.individual.net> <t664pc$32q$1@dont-email.me> <52c6a1b7-0a41-4398-8b4f-9338aba4c1e2n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dadf066f-46f1-4698-895f-5270535f6b19n@googlegroups.com>
Subject: Re: Why Linux ?, was: Re: VMS article in The Register
From: jake.ha...@gmail.com (Jake Hamby)
Injection-Date: Fri, 20 May 2022 20:28:25 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Jake Hamby - Fri, 20 May 2022 20:28 UTC

On Thursday, May 19, 2022 at 2:21:04 PM UTC-7, Jake Hamby wrote:
> Nothing at all VMS-specific about that bug, and I really have had no complaints about DEC C/C++ in terms of the compiler crashing with internal errors or generating bad code or anything like that with open source programs I've compiled.

I had to jinx myself: after I wrote that, I managed to get an internal compiler error in VSI C V7.4-002 on the Alpha by building rexx.exe with /PLUS_LIST_OPTIMIZE and /OPT=(LEV=5). I assume I managed to overflow some internal inlining logic. With level 4 optimization, the compile succeeds and the program is smaller and runs faster than with LEV=5 and no /PLUS_LIST.

%SYSTEM-F-ACCVIO, access violation, reason mask=04, virtual address=0000000000000010, PC=00000000005F5F14, PS=0000001B
%TRACE-F-TRACEBACK, symbolic stack dump follows
image module routine line rel PC abs PC
DECC$COMPILER GEM_FI_PEEP MOVE_SECTION
5766 0000000000005604 00000000005F5F14
DECC$COMPILER GEM_FI_PEEP REVERSE_CROSS_JUMP
7959 0000000000007A48 00000000005F8358
DECC$COMPILER GEM_FI_PEEP GEM_FI_PEEP_BRANCH_PROCESSING
3075 000000000000217C 00000000005F2A8C
DECC$COMPILER GEM_FI_PEEP_ALPHA GEM_FI_PEEP_APPLY_PEEPHOLE
741 0000000000000148 000000000083B168
DECC$COMPILER GEM_FI_PEEP PROCESS_PATTERN_LIST
7573 0000000000007284 00000000005F7B94
DECC$COMPILER GEM_FI_PEEP GEM_FI_PEEP
1579 00000000000003E4 00000000005F0CF4
DECC$COMPILER 0 000000000049AC28 000000000049AC28
DECC$COMPILER 0 000000000049B034 000000000049B034
DECC$COMPILER GEM_CO GEM_CO_COMPILE_MODULE
3730 0000000000000D3C 000000000054EDEC
DECC$COMPILER COMPILE gemc_be_master
93315 0000000000000F5C 00000000001C35BC
DECC$COMPILER COMPILE 92535 00000000001C35BC 0000000000000000
DECC$COMPILER GEM_CP_VMS GEM_CP_MAIN
2629 00000000000018BC 0000000000535AEC
0 FFFFFFFF80383C04 FFFFFFFF80383C04
%TRACE-I-END, end of TRACE stack dump
%MMK-F-ERRUPD, error status %X1000000C occurred when updating target REXX.EXE

Pages:123
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor