Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Buy land. They've stopped making it." -- Mark Twain


computers / comp.os.vms / Re: Userland programming languages on VMS.

SubjectAuthor
* Userland programming languages on VMS.Simon Clubley
+* Re: Userland programming languages on VMS.Arne Vajhøj
|`* Re: Userland programming languages on VMS.Richard Maher
| +* Re: Userland programming languages on VMS.VAXman-
| |+* Re: Userland programming languages on VMS.Bill Gunshannon
| ||`- Re: Userland programming languages on VMS.Arne Vajhøj
| |`* Re: Userland programming languages on VMS.Richard Maher
| | `- Re: Userland programming languages on VMS.VAXman-
| +* Re: Userland programming languages on VMS.VAXman-
| |`* Re: Userland programming languages on VMS.Arne Vajhøj
| | +* Re: Userland programming languages on VMS.Johnny Billquist
| | |`- Re: Userland programming languages on VMS.Arne Vajhøj
| | `* Re: Userland programming languages on VMS.VAXman-
| |  `- Re: Userland programming languages on VMS.Arne Vajhøj
| `- Re: Userland programming languages on VMS.Richard Maher
+* Re: Userland programming languages on VMS.abrsvc
|`* Re: Userland programming languages on VMS.Steven Schweda
| `* Re: Userland programming languages on VMS.Arne Vajhøj
|  `* Re: Userland programming languages on VMS.Steven Schweda
|   `* Re: Userland programming languages on VMS.cao...@pitbulluk.org
|    +* Re: Userland programming languages on VMS.Arne Vajhøj
|    |`* Re: Userland programming languages on VMS.John Reagan
|    | `* Re: Userland programming languages on VMS.Arne Vajhøj
|    |  `* Re: Userland programming languages on VMS.Bill Gunshannon
|    |   +* Re: Userland programming languages on VMS.Arne Vajhøj
|    |   |`* Re: Userland programming languages on VMS.Bill Gunshannon
|    |   | +- Re: Userland programming languages on VMS.Arne Vajhøj
|    |   | `* Re: Userland programming languages on VMS.Simon Clubley
|    |   |  `* Re: Userland programming languages on VMS.Bill Gunshannon
|    |   |   +- Re: Userland programming languages on VMS.Arne Vajhøj
|    |   |   `* Re: Userland programming languages on VMS.Arne Vajhøj
|    |   |    `* Re: Userland programming languages on VMS.Bill Gunshannon
|    |   |     `* Re: Userland programming languages on VMS.Arne Vajhøj
|    |   |      `* Re: Userland programming languages on VMS.Bill Gunshannon
|    |   |       +- Re: Userland programming languages on VMS.Arne Vajhøj
|    |   |       `* Re: Userland programming languages on VMS.Phillip Helbig (undress to reply
|    |   |        +- Re: Userland programming languages on VMS.Arne Vajhøj
|    |   |        `* Re: Userland programming languages on VMS.Phillip Helbig (undress to reply
|    |   |         +- Re: Userland programming languages on VMS.Arne Vajhøj
|    |   |         `- Re: Userland programming languages on VMS.Bill Gunshannon
|    |   +- Re: Userland programming languages on VMS.Dave Froble
|    |   `* Re: Userland programming languages on VMS.George Cornelius
|    |    +* Re: Userland programming languages on VMS.Bill Gunshannon
|    |    |`* Re: Userland programming languages on VMS.Dave Froble
|    |    | `- Re: Userland programming languages on VMS.Simon Clubley
|    |    `* Re: Userland programming languages on VMS.Arne Vajhøj
|    |     `* Re: Userland programming languages on VMS.Simon Clubley
|    |      `* Re: Userland programming languages on VMS.Arne Vajhøj
|    |       `* Re: Userland programming languages on VMS.Johnny Billquist
|    |        +- Re: Userland programming languages on VMS.Andreas Gruhl
|    |        +- Re: Userland programming languages on VMS.Andreas Gruhl
|    |        +- Re: Userland programming languages on VMS.John Reagan
|    |        +- Re: Userland programming languages on VMS.Arne Vajhøj
|    |        `- Re: Userland programming languages on VMS.Dave Froble
|    `- Re: Userland programming languages on VMS.John Reagan
+* Re: Userland programming languages on VMS.VAXman-
|+- Re: Userland programming languages on VMS.Bill Gunshannon
|+* Re: Userland programming languages on VMS.Arne Vajhøj
||`* Re: Userland programming languages on VMS.chris
|| `* Re: Userland programming languages on VMS.Chris Townley
||  `* Re: Userland programming languages on VMS.Simon Clubley
||   `* Re: Userland programming languages on VMS.Chris Townley
||    +* Re: Userland programming languages on VMS.Bill Gunshannon
||    |`* Re: Userland programming languages on VMS.Chris Townley
||    | `- Re: Userland programming languages on VMS.Scott Dorsey
||    `- Re: Userland programming languages on VMS.Simon Clubley
|`* Re: Userland programming languages on VMS.Simon Clubley
| `* Re: Userland programming languages on VMS.Dave Froble
|  `* Re: Userland programming languages on VMS.Arne Vajhøj
|   `* Re: Userland programming languages on VMS.Dave Froble
|    +- Re: Userland programming languages on VMS.Arne Vajhøj
|    +* Re: Userland programming languages on VMS.Arne Vajhøj
|    |+* Re: Userland programming languages on VMS.Arne Vajhøj
|    ||`* Re: Userland programming languages on VMS.cao...@pitbulluk.org
|    || `- Re: Userland programming languages on VMS.Arne Vajhøj
|    |`* Re: Userland programming languages on VMS.Arne Vajhøj
|    | +* Re: Userland programming languages on VMS.Scott Dorsey
|    | |+* Re: Userland programming languages on VMS.Bill Gunshannon
|    | ||+* Re: Userland programming languages on VMS.Arne Vajhøj
|    | |||`* Re: Userland programming languages on VMS.Bill Gunshannon
|    | ||| `* Re: Userland programming languages on VMS.Arne Vajhøj
|    | |||  `* Re: Userland programming languages on VMS.Bill Gunshannon
|    | |||   `* Re: Userland programming languages on VMS.Arne Vajhøj
|    | |||    `- Re: Userland programming languages on VMS.Bill Gunshannon
|    | ||`- Re: Userland programming languages on VMS.Scott Dorsey
|    | |`* Re: Userland programming languages on VMS.Simon Clubley
|    | | +- Re: Userland programming languages on VMS.Dave Froble
|    | | +* Re: Userland programming languages on VMS.Scott Dorsey
|    | | |`* Re: Userland programming languages on VMS.Arne Vajhøj
|    | | | `- Re: Userland programming languages on VMS.Arne Vajhøj
|    | | +- Re: Userland programming languages on VMS.John Wallace
|    | | `* Re: Userland programming languages on VMS.Johnny Billquist
|    | |  +* Re: Userland programming languages on VMS.John Reagan
|    | |  |`- Re: Userland programming languages on VMS.Arne Vajhøj
|    | |  +* Re: Userland programming languages on VMS.Arne Vajhøj
|    | |  |`* Re: Userland programming languages on VMS.Bill Gunshannon
|    | |  | `* Re: Userland programming languages on VMS.Arne Vajhøj
|    | |  |  `* Re: Userland programming languages on VMS.Bill Gunshannon
|    | |  |   `- Re: Userland programming languages on VMS.Arne Vajhøj
|    | |  `* Re: Userland programming languages on VMS.Bill Gunshannon
|    | |   +* Re: Userland programming languages on VMS.Arne Vajhøj
|    | |   `* Re: Userland programming languages on VMS.Dave Froble
|    | +* Re: Userland programming languages on VMS.Dave Froble
|    | `* Re: Userland programming languages on VMS.Simon Clubley
|    `- Re: Userland programming languages on VMS.Dave Froble
+* Re: Userland programming languages on VMS.Phillip Helbig (undress to reply
`* Re: Userland programming languages on VMS.Paul Hardy

Pages:12345678910
Re: Userland programming languages on VMS.

<j60b7sF4mv8U2@mid.individual.net>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Wed, 2 Feb 2022 16:26:19 -0500
Lines: 25
Message-ID: <j60b7sF4mv8U2@mid.individual.net>
References: <st401o$jaa$1@dont-email.me>
<memo.20220129195434.12544U@jgd.cix.co.uk>
<61f5a1c8$0$693$14726298@news.sunsite.dk>
<61f5d848$0$699$14726298@news.sunsite.dk> <st7a14$cu9$10@dont-email.me>
<61f73205$0$700$14726298@news.sunsite.dk> <j5p1unF8eghU1@mid.individual.net>
<61f7e81a$0$695$14726298@news.sunsite.dk> <st8q52$ch7$7@dont-email.me>
<j5ql6fFhv18U1@mid.individual.net> <st9e4i$3qs$5@dont-email.me>
<j5r1uoFkapaU1@mid.individual.net> <sta0al$5jk$1@news.misty.com>
<j5rgs6Fn1d9U1@mid.individual.net> <sta5h4$jio$1@dont-email.me>
<stbefv$rre$2@dont-email.me> <stbopr$frn$1@dont-email.me>
<stbu3u$n1f$1@dont-email.me> <stc38t$mpc$1@news.misty.com>
<stcgki$tae$1@dont-email.me> <stek0b$375$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net it885d7EWRYV7gXomVqk4QKbw4teKQba2FjGI94uk/n3qDipni
Cancel-Lock: sha1:BRWi1eYH+jQ/tJNJCChX314Ppso=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <stek0b$375$3@dont-email.me>
 by: Bill Gunshannon - Wed, 2 Feb 2022 21:26 UTC

On 2/2/22 13:54, Simon Clubley wrote:
> On 2022-02-01, Dave Froble <davef@tsoft-inc.com> wrote:
>>
>> It is a factor, when Simon wants it to be. It is not a factor when Simon does
>> not want it to be.
>>
>> He is also good at partially quoting what someone writes, when he wants to
>> change the message to what he wants to respond to.
>>
>
> No, it means that the Unix developers had a level of insight and
> forward thinking that DEC lacked when the Unix developers chose to
> rewrite Unix in a mostly portable programming language from top to
> bottom long before such ideas became mainstream.
>
> It's a pity that the move to what was essentially a portable version
> of VMS in Pillar 10 years after VMS was created was cancelled. That
> could have _really_ opened up the future use of VMS in the same way
> that the use of a mostly portable language did for Unix.
>

Really? How many systems have Pillar compilers today? Does VMS?

bill

Re: Userland programming languages on VMS.

<j60bo0F4puhU1@mid.individual.net>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Wed, 2 Feb 2022 16:34:55 -0500
Lines: 92
Message-ID: <j60bo0F4puhU1@mid.individual.net>
References: <st401o$jaa$1@dont-email.me>
<memo.20220129195434.12544U@jgd.cix.co.uk>
<61f5a1c8$0$693$14726298@news.sunsite.dk>
<61f5d848$0$699$14726298@news.sunsite.dk> <st7a14$cu9$10@dont-email.me>
<61f73205$0$700$14726298@news.sunsite.dk> <j5p1unF8eghU1@mid.individual.net>
<61f7e81a$0$695$14726298@news.sunsite.dk> <st8q52$ch7$7@dont-email.me>
<j5ql6fFhv18U1@mid.individual.net> <st9e4i$3qs$5@dont-email.me>
<j5r1uoFkapaU1@mid.individual.net> <sta0al$5jk$1@news.misty.com>
<j5rgs6Fn1d9U1@mid.individual.net> <sta5h4$jio$1@dont-email.me>
<stbefv$rre$2@dont-email.me> <stbopr$frn$1@dont-email.me>
<stbu3u$n1f$1@dont-email.me> <stc38t$mpc$1@news.misty.com>
<stej82$375$2@dont-email.me> <61fadbdf$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 MnMxuyUqFj0BmYvDHupclglQNGEdDJWe/OpCZiAFAWdiJVh6rz
Cancel-Lock: sha1:/bc4B6AHWFjpPVN9jzcX2msDOM8=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <61fadbdf$0$700$14726298@news.sunsite.dk>
 by: Bill Gunshannon - Wed, 2 Feb 2022 21:34 UTC

On 2/2/22 14:30, Arne Vajhøj wrote:
> On 2/2/2022 1:41 PM, Simon Clubley wrote:
>> On 2022-02-01, Johnny Billquist <bqt@softjar.se> wrote:
>>> On 2022-02-01 19:28, Simon Clubley wrote:
>>>> On 2022-02-01, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>> On 2/1/2022 9:01 AM, Simon Clubley wrote:
>>>>>> On 2022-01-31, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>>>>
>>>>>>> Don't people ever wonder what DEC people were thinking when they
>>>>>>> wrote VMS?
>>>>>>>
>>>>>>
>>>>>> Yes, I do. Then I remember it was written in the 1970s. :-) :-)
>>>>>
>>>>> What does that have to do with anything?
>>>>>
>>>>
>>>> What makes some things about VMS so limiting in the 21st century is
>>>> as a direct result of it being designed in the 1970s instead of it
>>>> being designed around more modern techniques and concepts.
>>>>
>>>> I believe I may have expressed some opinions in this area
>>>> previously. :-)
>>>
>>> This kind of argument always have the same problem that Unix is even
>>> older. Does that mean Unix have an even larger problem?
>>>
>>> Or is this in fact not a factor in there?
>>>
>>
>> No. It means that the Unix creators were _very_ insightful and _very_
>> forward looking in the early 1970s when they rewrote Unix, including
>> the kernel, in a mostly portable language that mostly decoupled the
>> implementation from the architecture it ran on, while most other people
>> still wrote their kernels, and maybe good portions of their userland
>> as well, in assembly language.
>
> The idea of an OS mostly written in a HLL is not invented by Unix.

Primos which predates VMS was written mostly in HLLs. Some pretty
obscure ones, but HLLs just the same. :-)

>
> But I agree that they made the right decision.
>
>> They were also very insightful in that the minimum application
>> programming
>> language they supported was also C. These factors laid the groundwork
>> for the future use of Unix across a large range of architectures and
>> was directly responsible for its rise to the position it gained.
>
> I believe that assembler has always been supported on Unix.
>
> With the traditional Unix C tool chain of compiler driver calling
> preprocessor, actual compiler, assembler and loader then it  is
> not even possible to compile on a system without the assembler.

I don;t think he was saying they had no assembler, they certainly did
and it got used. I have used it myself. And looking at assembler
output from the compiler is often a big help when trying to locate
and fix bugs. He just meant that the OS is not written in assembler.
I would have to go back an look but I am pretty sure even after the
advent of the C based Unix there were still pieces in assembler for
quite some time. I do not believe any of the current BSD's still
have any except maybe 2.11 on the PDP-11.

>
> And null terminated strings are not harder to do in assembler
> than descriptor strings.

Null terminated strings are common in MACRO-11.

>
>> They were a good 10 years earlier with these moves than when these ideas
>> started to become mainstream.
>>
>> DEC OTOH, took the traditional approach for the time and wrote their VMS
>> kernel in an assembly language that was directly tied to the architecture
>
> I believe a good chunk of VMS was not written in Macro-32 but in Bliss.
>
> In hindsight C would have been better than Bliss.
>
> In hindsight more Bliss/C and less Macro-32 would have been good.
>
> But 20/20 hindsight is easy.

Hindsight is always 20/20.

bill

Re: Userland programming languages on VMS.

<61fafc2d$0$705$14726298@news.sunsite.dk>

  copy mid

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

  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: Wed, 2 Feb 2022 16:48:22 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
Subject: Re: Userland programming languages on VMS.
Content-Language: en-US
Newsgroups: comp.os.vms
References: <st401o$jaa$1@dont-email.me>
<memo.20220129195434.12544U@jgd.cix.co.uk>
<61f5a1c8$0$693$14726298@news.sunsite.dk>
<61f5d848$0$699$14726298@news.sunsite.dk> <st7a14$cu9$10@dont-email.me>
<61f73205$0$700$14726298@news.sunsite.dk> <j5p1unF8eghU1@mid.individual.net>
<61f7e81a$0$695$14726298@news.sunsite.dk> <st8q52$ch7$7@dont-email.me>
<j5ql6fFhv18U1@mid.individual.net> <st9e4i$3qs$5@dont-email.me>
<j5r1uoFkapaU1@mid.individual.net> <sta0al$5jk$1@news.misty.com>
<j5rgs6Fn1d9U1@mid.individual.net> <sta5h4$jio$1@dont-email.me>
<stbefv$rre$2@dont-email.me> <stbopr$frn$1@dont-email.me>
<stbu3u$n1f$1@dont-email.me> <stc38t$mpc$1@news.misty.com>
<stej82$375$2@dont-email.me> <61fadbdf$0$700$14726298@news.sunsite.dk>
<j60bo0F4puhU1@mid.individual.net>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <j60bo0F4puhU1@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 53
Message-ID: <61fafc2d$0$705$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 4353770f.news.sunsite.dk
X-Trace: 1643838510 news.sunsite.dk 705 arne@vajhoej.dk/68.9.63.232:56017
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 2 Feb 2022 21:48 UTC

On 2/2/2022 4:34 PM, Bill Gunshannon wrote:
> On 2/2/22 14:30, Arne Vajhøj wrote:
>> On 2/2/2022 1:41 PM, Simon Clubley wrote:
>>> No. It means that the Unix creators were _very_ insightful and _very_
>>> forward looking in the early 1970s when they rewrote Unix, including
>>> the kernel, in a mostly portable language that mostly decoupled the
>>> implementation from the architecture it ran on, while most other people
>>> still wrote their kernels, and maybe good portions of their userland
>>> as well, in assembly language.
>>
>> The idea of an OS mostly written in a HLL is not invented by Unix.
>
> Primos which predates VMS was written mostly in HLLs. Some pretty
> obscure ones, but HLLs just the same.  :-)

And Multics predates Unix.

>> But I agree that they made the right decision.
>>
>>> They were also very insightful in that the minimum application
>>> programming
>>> language they supported was also C. These factors laid the groundwork
>>> for the future use of Unix across a large range of architectures and
>>> was directly responsible for its rise to the position it gained.
>>
>> I believe that assembler has always been supported on Unix.
>>
>> With the traditional Unix C tool chain of compiler driver calling
>> preprocessor, actual compiler, assembler and loader then it  is
>> not even possible to compile on a system without the assembler.
>
> I don;t think he was saying they had no assembler, they certainly did
> and it got used.  I have used it myself.  And looking at assembler
> output from the compiler is often a big help when trying to locate
> and fix bugs.  He just meant that the OS is not written in assembler.

That is how you read:

"the minimum application programming language they supported was also C"

?

> I would have to go back an look but I am pretty sure even after the
> advent of the C based Unix there were still pieces in assembler for
> quite some time.  I do not believe any of the current BSD's still
> have any except maybe 2.11 on the PDP-11.

I would have thought any OS needed a few assembler code files
or some C code files with ASM directives or some C code with
system specific pseudo functions mapping to native
instructions. To get some of really HW specific stuff done.

Arne

Re: Userland programming languages on VMS.

<stgo27$pc8$1@dont-email.me>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 14:15:35 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 82
Message-ID: <stgo27$pc8$1@dont-email.me>
References: <st401o$jaa$1@dont-email.me> <memo.20220129195434.12544U@jgd.cix.co.uk> <61f5a1c8$0$693$14726298@news.sunsite.dk> <61f5d848$0$699$14726298@news.sunsite.dk> <st7a14$cu9$10@dont-email.me> <61f73205$0$700$14726298@news.sunsite.dk> <j5p1unF8eghU1@mid.individual.net> <61f7e81a$0$695$14726298@news.sunsite.dk> <st8q52$ch7$7@dont-email.me> <j5ql6fFhv18U1@mid.individual.net> <st9e4i$3qs$5@dont-email.me> <j5r1uoFkapaU1@mid.individual.net> <sta0al$5jk$1@news.misty.com> <j5rgs6Fn1d9U1@mid.individual.net> <sta5h4$jio$1@dont-email.me> <stbefv$rre$2@dont-email.me> <stbopr$frn$1@dont-email.me> <stbu3u$n1f$1@dont-email.me> <stc38t$mpc$1@news.misty.com> <stej82$375$2@dont-email.me> <61fadbdf$0$700$14726298@news.sunsite.dk> <j60bo0F4puhU1@mid.individual.net> <61fafc2d$0$705$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 3 Feb 2022 14:15:35 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b0faa3f3e600ef428ff8ecd90adedf0f";
logging-data="25992"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vx6BvQ+7HjWiL00WbyeC46uYv6nCGg6Q="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:pJYVUg+U96kpzZHidZAuSBRLmPU=
 by: Simon Clubley - Thu, 3 Feb 2022 14:15 UTC

On 2022-02-02, Arne Vajhøj <arne@vajhoej.dk> wrote:
> On 2/2/2022 4:34 PM, Bill Gunshannon wrote:
>> On 2/2/22 14:30, Arne Vajhøj wrote:
>>> On 2/2/2022 1:41 PM, Simon Clubley wrote:
>>>> They were also very insightful in that the minimum application
>>>> programming
>>>> language they supported was also C. These factors laid the groundwork
>>>> for the future use of Unix across a large range of architectures and
>>>> was directly responsible for its rise to the position it gained.
>>>
>>> I believe that assembler has always been supported on Unix.
>>>
>>> With the traditional Unix C tool chain of compiler driver calling
>>> preprocessor, actual compiler, assembler and loader then it  is
>>> not even possible to compile on a system without the assembler.
>>
>> I don;t think he was saying they had no assembler, they certainly did
>> and it got used.  I have used it myself.  And looking at assembler
>> output from the compiler is often a big help when trying to locate
>> and fix bugs.  He just meant that the OS is not written in assembler.

That's right. The backend of the compiler gets given the IR code from
the front end after the front end parsed the user's source code and it
doesn't care what the code itself is doing or what part of the OS the
source code is interacting with.

The assembly language here is only a step along the way of creating the
final object code for the linker to use and is something that's private
to the compiler toolchain.

And yes Bill, you are correct in that the assembly language can be useful
in finding bugs, including compiler bugs. There's an Ada AI that's a direct
result of me looking at such code.

IOW, the assembly language is generated by the compiler and has absolutely
no meaning to the operating system itself.

>
> That is how you read:
>
> "the minimum application programming language they supported was also C"
>
> ?
>

That's exactly how you should read it Arne.

In VMS, I can point you to the operating supplied headers that allow
application programs to be written in Macro-32 and call VMS system
services, including all the structure definitions. That makes Macro-32
a supported language for application programming (unfortunately).

In Linux, there are no such headers because assembly language is not
a supported application programming language. (And /usr/include/asm/
is _NOT_ about writing application programs in assembly language. :-) )

>> I would have to go back an look but I am pretty sure even after the
>> advent of the C based Unix there were still pieces in assembler for
>> quite some time.  I do not believe any of the current BSD's still
>> have any except maybe 2.11 on the PDP-11.
>
> I would have thought any OS needed a few assembler code files
> or some C code files with ASM directives or some C code with
> system specific pseudo functions mapping to native
> instructions. To get some of really HW specific stuff done.
>

That's for extremely low-level stuff such as initial boot code or
interrupt dispatch code that dispatches to a C language interrupt
handler. Even when working on kernel code, most people never even
go anywhere near such code.

About the only time you would see assembly language in application
programs is as tiny inline fragments called from a HLL if you needed
direct access to a specific specialist CPU register (for example)
and then you (and not the OS) are responsible for that assembly language.

Simon.

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

Re: Userland programming languages on VMS.

<stgo7a$pc8$2@dont-email.me>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 14:18:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <stgo7a$pc8$2@dont-email.me>
References: <st401o$jaa$1@dont-email.me> <memo.20220129195434.12544U@jgd.cix.co.uk> <61f5a1c8$0$693$14726298@news.sunsite.dk> <61f5d848$0$699$14726298@news.sunsite.dk> <st7a14$cu9$10@dont-email.me> <61f73205$0$700$14726298@news.sunsite.dk> <j5p1unF8eghU1@mid.individual.net> <61f7e81a$0$695$14726298@news.sunsite.dk> <st8q52$ch7$7@dont-email.me> <j5ql6fFhv18U1@mid.individual.net> <st9e4i$3qs$5@dont-email.me> <j5r1uoFkapaU1@mid.individual.net> <sta0al$5jk$1@news.misty.com> <j5rgs6Fn1d9U1@mid.individual.net> <sta5h4$jio$1@dont-email.me> <stbefv$rre$2@dont-email.me> <stbopr$frn$1@dont-email.me> <stbu3u$n1f$1@dont-email.me> <stc38t$mpc$1@news.misty.com> <stej82$375$2@dont-email.me> <step7p$ll$1@news.misty.com>
Injection-Date: Thu, 3 Feb 2022 14:18:18 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b0faa3f3e600ef428ff8ecd90adedf0f";
logging-data="25992"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sJIqOV6OkVYu8ATaauIdWhPmqxeDQU7U="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:Lh/YnE4f9n4I5mojqhsc/Nztz/k=
 by: Simon Clubley - Thu, 3 Feb 2022 14:18 UTC

On 2022-02-02, Johnny Billquist <bqt@softjar.se> wrote:
>
> You said above:
> "What makes some things about VMS so limiting in the 21st century is
> as a direct result of it being designed in the 1970s instead of it
> being designed around more modern techniques and concepts."
>
> The implementation language have pretty much nothing to do with the design.
>
> Maybe what you actually meant is that the problem with VMS was that the
> implementation was done in a very 70s non-portable way?
>

That could be a far better way of expressing this, especially when
compared to how forward looking the Unix designers were during the
same time frame. Thank you Johnny.

Simon.

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

Re: Userland programming languages on VMS.

<stgocs$pc8$3@dont-email.me>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 14:21:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <stgocs$pc8$3@dont-email.me>
References: <ssurv4$nm1$1@dont-email.me> <1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net> <stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
Injection-Date: Thu, 3 Feb 2022 14:21:16 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b0faa3f3e600ef428ff8ecd90adedf0f";
logging-data="25992"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TyhB0RE4QBebWBiBqwR06vpRIm5qqGMw="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:+kuagNTmkna5RAgRFRHW11FKtEY=
 by: Simon Clubley - Thu, 3 Feb 2022 14:21 UTC

On 2022-02-02, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
> On 2/2/22 13:21, Simon Clubley wrote:
>> On 2022-02-01, Paul Hardy <p.g.hardy@btinternet.com> wrote:
>>> Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
>>>> ?
>>>> Fortran and COBOL are not suitable for writing operating system userland tools.
>>>
>>> Not that I would encourage it as an implementation language these days, but
>>> Fortran has been used as such in the past. I believe the Fortran H Extended
>>> optimising compiler for the IBM 360/370 was written largely in Fortran H
>>> Extended.
>>>
>>
>> You are correct about past use. In the context of the discussion,
>> I meant they are not suitable for writing userland tools _today_
>
> Why? Just because there are other languages doesn't obsolete their
> use for the task. If that were true we never needed anything after
> C was created. After all the first Open Source compilers for many
> of the languages in use were just x-to-C translators. P2C, F2C,
> heck even GNAT was originally just an Ada to C translator. And some
> are still that way and work just fine. GnuCOBOL for example.
>

Because C has turned out to be a better choice than Fortran for
writing userland tools so you would choose C (at a minimum) for
writing such tools today.

>> and I gave an example of where I had seen Fortran used in the
>> distant past while I was still in school and before before C got
>> established outside of Unix.
>
> Ind I have seen Fortran used for this stuff long after C escaped
> into the wild. There really is no legitimate reason why languages
> Pascal, Modula, Fortran, PL/I, or anything else is unsuitable as
> long as it is available on the system and there is a programmer
> willing to work with it. After all, in the nd it's all just ones
> and zeroes.
>

Pascal and the Modula variants offer far more than C. Fortran does not
when it comes to implementing userland tools.

Simon.

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

Re: Userland programming languages on VMS.

<stgoes$pc8$4@dont-email.me>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 14:22:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <stgoes$pc8$4@dont-email.me>
References: <st401o$jaa$1@dont-email.me> <memo.20220129195434.12544U@jgd.cix.co.uk> <61f5a1c8$0$693$14726298@news.sunsite.dk> <61f5d848$0$699$14726298@news.sunsite.dk> <st7a14$cu9$10@dont-email.me> <61f73205$0$700$14726298@news.sunsite.dk> <j5p1unF8eghU1@mid.individual.net> <61f7e81a$0$695$14726298@news.sunsite.dk> <st8q52$ch7$7@dont-email.me> <j5ql6fFhv18U1@mid.individual.net> <st9e4i$3qs$5@dont-email.me> <j5r1uoFkapaU1@mid.individual.net> <sta0al$5jk$1@news.misty.com> <j5rgs6Fn1d9U1@mid.individual.net> <sta5h4$jio$1@dont-email.me> <stbefv$rre$2@dont-email.me> <stbopr$frn$1@dont-email.me> <stbu3u$n1f$1@dont-email.me> <stc38t$mpc$1@news.misty.com> <stcgki$tae$1@dont-email.me> <stek0b$375$3@dont-email.me> <j60b7sF4mv8U2@mid.individual.net>
Injection-Date: Thu, 3 Feb 2022 14:22:21 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b0faa3f3e600ef428ff8ecd90adedf0f";
logging-data="25992"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+OEXszIr/e8dwhHAi8DpgyYCP2/3s9VY="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:DI9Z4xeDBD8og+JMlsIl8l3OKrE=
 by: Simon Clubley - Thu, 3 Feb 2022 14:22 UTC

On 2022-02-02, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
> On 2/2/22 13:54, Simon Clubley wrote:
>> On 2022-02-01, Dave Froble <davef@tsoft-inc.com> wrote:
>>>
>>> It is a factor, when Simon wants it to be. It is not a factor when Simon does
>>> not want it to be.
>>>
>>> He is also good at partially quoting what someone writes, when he wants to
>>> change the message to what he wants to respond to.
>>>
>>
>> No, it means that the Unix developers had a level of insight and
>> forward thinking that DEC lacked when the Unix developers chose to
>> rewrite Unix in a mostly portable programming language from top to
>> bottom long before such ideas became mainstream.
>>
>> It's a pity that the move to what was essentially a portable version
>> of VMS in Pillar 10 years after VMS was created was cancelled. That
>> could have _really_ opened up the future use of VMS in the same way
>> that the use of a mostly portable language did for Unix.
>>
>
> Really? How many systems have Pillar compilers today? Does VMS?
>

Exactly zero systems have Pillar compilers today. Unfortunately.

Simon.

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

Re: Userland programming languages on VMS.

<j629vkFg23kU1@mid.individual.net>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 10:17:07 -0500
Lines: 55
Message-ID: <j629vkFg23kU1@mid.individual.net>
References: <ssurv4$nm1$1@dont-email.me>
<1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net>
<stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
<stgocs$pc8$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net a+MW68Q8L/u1SRC83vssFAbvK/efwEgYXAs7Hh863LNJTzppGR
Cancel-Lock: sha1:0NNd4HVdwLVikHxuYR4ZEm1JErM=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <stgocs$pc8$3@dont-email.me>
 by: Bill Gunshannon - Thu, 3 Feb 2022 15:17 UTC

On 2/3/22 09:21, Simon Clubley wrote:
> On 2022-02-02, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>> On 2/2/22 13:21, Simon Clubley wrote:
>>> On 2022-02-01, Paul Hardy <p.g.hardy@btinternet.com> wrote:
>>>> Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
>>>>> ?
>>>>> Fortran and COBOL are not suitable for writing operating system userland tools.
>>>>
>>>> Not that I would encourage it as an implementation language these days, but
>>>> Fortran has been used as such in the past. I believe the Fortran H Extended
>>>> optimising compiler for the IBM 360/370 was written largely in Fortran H
>>>> Extended.
>>>>
>>>
>>> You are correct about past use. In the context of the discussion,
>>> I meant they are not suitable for writing userland tools _today_
>>
>> Why? Just because there are other languages doesn't obsolete their
>> use for the task. If that were true we never needed anything after
>> C was created. After all the first Open Source compilers for many
>> of the languages in use were just x-to-C translators. P2C, F2C,
>> heck even GNAT was originally just an Ada to C translator. And some
>> are still that way and work just fine. GnuCOBOL for example.
>>
>
> Because C has turned out to be a better choice than Fortran for
> writing userland tools so you would choose C (at a minimum) for
> writing such tools today.

In what way? :-) There are a lot of people in the industry today
that feel that C isn't a good choice for anything.

>
>>> and I gave an example of where I had seen Fortran used in the
>>> distant past while I was still in school and before before C got
>>> established outside of Unix.
>>
>> Ind I have seen Fortran used for this stuff long after C escaped
>> into the wild. There really is no legitimate reason why languages
>> Pascal, Modula, Fortran, PL/I, or anything else is unsuitable as
>> long as it is available on the system and there is a programmer
>> willing to work with it. After all, in the nd it's all just ones
>> and zeroes.
>>
>
> Pascal and the Modula variants offer far more than C. Fortran does not
> when it comes to implementing userland tools.

Same question. In what way? I have already shown how Fortran was
used to write an entire userland for the first "POSIX" interface.
41 primitives and 50 utilities.

bill

Re: Userland programming languages on VMS.

<61fbf6ca$0$701$14726298@news.sunsite.dk>

  copy mid

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

  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, 3 Feb 2022 10:37:38 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
Subject: Re: Userland programming languages on VMS.
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ssurv4$nm1$1@dont-email.me>
<1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net>
<stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
<stgocs$pc8$3@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <stgocs$pc8$3@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 46
Message-ID: <61fbf6ca$0$701$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 198861c7.news.sunsite.dk
X-Trace: 1643902666 news.sunsite.dk 701 arne@vajhoej.dk/68.9.63.232:56066
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Thu, 3 Feb 2022 15:37 UTC

On 2/3/2022 9:21 AM, Simon Clubley wrote:
> On 2022-02-02, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>> On 2/2/22 13:21, Simon Clubley wrote:
>>> On 2022-02-01, Paul Hardy <p.g.hardy@btinternet.com> wrote:
>>>> Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
>>>>> ?
>>>>> Fortran and COBOL are not suitable for writing operating system userland tools.
>>>>
>>>> Not that I would encourage it as an implementation language these days, but
>>>> Fortran has been used as such in the past. I believe the Fortran H Extended
>>>> optimising compiler for the IBM 360/370 was written largely in Fortran H
>>>> Extended.
>>>
>>> You are correct about past use. In the context of the discussion,
>>> I meant they are not suitable for writing userland tools _today_
>>
>> Why? Just because there are other languages doesn't obsolete their
>> use for the task. If that were true we never needed anything after
>> C was created. After all the first Open Source compilers for many
>> of the languages in use were just x-to-C translators. P2C, F2C,
>> heck even GNAT was originally just an Ada to C translator. And some
>> are still that way and work just fine. GnuCOBOL for example.
>
> Because C has turned out to be a better choice than Fortran for
> writing userland tools so you would choose C (at a minimum) for
> writing such tools today.

Maybe it would be more correct to say that C is a less bad
choice than Fortran.

A key thing in such tools are string handling.

C's with null terminated fixed size char arrays sucks
just as much as Fortran fixed length characters.

But the standard C string library (string.h) is just more
powerful than what a Fortran compiler comes with.

But most other languages would do better.

Neither C nor Fortran has much protection against
developers shooting themselves in the foot.

Arne

Re: Userland programming languages on VMS.

<61fbf844$0$695$14726298@news.sunsite.dk>

  copy mid

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

  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: Thu, 3 Feb 2022 10:43:56 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
Subject: Re: Userland programming languages on VMS.
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ssurv4$nm1$1@dont-email.me>
<1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net>
<stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
<stgocs$pc8$3@dont-email.me> <j629vkFg23kU1@mid.individual.net>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <j629vkFg23kU1@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 82
Message-ID: <61fbf844$0$695$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 198861c7.news.sunsite.dk
X-Trace: 1643903044 news.sunsite.dk 695 arne@vajhoej.dk/68.9.63.232:56222
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Thu, 3 Feb 2022 15:43 UTC

On 2/3/2022 10:17 AM, Bill Gunshannon wrote:
> On 2/3/22 09:21, Simon Clubley wrote:
>> On 2022-02-02, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>>> On 2/2/22 13:21, Simon Clubley wrote:
>>>> On 2022-02-01, Paul Hardy <p.g.hardy@btinternet.com> wrote:
>>>>> Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
>>>>>>    ?
>>>>>> Fortran and COBOL are not suitable for writing operating system
>>>>>> userland tools.
>>>>>
>>>>> Not that I would encourage it as an implementation language these
>>>>> days, but
>>>>> Fortran has been used as such in the past. I believe the Fortran H
>>>>> Extended
>>>>> optimising compiler for the IBM 360/370 was written largely  in
>>>>> Fortran H
>>>>> Extended.
>>>>
>>>> You are correct about past use. In the context of the discussion,
>>>> I meant they are not suitable for writing userland tools _today_
>>>
>>> Why?  Just because there are other languages doesn't obsolete their
>>> use for the task.  If that were true we never needed anything after
>>> C was created.   After all the first Open Source compilers for many
>>> of the languages in use were just x-to-C translators.  P2C, F2C,
>>> heck even GNAT was originally just an Ada to C translator.  And some
>>> are still that way and work just fine. GnuCOBOL for example.
>>
>> Because C has turned out to be a better choice than Fortran for
>> writing userland tools so you would choose C (at a minimum) for
>> writing such tools today.
>
> In what way?  :-)  There are a lot of people in the industry today
> that feel that C isn't a good choice for anything.

C with its low level direct access no check to prevent users
from shooting themselves in the foot approach does make
sense for some OS kernel stuff and low level RTL stuff.

In recent years new languages has arrived that allows for
limiting the unsafe stuff to explicit specified blocks.

The:

// your code is checked
unsafe {
// your code is not checked
}

approach.

And I consider it quite likely that approach will take over from C.

In the next 25-50 years. :-)

>>>> and I gave an example of where I had seen Fortran used in the
>>>> distant past while I was still in school and before before C got
>>>> established outside of Unix.
>>>
>>> Ind I have seen Fortran used for this stuff long after C escaped
>>> into the wild.  There really is no legitimate reason why languages
>>> Pascal, Modula, Fortran, PL/I, or anything else is unsuitable as
>>> long as it is available on the system and there is a programmer
>>> willing to work with it.  After all, in the nd it's all just ones
>>> and zeroes.
>>>
>>
>> Pascal and the Modula variants offer far more than C. Fortran does not
>> when it comes to implementing userland tools.
>
> Same question.  In what way?  I have already shown how Fortran was
> used to write an entire userland for the first "POSIX" interface.
> 41 primitives and 50 utilities.

They tend to protect the developers feet a bit.

And most flavors got way better string handling than
C and Fortran.

Arne

Re: Userland programming languages on VMS.

<j62g9dFh8dqU1@mid.individual.net>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 12:04:44 -0500
Lines: 93
Message-ID: <j62g9dFh8dqU1@mid.individual.net>
References: <ssurv4$nm1$1@dont-email.me>
<1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net>
<stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
<stgocs$pc8$3@dont-email.me> <j629vkFg23kU1@mid.individual.net>
<61fbf844$0$695$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 zXdY9QDSdBRWJQ1bKOvMLAsX2aj/sov7+Z+ivs5x/jFFd/s5SB
Cancel-Lock: sha1:k2Gl+QAX94Wcb47PvYUAOYiDGg4=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <61fbf844$0$695$14726298@news.sunsite.dk>
 by: Bill Gunshannon - Thu, 3 Feb 2022 17:04 UTC

On 2/3/22 10:43, Arne Vajhøj wrote:
> On 2/3/2022 10:17 AM, Bill Gunshannon wrote:
>> On 2/3/22 09:21, Simon Clubley wrote:
>>> On 2022-02-02, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>>>> On 2/2/22 13:21, Simon Clubley wrote:
>>>>> On 2022-02-01, Paul Hardy <p.g.hardy@btinternet.com> wrote:
>>>>>> Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
>>>>>>>    ?
>>>>>>> Fortran and COBOL are not suitable for writing operating system
>>>>>>> userland tools.
>>>>>>
>>>>>> Not that I would encourage it as an implementation language these
>>>>>> days, but
>>>>>> Fortran has been used as such in the past. I believe the Fortran H
>>>>>> Extended
>>>>>> optimising compiler for the IBM 360/370 was written largely  in
>>>>>> Fortran H
>>>>>> Extended.
>>>>>
>>>>> You are correct about past use. In the context of the discussion,
>>>>> I meant they are not suitable for writing userland tools _today_
>>>>
>>>> Why?  Just because there are other languages doesn't obsolete their
>>>> use for the task.  If that were true we never needed anything after
>>>> C was created.   After all the first Open Source compilers for many
>>>> of the languages in use were just x-to-C translators.  P2C, F2C,
>>>> heck even GNAT was originally just an Ada to C translator.  And some
>>>> are still that way and work just fine. GnuCOBOL for example.
>>>
>>> Because C has turned out to be a better choice than Fortran for
>>> writing userland tools so you would choose C (at a minimum) for
>>> writing such tools today.
>>
>> In what way?  :-)  There are a lot of people in the industry today
>> that feel that C isn't a good choice for anything.
>
> C with its low level direct access no check to prevent users
> from shooting themselves in the foot approach does make
> sense for some OS kernel stuff and low level RTL stuff.

But Simon was talking about userland, not OS kernel stuff.

>
> In recent years new languages has arrived that allows for
> limiting the unsafe stuff to explicit specified blocks.
>
> The:
>
> // your code is checked
> unsafe {
>     // your code is not checked
> }
>
> approach.
>
> And I consider it quite likely that approach will take over from C.
>
> In the next 25-50 years.   :-)

I won;t be holding my breath. :-)

>
>>>>> and I gave an example of where I had seen Fortran used in the
>>>>> distant past while I was still in school and before before C got
>>>>> established outside of Unix.
>>>>
>>>> Ind I have seen Fortran used for this stuff long after C escaped
>>>> into the wild.  There really is no legitimate reason why languages
>>>> Pascal, Modula, Fortran, PL/I, or anything else is unsuitable as
>>>> long as it is available on the system and there is a programmer
>>>> willing to work with it.  After all, in the nd it's all just ones
>>>> and zeroes.
>>>>
>>>
>>> Pascal and the Modula variants offer far more than C. Fortran does not
>>> when it comes to implementing userland tools.
>>
>> Same question.  In what way?  I have already shown how Fortran was
>> used to write an entire userland for the first "POSIX" interface.
>> 41 primitives and 50 utilities.
> > They tend to protect the developers feet a bit.

How does one shoot themselves in the foot with Fortran? :-)

>
> And most flavors got way better string handling than
> C and Fortran.

And, how much string handling do you need for the average userland
program?

bill

Re: Userland programming languages on VMS.

<j62gl8Fh9r0U1@mid.individual.net>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 12:11:04 -0500
Lines: 70
Message-ID: <j62gl8Fh9r0U1@mid.individual.net>
References: <ssurv4$nm1$1@dont-email.me>
<1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net>
<stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
<stgocs$pc8$3@dont-email.me> <61fbf6ca$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 JZ8BlnZMM+Snu1MSetqqvwvD2llGE3ECOFQum4Fv6harWBtehU
Cancel-Lock: sha1:7WAv6NTrdYo9s8QrElXCrB6rVeU=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <61fbf6ca$0$701$14726298@news.sunsite.dk>
 by: Bill Gunshannon - Thu, 3 Feb 2022 17:11 UTC

On 2/3/22 10:37, Arne Vajhøj wrote:
> On 2/3/2022 9:21 AM, Simon Clubley wrote:
>> On 2022-02-02, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>>> On 2/2/22 13:21, Simon Clubley wrote:
>>>> On 2022-02-01, Paul Hardy <p.g.hardy@btinternet.com> wrote:
>>>>> Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
>>>>>>    ?
>>>>>> Fortran and COBOL are not suitable for writing operating system
>>>>>> userland tools.
>>>>>
>>>>> Not that I would encourage it as an implementation language these
>>>>> days, but
>>>>> Fortran has been used as such in the past. I believe the Fortran H
>>>>> Extended
>>>>> optimising compiler for the IBM 360/370 was written largely  in
>>>>> Fortran H
>>>>> Extended.
>>>>
>>>> You are correct about past use. In the context of the discussion,
>>>> I meant they are not suitable for writing userland tools _today_
>>>
>>> Why?  Just because there are other languages doesn't obsolete their
>>> use for the task.  If that were true we never needed anything after
>>> C was created.   After all the first Open Source compilers for many
>>> of the languages in use were just x-to-C translators.  P2C, F2C,
>>> heck even GNAT was originally just an Ada to C translator.  And some
>>> are still that way and work just fine. GnuCOBOL for example.
>>
>> Because C has turned out to be a better choice than Fortran for
>> writing userland tools so you would choose C (at a minimum) for
>> writing such tools today.
>
> Maybe it would be more correct to say that C is a less bad
> choice than Fortran.
>
> A key thing in such tools are string handling.

Any shortcomings in string handling in Fortran didn't seem to
stop it from proving the 41 primitives and 50 utilities in
STVOS.

>
> C's with null terminated fixed size char arrays sucks
> just as much as Fortran fixed length characters.

Believe it or not, some of us still fail to see why null terminated
strings are such a problem. Time to stop blaming a feature of the
language for the incompetence of some programmers.

>
> But the standard C string library (string.h) is just more
> powerful than what a Fortran compiler comes with.

Maybe, but it doesn't stop you from doing userland in Fortran,
Pascal or any other language.

>
> But most other languages would do better.

Maybe.

>
> Neither C nor Fortran has much protection against
> developers shooting themselves in the foot.

I am still waiting to hear how one shoots one's self in the foot
writing userland utilities in Fortran.

bill

Re: Userland programming languages on VMS.

<sth4hu$gtt$1@dont-email.me>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 12:48:06 -0500
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <sth4hu$gtt$1@dont-email.me>
References: <ssurv4$nm1$1@dont-email.me>
<1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net>
<stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
<stgocs$pc8$3@dont-email.me> <61fbf6ca$0$701$14726298@news.sunsite.dk>
<j62gl8Fh9r0U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 3 Feb 2022 17:48:46 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="0e8e10e536384ba05b3cff52767d7aab";
logging-data="17341"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/equ06Er0qzQY/lPN3/O67OF1gWRi+8Rw="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:FWBqy9uJB/5WzLiiB/kJCK7Dbo4=
In-Reply-To: <j62gl8Fh9r0U1@mid.individual.net>
 by: Dave Froble - Thu, 3 Feb 2022 17:48 UTC

On 2/3/2022 12:11 PM, Bill Gunshannon wrote:

> Believe it or not, some of us still fail to see why null terminated
> strings are such a problem. Time to stop blaming a feature of the
> language for the incompetence of some programmers.

For one thing, it prevents a character value of zero in a string.

--
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: Userland programming languages on VMS.

<j62kcjFi0q4U1@mid.individual.net>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 13:14:43 -0500
Lines: 16
Message-ID: <j62kcjFi0q4U1@mid.individual.net>
References: <ssurv4$nm1$1@dont-email.me>
<1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net>
<stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
<stgocs$pc8$3@dont-email.me> <61fbf6ca$0$701$14726298@news.sunsite.dk>
<j62gl8Fh9r0U1@mid.individual.net> <sth4hu$gtt$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net YYzjOidA6g5zw1B8CMH/AAUL3yofnlLVnvDo5maMea+Qu+ixtJ
Cancel-Lock: sha1:eF4LtmZLBl3zI4dkctRZLzMVRbA=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <sth4hu$gtt$1@dont-email.me>
 by: Bill Gunshannon - Thu, 3 Feb 2022 18:14 UTC

On 2/3/22 12:48, Dave Froble wrote:
> On 2/3/2022 12:11 PM, Bill Gunshannon wrote:
>
>> Believe it or not, some of us still fail to see why null terminated
>> strings are such a problem.  Time to stop blaming a feature of the
>> language for the incompetence of some programmers.
>
> For one thing, it prevents a character value of zero in a string.
>
>

And, in my 50 years of doing this stuff I have never run into a case
where that was a problem. Go figure.

bill

Re: Userland programming languages on VMS.

<sth7o6$7p8$1@dont-email.me>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 18:43:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <sth7o6$7p8$1@dont-email.me>
References: <ssurv4$nm1$1@dont-email.me> <1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net> <stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net> <stgocs$pc8$3@dont-email.me> <j629vkFg23kU1@mid.individual.net>
Injection-Date: Thu, 3 Feb 2022 18:43:19 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b0faa3f3e600ef428ff8ecd90adedf0f";
logging-data="7976"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+v2awNdfxgiu+HNF+IZ/M9fYU5AI8ZRNQ="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:XCyIzfbgNx8kD0Kopq22uWJmIkU=
 by: Simon Clubley - Thu, 3 Feb 2022 18:43 UTC

On 2022-02-03, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
> On 2/3/22 09:21, Simon Clubley wrote:
>>
>> Because C has turned out to be a better choice than Fortran for
>> writing userland tools so you would choose C (at a minimum) for
>> writing such tools today.
>
> In what way? :-) There are a lot of people in the industry today
> that feel that C isn't a good choice for anything.
>

There's a reason I keep referring to C as the _minimum_ acceptable
option, not the maximum acceptable option. :-)

As for those people, they need to find a language that is implemented
as widely as C is, so that implementing something in that other language
becomes an asset and not a liability.

If I had my way, everything would be written in Ada, but unfortunately,
that's not a viable option in today's world.

>>
>> Pascal and the Modula variants offer far more than C. Fortran does not
>> when it comes to implementing userland tools.
>
> Same question. In what way? I have already shown how Fortran was
> used to write an entire userland for the first "POSIX" interface.
> 41 primitives and 50 utilities.
>

In the case of Pascal and the Modula variants, that's easy.
Both of those options have strong type-safe and data manipulation
attributes and end up producing more robust code in general.

BTW, sort-of related to this, does anyone else wish C was a module
based language ?

Simon.

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

Re: Userland programming languages on VMS.

<sth8ul$7p8$2@dont-email.me>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 19:03:49 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <sth8ul$7p8$2@dont-email.me>
References: <ssurv4$nm1$1@dont-email.me> <1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net> <stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net> <stgocs$pc8$3@dont-email.me> <j629vkFg23kU1@mid.individual.net> <61fbf844$0$695$14726298@news.sunsite.dk> <j62g9dFh8dqU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 3 Feb 2022 19:03:49 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b0faa3f3e600ef428ff8ecd90adedf0f";
logging-data="7976"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Oggs7dBDT3QZB8MUa4ff1P42p1Rfpz1c="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:9tp7PBSI3xs9wBbJVct24ZhyPP8=
 by: Simon Clubley - Thu, 3 Feb 2022 19:03 UTC

On 2022-02-03, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
> On 2/3/22 10:43, Arne Vajhøj wrote:
>>
>> C with its low level direct access no check to prevent users
>> from shooting themselves in the foot approach does make
>> sense for some OS kernel stuff and low level RTL stuff.
>
> But Simon was talking about userland, not OS kernel stuff.
>

The RTL stuff is also in userland as well. For example, libc is not
part of the kernel (at least on the Unix variants I am aware of).

>>
>> In recent years new languages has arrived that allows for
>> limiting the unsafe stuff to explicit specified blocks.
>>
>> The:
>>
>> // your code is checked
>> unsafe {
>>     // your code is not checked
>> }
>>
>> approach.
>>
>> And I consider it quite likely that approach will take over from C.
>>
>> In the next 25-50 years.   :-)
>
> I won;t be holding my breath. :-)
>

Those people need to make sure those languages are not write-only
languages when doing this. Here is flashing an LED in various programming
languages and the Rust one is rather interesting.

https://www.raspberrypi.com/news/multilingual-blink-for-raspberry-pi-pico/

The Rust one is doing explicit setup of the clocks and PLLs by calling
a library whereas the other ones leave it implicitly to the libraries
they are using, but what you should be looking at is the general "feel"
of the various languages and especially the Rust one.

I can tell you that my bare metal clock/PLL setup code is way more readable
than that, even when I am doing the whole thing myself without the help
of a library. :-)

>>
>> And most flavors got way better string handling than
>> C and Fortran.
>
> And, how much string handling do you need for the average userland
> program?
>

For starters, everytime you do something related to parsing, a lot.

Simon.

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

Re: Userland programming languages on VMS.

<sth99d$7p8$3@dont-email.me>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 19:09:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <sth99d$7p8$3@dont-email.me>
References: <ssurv4$nm1$1@dont-email.me> <1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net> <stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net> <stgocs$pc8$3@dont-email.me> <61fbf6ca$0$701$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 3 Feb 2022 19:09:34 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b0faa3f3e600ef428ff8ecd90adedf0f";
logging-data="7976"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wdNeR+UvmXIIbBcT1CYPYk4oA/46RQSI="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:chXaKMTbeHhf/C++WDNrP+Nsko4=
 by: Simon Clubley - Thu, 3 Feb 2022 19:09 UTC

On 2022-02-03, Arne Vajhøj <arne@vajhoej.dk> wrote:
> On 2/3/2022 9:21 AM, Simon Clubley wrote:
>>
>> Because C has turned out to be a better choice than Fortran for
>> writing userland tools so you would choose C (at a minimum) for
>> writing such tools today.
>
> Maybe it would be more correct to say that C is a less bad
> choice than Fortran.
>

As just mentioned, there's a reason I call C the _minimum_ acceptable
option and not the maximum acceptable option. :-)

> A key thing in such tools are string handling.
>
> C's with null terminated fixed size char arrays sucks
> just as much as Fortran fixed length characters.
>
> But the standard C string library (string.h) is just more
> powerful than what a Fortran compiler comes with.
>
> But most other languages would do better.
>
> Neither C nor Fortran has much protection against
> developers shooting themselves in the foot.
>

Agreed. But unfortunately, people tend to be forced towards C simply
because it's the only language that has universal coverage across
architectures and operating systems, including when operating in
kernel mode. It's also a language that's easy to call from other
languages as well so it's easy to call libraries written in C as well.

Simon.

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

Re: Userland programming languages on VMS.

<sth9l2$7p8$4@dont-email.me>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 19:15:46 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <sth9l2$7p8$4@dont-email.me>
References: <ssurv4$nm1$1@dont-email.me> <1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net> <stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net> <stgocs$pc8$3@dont-email.me> <61fbf6ca$0$701$14726298@news.sunsite.dk> <j62gl8Fh9r0U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 3 Feb 2022 19:15:46 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b0faa3f3e600ef428ff8ecd90adedf0f";
logging-data="7976"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18uMmS9yabWPsNf1y6/qS/YaRWl/SsoKl8="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:F1wY9h8UWLkSUWfQlUTrCgfG5ps=
 by: Simon Clubley - Thu, 3 Feb 2022 19:15 UTC

On 2022-02-03, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
> On 2/3/22 10:37, Arne Vajhøj wrote:
>>
>> A key thing in such tools are string handling.
>
> Any shortcomings in string handling in Fortran didn't seem to
> stop it from proving the 41 primitives and 50 utilities in
> STVOS.
>

You can write a full-blown parser in Macro-32 if you really want to.

It doesn't mean that any sane person would want to do that when there
are better languages available. :-)

Simon.

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

Re: Userland programming languages on VMS.

<j62o8mFio4qU1@mid.individual.net>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 14:20:54 -0500
Lines: 53
Message-ID: <j62o8mFio4qU1@mid.individual.net>
References: <ssurv4$nm1$1@dont-email.me>
<1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net>
<stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
<stgocs$pc8$3@dont-email.me> <j629vkFg23kU1@mid.individual.net>
<sth7o6$7p8$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 fyBs/+g4J5woYFmzN+hqWQxfDk1y98kI3Gw4IpoRwGaV6kILcG
Cancel-Lock: sha1:xEN1Cx5qkrIgE/luqAWdA+hGeBM=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <sth7o6$7p8$1@dont-email.me>
 by: Bill Gunshannon - Thu, 3 Feb 2022 19:20 UTC

On 2/3/22 13:43, Simon Clubley wrote:
> On 2022-02-03, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>> On 2/3/22 09:21, Simon Clubley wrote:
>>>
>>> Because C has turned out to be a better choice than Fortran for
>>> writing userland tools so you would choose C (at a minimum) for
>>> writing such tools today.
>>
>> In what way? :-) There are a lot of people in the industry today
>> that feel that C isn't a good choice for anything.
>>
>
> There's a reason I keep referring to C as the _minimum_ acceptable
> option, not the maximum acceptable option. :-)
>
> As for those people, they need to find a language that is implemented
> as widely as C is, so that implementing something in that other language
> becomes an asset and not a liability.
>
> If I had my way, everything would be written in Ada, but unfortunately,
> that's not a viable option in today's world.

There are reasons why Ada didn't become the success story people
originally thought it would.

>
>>>
>>> Pascal and the Modula variants offer far more than C. Fortran does not
>>> when it comes to implementing userland tools.
>>
>> Same question. In what way? I have already shown how Fortran was
>> used to write an entire userland for the first "POSIX" interface.
>> 41 primitives and 50 utilities.
>>
>
> In the case of Pascal and the Modula variants, that's easy.
> Both of those options have strong type-safe and data manipulation
> attributes and end up producing more robust code in general.

Fortran is just as strongly typed. And what isn't robust about code
compiled from Fortran?

>
> BTW, sort-of related to this, does anyone else wish C was a module
> based language ?
>

Why did you take both of these conversations back to C?
In both of the above segments we were talking about the supposed
unsuitability of Fortran for writing userland applications.

bill

Re: Userland programming languages on VMS.

<j62odeFio4qU2@mid.individual.net>

  copy mid

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

  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: Userland programming languages on VMS.
Date: Thu, 3 Feb 2022 14:23:26 -0500
Lines: 66
Message-ID: <j62odeFio4qU2@mid.individual.net>
References: <ssurv4$nm1$1@dont-email.me>
<1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net>
<stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
<stgocs$pc8$3@dont-email.me> <j629vkFg23kU1@mid.individual.net>
<61fbf844$0$695$14726298@news.sunsite.dk> <j62g9dFh8dqU1@mid.individual.net>
<sth8ul$7p8$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 wdHNvj+Y1CTwNENKkTpYJANwSZsVMcDInVkfVG7pkn18mqlqOy
Cancel-Lock: sha1:66dzO+iOwnF+watE0ssrFqvYRts=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <sth8ul$7p8$2@dont-email.me>
 by: Bill Gunshannon - Thu, 3 Feb 2022 19:23 UTC

On 2/3/22 14:03, Simon Clubley wrote:
> On 2022-02-03, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>> On 2/3/22 10:43, Arne Vajhøj wrote:
>>>
>>> C with its low level direct access no check to prevent users
>>> from shooting themselves in the foot approach does make
>>> sense for some OS kernel stuff and low level RTL stuff.
>>
>> But Simon was talking about userland, not OS kernel stuff.
>>
>
> The RTL stuff is also in userland as well. For example, libc is not
> part of the kernel (at least on the Unix variants I am aware of).
>
>>>
>>> In recent years new languages has arrived that allows for
>>> limiting the unsafe stuff to explicit specified blocks.
>>>
>>> The:
>>>
>>> // your code is checked
>>> unsafe {
>>>     // your code is not checked
>>> }
>>>
>>> approach.
>>>
>>> And I consider it quite likely that approach will take over from C.
>>>
>>> In the next 25-50 years.   :-)
>>
>> I won;t be holding my breath. :-)
>>
>
> Those people need to make sure those languages are not write-only
> languages when doing this. Here is flashing an LED in various programming
> languages and the Rust one is rather interesting.
>
> https://www.raspberrypi.com/news/multilingual-blink-for-raspberry-pi-pico/
>
> The Rust one is doing explicit setup of the clocks and PLLs by calling
> a library whereas the other ones leave it implicitly to the libraries
> they are using, but what you should be looking at is the general "feel"
> of the various languages and especially the Rust one.
>
> I can tell you that my bare metal clock/PLL setup code is way more readable
> than that, even when I am doing the whole thing myself without the help
> of a library. :-)
>
>>>
>>> And most flavors got way better string handling than
>>> C and Fortran.
>>
>> And, how much string handling do you need for the average userland
>> program?
>>
>
> For starters, everytime you do something related to parsing, a lot.
>

And yet, the people working with STVOS didn't seem to have the problems
you are having. I guess because no one told them it was impossible
they just went ahead and did it.

bill

Re: Userland programming languages on VMS.

<61fc2d6d$0$700$14726298@news.sunsite.dk>

  copy mid

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

  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: Thu, 3 Feb 2022 14:30:51 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
Subject: Re: Userland programming languages on VMS.
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ssurv4$nm1$1@dont-email.me>
<1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net>
<stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
<stgocs$pc8$3@dont-email.me> <j629vkFg23kU1@mid.individual.net>
<sth7o6$7p8$1@dont-email.me> <j62o8mFio4qU1@mid.individual.net>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <j62o8mFio4qU1@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 23
Message-ID: <61fc2d6d$0$700$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 614b8072.news.sunsite.dk
X-Trace: 1643916653 news.sunsite.dk 700 arne@vajhoej.dk/68.9.63.232:49934
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Thu, 3 Feb 2022 19:30 UTC

On 2/3/2022 2:20 PM, Bill Gunshannon wrote:
> On 2/3/22 13:43, Simon Clubley wrote:
>> On 2022-02-03, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>>> On 2/3/22 09:21, Simon Clubley wrote:
>>>> Pascal and the Modula variants offer far more than C. Fortran does not
>>>> when it comes to implementing userland tools.
>>>
>>> Same question.  In what way?  I have already shown how Fortran was
>>> used to write an entire userland for the first "POSIX" interface.
>>> 41 primitives and 50 utilities.
>>>
>>
>> In the case of Pascal and the Modula variants, that's easy.
>> Both of those options have strong type-safe and data manipulation
>> attributes and end up producing more robust code in general.
>
> Fortran is just as strongly typed.
No it is not.

There is no argument type check between caller and called
in Fortran.

Arne

Re: Userland programming languages on VMS.

<61fc3184$0$695$14726298@news.sunsite.dk>

  copy mid

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

  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, 3 Feb 2022 14:48:09 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
Subject: Re: Userland programming languages on VMS.
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ssurv4$nm1$1@dont-email.me>
<1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net>
<stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
<stgocs$pc8$3@dont-email.me> <j629vkFg23kU1@mid.individual.net>
<sth7o6$7p8$1@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <sth7o6$7p8$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 10
Message-ID: <61fc3184$0$695$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 614b8072.news.sunsite.dk
X-Trace: 1643917700 news.sunsite.dk 695 arne@vajhoej.dk/68.9.63.232:50766
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Thu, 3 Feb 2022 19:48 UTC

On 2/3/2022 1:43 PM, Simon Clubley wrote:
> BTW, sort-of related to this, does anyone else wish C was a module
> based language ?

I think those that need it use C as is + convention for source code
to achieve the same thing.

Arne

Re: Userland programming languages on VMS.

<61fc32df$0$695$14726298@news.sunsite.dk>

  copy mid

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

  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: Thu, 3 Feb 2022 14:53:59 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
Subject: Re: Userland programming languages on VMS.
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ssurv4$nm1$1@dont-email.me>
<1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net>
<stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
<stgocs$pc8$3@dont-email.me> <j629vkFg23kU1@mid.individual.net>
<61fbf844$0$695$14726298@news.sunsite.dk> <j62g9dFh8dqU1@mid.individual.net>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <j62g9dFh8dqU1@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 34
Message-ID: <61fc32df$0$695$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 614b8072.news.sunsite.dk
X-Trace: 1643918047 news.sunsite.dk 695 arne@vajhoej.dk/68.9.63.232:50917
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Thu, 3 Feb 2022 19:53 UTC

On 2/3/2022 12:04 PM, Bill Gunshannon wrote:
> On 2/3/22 10:43, Arne Vajhøj wrote:
>> On 2/3/2022 10:17 AM, Bill Gunshannon wrote:
>>>> Pascal and the Modula variants offer far more than C. Fortran does not
>>>> when it comes to implementing userland tools.
>>>
>>> Same question.  In what way?  I have already shown how Fortran was
>>> used to write an entire userland for the first "POSIX" interface.
>>> 41 primitives and 50 utilities.
>> They tend to protect the developers feet a bit.
>
> How does one shoot themselves in the foot with Fortran? :-)

Call a subroutine/function with the wrong type of argument.

Use invalid character index.

Use invalid array index.

Have different declaration of same common block.

>> And most flavors got way better string handling than
>> C and Fortran.
>
> And, how much string handling do you need for the average userland
> program?

A lot.

They mess around with arguments, environment variables, filenames,
frequently do text io, occasionally does serious parsing.

Arne

Re: Userland programming languages on VMS.

<61fc3416$0$695$14726298@news.sunsite.dk>

  copy mid

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

  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, 3 Feb 2022 14:59:16 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
Subject: Re: Userland programming languages on VMS.
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ssurv4$nm1$1@dont-email.me>
<1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net>
<stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net>
<stgocs$pc8$3@dont-email.me> <61fbf6ca$0$701$14726298@news.sunsite.dk>
<j62gl8Fh9r0U1@mid.individual.net>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <j62gl8Fh9r0U1@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 67
Message-ID: <61fc3416$0$695$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 614b8072.news.sunsite.dk
X-Trace: 1643918359 news.sunsite.dk 695 arne@vajhoej.dk/68.9.63.232:51051
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Thu, 3 Feb 2022 19:59 UTC

On 2/3/2022 12:11 PM, Bill Gunshannon wrote:
> On 2/3/22 10:37, Arne Vajhøj wrote:
>> On 2/3/2022 9:21 AM, Simon Clubley wrote:
>>> On 2022-02-02, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>>>> On 2/2/22 13:21, Simon Clubley wrote:
>>>>> On 2022-02-01, Paul Hardy <p.g.hardy@btinternet.com> wrote:
>>>>>> Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
>>>>>>>    ?
>>>>>>> Fortran and COBOL are not suitable for writing operating system
>>>>>>> userland tools.
>>>>>>
>>>>>> Not that I would encourage it as an implementation language these
>>>>>> days, but
>>>>>> Fortran has been used as such in the past. I believe the Fortran H
>>>>>> Extended
>>>>>> optimising compiler for the IBM 360/370 was written largely  in
>>>>>> Fortran H
>>>>>> Extended.
>>>>>
>>>>> You are correct about past use. In the context of the discussion,
>>>>> I meant they are not suitable for writing userland tools _today_
>>>>
>>>> Why?  Just because there are other languages doesn't obsolete their
>>>> use for the task.  If that were true we never needed anything after
>>>> C was created.   After all the first Open Source compilers for many
>>>> of the languages in use were just x-to-C translators.  P2C, F2C,
>>>> heck even GNAT was originally just an Ada to C translator.  And some
>>>> are still that way and work just fine. GnuCOBOL for example.
>>>
>>> Because C has turned out to be a better choice than Fortran for
>>> writing userland tools so you would choose C (at a minimum) for
>>> writing such tools today.
>>
>> Maybe it would be more correct to say that C is a less bad
>> choice than Fortran.
>>
>> A key thing in such tools are string handling.
>
> Any shortcomings in string handling in Fortran didn't seem to
> stop it from proving the 41 primitives and 50 utilities in
> STVOS.

There is a big difference between "being able to" and
"being a good choice".

Lines of code required and number of bugs matters.

>> C's with null terminated fixed size char arrays sucks
>> just as much as Fortran fixed length characters.
>
> Believe it or not, some of us still fail to see why null terminated
> strings are such a problem.

Fixed length strings are inflexible to work with and require more code.

Terminated strings are inefficient as the length need to be calculated
instead of just looked up.

Terminated strings are dangerous as the terminator can be missing.

>   Time to stop blaming a feature of the
> language for the incompetence of some programmers.

A good language is a language that gives compiler errors instead
of runtime errors.

Arne

Re: Userland programming languages on VMS.

<00B6FCA6.BA418AF7@SendSpamHere.ORG>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!pr9o9uw/KLhPSFYv2ok3sg.user.46.165.242.75.POSTED!not-for-mail
From: VAXm...@SendSpamHere.ORG
Newsgroups: comp.os.vms
Subject: Re: Userland programming languages on VMS.
Date: Thu, 03 Feb 2022 21:51:18 GMT
Organization: c.2022 Brian Schenkenberger. Prior employers of copyright holder and their agents must first obtain written permission to copy this posting.
Message-ID: <00B6FCA6.BA418AF7@SendSpamHere.ORG>
References: <ssurv4$nm1$1@dont-email.me> <1759596933.665435971.225802.p.g.hardy-btinternet.com@news.individual.net> <stei37$375$1@dont-email.me> <j60b5gF4mv8U1@mid.individual.net> <stgocs$pc8$3@dont-email.me> <61fbf6ca$0$701$14726298@news.sunsite.dk> <j62gl8Fh9r0U1@mid.individual.net> <sth9l2$7p8$4@dont-email.me>
Reply-To: VAXman- @SendSpamHere.ORG
Injection-Info: gioia.aioe.org; logging-data="25934"; posting-host="pr9o9uw/KLhPSFYv2ok3sg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: VAXm...@SendSpamHere.ORG - Thu, 3 Feb 2022 21:51 UTC

In article <sth9l2$7p8$4@dont-email.me>, Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> writes:
>On 2022-02-03, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>> On 2/3/22 10:37, Arne Vajh�j wrote:
>>>
>>> A key thing in such tools are string handling.
>>
>> Any shortcomings in string handling in Fortran didn't seem to
>> stop it from proving the 41 primitives and 50 utilities in
>> STVOS.
>>
>
>You can write a full-blown parser in Macro-32 if you really want to.

I call LIB$T(ABLE_)PARSE. I have a state table in my DCL debugger with over
800 lines to parse escape sequences. That's not counting the action routines.
I couldn't imagine doing it with that strtok() thang.

>It doesn't mean that any sane person would want to do that when there
>are better languages available. :-)

SCAN? :P

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG

I speak to machines with the voice of humanity.


computers / comp.os.vms / Re: Userland programming languages on VMS.

Pages:12345678910
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor