Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Avoid the Gates of Hell. Use Linux -- unknown source


computers / comp.os.vms / Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

SubjectAuthor
* 8-bit charactersPhillip Helbig (undress to reply
`* Re: 8-bit charactersStephen Hoffman
 +* Re: 8-bit charactersJan-Erik Söderholm
 |+- Re: 8-bit charactersStephen Hoffman
 |+* Re: 8-bit charactersArne Vajhøj
 ||`* Re: 8-bit charactersLawrence D’Oliveiro
 || `* Re: 8-bit charactersArne Vajhøj
 ||  +* Re: 8-bit charactersCraig A. Berry
 ||  |+* Re: 8-bit charactersArne Vajhøj
 ||  ||+* Re: 8-bit charactersCraig A. Berry
 ||  |||`- Re: 8-bit charactersLawrence D’Oliveiro
 ||  ||`* Re: 8-bit charactersLawrence D’Oliveiro
 ||  || `- Re: 8-bit charactersLawrence D’Oliveiro
 ||  |`- Re: 8-bit charactersLawrence D’Oliveiro
 ||  `* Re: 8-bit charactersLawrence D’Oliveiro
 ||   `- Re: 8-bit charactersArne Vajhøj
 |`* Re: 8-bit charactersPhillip Helbig (undress to reply
 | `- Re: 8-bit charactersMichael Moroney
 `* Re: 8-bit charactersPhillip Helbig (undress to reply
  `* Re: 8-bit charactersMichael Moroney
   +* Re: 8-bit charactersPhillip Helbig (undress to reply
   |`* Re: 8-bit charactersMichael Moroney
   | `* Re: 8-bit charactersPhillip Helbig (undress to reply
   |  `* Re: 8-bit charactersDave Froble
   |   `* Re: 8-bit charactersMichael Moroney
   |    `* Re: 8-bit charactersArne Vajhøj
   |     `* Re: 8-bit charactersRobert A. Brooks
   |      `* Re: 8-bit charactersSimon Clubley
   |       +* Re: 8-bit charactersRobert A. Brooks
   |       |+- Re: 8-bit charactersMichael Moroney
   |       |`* Re: 8-bit charactersStephen Hoffman
   |       | +- Re: 8-bit charactersArne Vajhøj
   |       | `* Impenetrable code, was: Re: 8-bit charactersSimon Clubley
   |       |  `- Re: Impenetrable code, was: Re: 8-bit charactersDave Froble
   |       `* Re: 8-bit charactersJohn Reagan
   |        +* Trigger warnings, was: Re: 8-bit charactersSimon Clubley
   |        |+* Re: Trigger warnings, was: Re: 8-bit charactersDave Froble
   |        ||`* Re: Trigger warnings, was: Re: 8-bit charactersArne Vajhøj
   |        || +* Re: Trigger warnings, was: Re: 8-bit charactersArne Vajhøj
   |        || |`- Re: Trigger warnings, was: Re: 8-bit charactersNorbert Schönartz
   |        || +* Re: Trigger warnings, was: Re: 8-bit charactersSimon Clubley
   |        || |`- Re: Trigger warnings, was: Re: 8-bit charactersArne Vajhøj
   |        || `* Re: Trigger warnings, was: Re: 8-bit charactersDave Froble
   |        ||  `- Re: Trigger warnings, was: Re: 8-bit charactersArne Vajhøj
   |        |`- Re: Trigger warnings, was: Re: 8-bit charactersJohn Reagan
   |        `* Re: 8-bit charactersDave Froble
   |         `* Safer programming languages (and walking :-) ), was: Re: 8-bit charactersSimon Clubley
   |          +* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitBill Gunshannon
   |          |`* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |          | `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersSimon Clubley
   |          |  `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |          |   +* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitBill Gunshannon
   |          |   |`- Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |          |   `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersSimon Clubley
   |          |    +* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitBill Gunshannon
   |          |    |`* Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersSimon Clubley
   |          |    | `- Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |          |    `- Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |          `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |           `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersSimon Clubley
   |            +* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |`* Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersSimon Clubley
   |            | +* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            | |`* Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersSimon Clubley
   |            | | `- Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            | `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |  `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersSimon Clubley
   |            |   `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |    `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersSimon Clubley
   |            |     +- Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersStephen Hoffman
   |            |     `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitBill Gunshannon
   |            |      `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |       +* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitBill Gunshannon
   |            |       |`* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |       | `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitBill Gunshannon
   |            |       |  +* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |       |  |`* Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersSimon Clubley
   |            |       |  | +* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |       |  | |+* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitJohnny Billquist
   |            |       |  | ||+* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |       |  | |||`- Re: Safer programming languages (and walking :-) ), was: Re: 8-bitJohnny Billquist
   |            |       |  | ||`- Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersJake Hamby
   |            |       |  | |`- Re: Safer programming languages (and walking :-) ), was: Re: 8-bitBob Eager
   |            |       |  | `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersStephen Hoffman
   |            |       |  |  `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersSimon Clubley
   |            |       |  |   `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitJohnny Billquist
   |            |       |  |    `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |       |  |     +- Re: Safer programming languages (and walking :-) ), was: Re: 8-bitRichard Maher
   |            |       |  |     `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitJohnny Billquist
   |            |       |  |      `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |       |  |       `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitJohnny Billquist
   |            |       |  |        `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |       |  |         +* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitJohnny Billquist
   |            |       |  |         |`- Re: Safer programming languages (and walking :-) ), was: Re: 8-bitBill Gunshannon
   |            |       |  |         `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersSimon Clubley
   |            |       |  |          +- Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |       |  |          `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitSingle Stage to Orbit
   |            |       |  |           +* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |       |  |           |+- Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |       |  |           |`* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitSingle Stage to Orbit
   |            |       |  |           | `- Re: Safer programming languages (and walking :-) ), was: Re: 8-bitArne Vajhøj
   |            |       |  |           `- Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersSimon Clubley
   |            |       |  `- Re: Safer programming languages (and walking :-) ), was: Re: 8-bit charactersRich Alderson
   |            |       `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitDave Froble
   |            `* Re: Safer programming languages (and walking :-) ), was: Re: 8-bitBill Gunshannon
   +* Re: 8-bit charactersLawrence D’Oliveiro
   `* Re: 8-bit charactersJon Pinkley

Pages:123456789
Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<jf4osjF1k9aU1@mid.individual.net>

  copy mid

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

  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: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Date: Tue, 24 May 2022 15:10:10 -0400
Lines: 21
Message-ID: <jf4osjF1k9aU1@mid.individual.net>
References: <smg4a2$boh$1@gioia.aioe.org> <smk0u9$i36$1@dont-email.me>
<smmboi$tku$1@dont-email.me>
<0bce8caf-049a-4945-af14-cbc4b01bd5f2n@googlegroups.com>
<smroqk$f6s$1@dont-email.me> <sms17m$5no$1@dont-email.me>
<6191a18e$0$706$14726298@news.sunsite.dk> <smua6t$3hs$3@dont-email.me>
<6192bb11$0$702$14726298@news.sunsite.dk> <sn0uo9$j0$2@dont-email.me>
<t5kaps$p5k$1@gioia.aioe.org> <t5ljio$b1e$2@dont-email.me>
<627f04bb$0$694$14726298@news.sunsite.dk> <t5u3jc$13f$3@dont-email.me>
<jenjdtFgfvhU1@mid.individual.net> <6286d839$0$706$14726298@news.sunsite.dk>
<t66u0b$2t1$1@dont-email.me> <6287868c$0$700$14726298@news.sunsite.dk>
<t687h9$gkf$1@dont-email.me> <t68jm0$e7c$1@dont-email.me>
<t692vb$71s$1@dont-email.me> <t6fv1f$lvh$2@dont-email.me>
<t6gefk$lai$1@dont-email.me> <t6gh98$10j$1@dont-email.me>
<jf28s0Ftod1U1@mid.individual.net>
<9288ffce-2274-4174-b3a9-a3c3d3fd5b09n@googlegroups.com>
<7aa82bb7d4418bd85d657bd4b1d1a961fe1829c6.camel@munted.eu>
<t6j5c9$cad$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 qSxSLum91uF6IGn/Z/0JfQ/G7fWj1dHfuHTvG26tCLxCzheKu2
Cancel-Lock: sha1:MBGapQKsYr71cGL287GRrHSpDyI=
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: <t6j5c9$cad$3@dont-email.me>
 by: Bill Gunshannon - Tue, 24 May 2022 19:10 UTC

On 5/24/22 13:41, Simon Clubley wrote:
> On 2022-05-24, Single Stage to Orbit <alex.buell@munted.eu> wrote:
>> On Tue, 2022-05-24 at 01:07 -0700, Ian Miller wrote:
>>>
>>> I preferred BCPL to BASIC on the BBC Computer.
>>
>> I preferred 6502 assembler to BASIC on the Beeb.
>
> It's been a very long time since I used either, but I was left with
> the memory that I preferred Z80 over 6502, although the details have
> been lost to time...

I never liked 6502. I've worked with at least 10 different
architectures and the only one I liked less than the 6502 was
the Pr1me. Much of it's quirks were fixed when native mode
Unix was developed because it included modification to the
micro-code but then Pr1me Corporate squashed it and life in
the Pr1me world returned to the abyss.

bill

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<jf4tb2Fqmi5U1@mid.individual.net>

  copy mid

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

  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: news0...@eager.cx (Bob Eager)
Newsgroups: comp.os.vms
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Date: 24 May 2022 20:26:10 GMT
Lines: 44
Message-ID: <jf4tb2Fqmi5U1@mid.individual.net>
References: <smg4a2$boh$1@gioia.aioe.org> <smk0u9$i36$1@dont-email.me>
<smmboi$tku$1@dont-email.me>
<0bce8caf-049a-4945-af14-cbc4b01bd5f2n@googlegroups.com>
<smroqk$f6s$1@dont-email.me> <sms17m$5no$1@dont-email.me>
<6191a18e$0$706$14726298@news.sunsite.dk> <smua6t$3hs$3@dont-email.me>
<6192bb11$0$702$14726298@news.sunsite.dk> <sn0uo9$j0$2@dont-email.me>
<t5kaps$p5k$1@gioia.aioe.org> <t5ljio$b1e$2@dont-email.me>
<627f04bb$0$694$14726298@news.sunsite.dk> <t5u3jc$13f$3@dont-email.me>
<jenjdtFgfvhU1@mid.individual.net> <6286d839$0$706$14726298@news.sunsite.dk>
<t66u0b$2t1$1@dont-email.me> <6287868c$0$700$14726298@news.sunsite.dk>
<t687h9$gkf$1@dont-email.me> <t68jm0$e7c$1@dont-email.me>
<t692vb$71s$1@dont-email.me> <t6fv1f$lvh$2@dont-email.me>
<t6gefk$lai$1@dont-email.me> <t6gh98$10j$1@dont-email.me>
<jf28s0Ftod1U1@mid.individual.net>
<9288ffce-2274-4174-b3a9-a3c3d3fd5b09n@googlegroups.com>
<7aa82bb7d4418bd85d657bd4b1d1a961fe1829c6.camel@munted.eu>
<t6inkk$nf2$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net +foOBndSJVwYCuHYwyYMVAw7OhymuGNjepgrIsA5Vh+U5dleZf
Cancel-Lock: sha1:1YfJa1mBuAD32SFptMufo7F87x0=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Tue, 24 May 2022 20:26 UTC

On Tue, 24 May 2022 14:47:00 +0100, chris wrote:

> On 05/24/22 11:17, Single Stage to Orbit wrote:
>> On Tue, 2022-05-24 at 01:07 -0700, Ian Miller wrote:
>>> On Monday, May 23, 2022 at 9:24:36 PM UTC+1, Bob Eager wrote:
>>>> On Mon, 23 May 2022 17:46:16 +0000, Simon Clubley wrote:
>>>>
>>>>> On 2022-05-23, Dave Froble<da...@tsoft-inc.com> wrote:
>>>>>>
>>>>>> What safety is there in programming when you remove the need for a
>>>>>> programmer to exercise due diligence and careful practices?
>>>>>>
>>>>>>
>>>>> With that attitude David, you should switch to using C... :-)
>>>> C is for wimps. Try BCPL.
>>>> --
>>>> My posts are my copyright and if @diy_forums or Home Owners' Hub wish
>>>> to copy them they can pay me £1 a message.
>>>> Use the BIG mirror service in the UK: http://www.mirrorservice.org
>>>> *lightning surge protection* - a w_tom conductor
>>>
>>> I preferred BCPL to BASIC on the BBC Computer.
>>
>> I preferred 6502 assembler to BASIC on the Beeb.
>
> I preferred 6502 asm and macro 11 to anything else I had access to at
> time.
>
> The rest of you all were lucky :-)...

I have lost count of the number of assembly languages I have used. But
they included some DEC ones: PAL-8, Macro-11, Macro-32, Macro-10...as
well as 6502, which is probably the lowest level (ah, but there was
8080...).

And some obscure ones - not many have used SFL and the MAPLE assembler.

--
My posts are my copyright and if @diy_forums or Home Owners' Hub
wish to copy them they can pay me £1 a message.
Use the BIG mirror service in the UK: http://www.mirrorservice.org
*lightning surge protection* - a w_tom conductor

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<d8ed3328-5231-44f9-af1f-696f2110276dn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:28c7:b0:6a0:5de3:e6 with SMTP id l7-20020a05620a28c700b006a05de300e6mr18858802qkp.464.1653425378064;
Tue, 24 May 2022 13:49:38 -0700 (PDT)
X-Received: by 2002:a05:6214:768:b0:462:1f65:8c5c with SMTP id
f8-20020a056214076800b004621f658c5cmr14318817qvz.32.1653425377878; Tue, 24
May 2022 13:49:37 -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: Tue, 24 May 2022 13:49:37 -0700 (PDT)
In-Reply-To: <jf4osjF1k9aU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:1406:e943:7011:53b2;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:1406:e943:7011:53b2
References: <smg4a2$boh$1@gioia.aioe.org> <smk0u9$i36$1@dont-email.me>
<smmboi$tku$1@dont-email.me> <0bce8caf-049a-4945-af14-cbc4b01bd5f2n@googlegroups.com>
<smroqk$f6s$1@dont-email.me> <sms17m$5no$1@dont-email.me> <6191a18e$0$706$14726298@news.sunsite.dk>
<smua6t$3hs$3@dont-email.me> <6192bb11$0$702$14726298@news.sunsite.dk>
<sn0uo9$j0$2@dont-email.me> <t5kaps$p5k$1@gioia.aioe.org> <t5ljio$b1e$2@dont-email.me>
<627f04bb$0$694$14726298@news.sunsite.dk> <t5u3jc$13f$3@dont-email.me>
<jenjdtFgfvhU1@mid.individual.net> <6286d839$0$706$14726298@news.sunsite.dk>
<t66u0b$2t1$1@dont-email.me> <6287868c$0$700$14726298@news.sunsite.dk>
<t687h9$gkf$1@dont-email.me> <t68jm0$e7c$1@dont-email.me> <t692vb$71s$1@dont-email.me>
<t6fv1f$lvh$2@dont-email.me> <t6gefk$lai$1@dont-email.me> <t6gh98$10j$1@dont-email.me>
<jf28s0Ftod1U1@mid.individual.net> <9288ffce-2274-4174-b3a9-a3c3d3fd5b09n@googlegroups.com>
<7aa82bb7d4418bd85d657bd4b1d1a961fe1829c6.camel@munted.eu>
<t6j5c9$cad$3@dont-email.me> <jf4osjF1k9aU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d8ed3328-5231-44f9-af1f-696f2110276dn@googlegroups.com>
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters
From: gah...@u.washington.edu (gah4)
Injection-Date: Tue, 24 May 2022 20:49:38 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3124
 by: gah4 - Tue, 24 May 2022 20:49 UTC

On Tuesday, May 24, 2022 at 12:10:14 PM UTC-7, Bill Gunshannon wrote:

(snip)

> I never liked 6502. I've worked with at least 10 different
> architectures and the only one I liked less than the 6502 was
> the Pr1me. Much of it's quirks were fixed when native mode
> Unix was developed because it included modification to the
> micro-code but then Pr1me Corporate squashed it and life in
> the Pr1me world returned to the abyss.

The 6502 was designed for embedded processing, and some people
who do that seem to like it more than others.

The 8 bit stack pointer and 8 bit index registers, compared to the 16
bit versions in the 6800 can be less convenient for non-embedded use.

The initial price was much less than the 6800, but very quickly the
price of the 6800 came down. The extra work to use the 8 bit
stack pointer and index registers would cost much more in
throughput of programmers than the price difference.

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<0ac21a67-de81-4080-a5cd-6668513ed756n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:622a:92:b0:2f3:ca38:e846 with SMTP id o18-20020a05622a009200b002f3ca38e846mr21822540qtw.94.1653425686437;
Tue, 24 May 2022 13:54:46 -0700 (PDT)
X-Received: by 2002:a05:620a:1902:b0:5f1:8f5d:b0f2 with SMTP id
bj2-20020a05620a190200b005f18f5db0f2mr18856860qkb.60.1653425686288; Tue, 24
May 2022 13:54:46 -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: Tue, 24 May 2022 13:54:46 -0700 (PDT)
In-Reply-To: <t6j88d$1136$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:1406:e943:7011:53b2;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:1406:e943:7011:53b2
References: <smg4a2$boh$1@gioia.aioe.org> <smk0u9$i36$1@dont-email.me>
<smmboi$tku$1@dont-email.me> <0bce8caf-049a-4945-af14-cbc4b01bd5f2n@googlegroups.com>
<smroqk$f6s$1@dont-email.me> <sms17m$5no$1@dont-email.me> <6191a18e$0$706$14726298@news.sunsite.dk>
<smua6t$3hs$3@dont-email.me> <6192bb11$0$702$14726298@news.sunsite.dk>
<sn0uo9$j0$2@dont-email.me> <t5kaps$p5k$1@gioia.aioe.org> <t5ljio$b1e$2@dont-email.me>
<627f04bb$0$694$14726298@news.sunsite.dk> <t5u3jc$13f$3@dont-email.me>
<jenjdtFgfvhU1@mid.individual.net> <6286d839$0$706$14726298@news.sunsite.dk>
<t66u0b$2t1$1@dont-email.me> <6287868c$0$700$14726298@news.sunsite.dk>
<t687h9$gkf$1@dont-email.me> <t68jm0$e7c$1@dont-email.me> <t692vb$71s$1@dont-email.me>
<t6fv1f$lvh$2@dont-email.me> <t6gefk$lai$1@dont-email.me> <t6gh98$10j$1@dont-email.me>
<jf28s0Ftod1U1@mid.individual.net> <9288ffce-2274-4174-b3a9-a3c3d3fd5b09n@googlegroups.com>
<7aa82bb7d4418bd85d657bd4b1d1a961fe1829c6.camel@munted.eu>
<t6j5c9$cad$3@dont-email.me> <t6j88d$1136$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0ac21a67-de81-4080-a5cd-6668513ed756n@googlegroups.com>
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters
From: gah...@u.washington.edu (gah4)
Injection-Date: Tue, 24 May 2022 20:54:46 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3152
 by: gah4 - Tue, 24 May 2022 20:54 UTC

On Tuesday, May 24, 2022 at 11:30:40 AM UTC-7, chris wrote:

(snip)

> What made the 6502 a bit special was the variety of addressing modes,
> which included pre and post indexed addressing. Very useful for
> traversing lists and trees. That and instruction mnemonics
> borrowed from pdp11, even if the architecture was a single 8 bit
> accumulator + 2 index registers. Not even close to the PDP11 of
> the time, but probably the best they could do with the process
> technology of the day..

The 6502 came after the 6800 and 8080, but with 16 bit
index registers and stack pointers.

For embedded programming, the design goal of the 6502
(and probably the 8080 and 6800), such 8 bit registers are
probably fine, as data structures will be smaller.

But for general programming, like on microcomputers
sold for use as computers, that is very inconvenient.

In many case, the only workaround is self-modifying code,
which is inconvenient for everyone.

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<t6jgnf$b06$1@dont-email.me>

  copy mid

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

  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: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Date: Tue, 24 May 2022 16:54:46 -0400
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <t6jgnf$b06$1@dont-email.me>
References: <smg4a2$boh$1@gioia.aioe.org> <smjnmi$vng$1@gioia.aioe.org>
<smjo3a$e2a$1@dont-email.me> <smk04g$19rt$1@gioia.aioe.org>
<618d84c9$0$692$14726298@news.sunsite.dk> <smk0u9$i36$1@dont-email.me>
<smmboi$tku$1@dont-email.me>
<0bce8caf-049a-4945-af14-cbc4b01bd5f2n@googlegroups.com>
<smroqk$f6s$1@dont-email.me> <sms17m$5no$1@dont-email.me>
<6191a18e$0$706$14726298@news.sunsite.dk> <smua6t$3hs$3@dont-email.me>
<6192bb11$0$702$14726298@news.sunsite.dk> <sn0uo9$j0$2@dont-email.me>
<t5kaps$p5k$1@gioia.aioe.org> <t5ljio$b1e$2@dont-email.me>
<627f04bb$0$694$14726298@news.sunsite.dk> <t5u3jc$13f$3@dont-email.me>
<jenjdtFgfvhU1@mid.individual.net> <6286d839$0$706$14726298@news.sunsite.dk>
<t66u0b$2t1$1@dont-email.me> <6287868c$0$700$14726298@news.sunsite.dk>
<t687h9$gkf$1@dont-email.me> <t68jm0$e7c$1@dont-email.me>
<t692vb$71s$1@dont-email.me> <t6fv1f$lvh$2@dont-email.me>
<t6gefk$lai$1@dont-email.me> <t6gh98$10j$1@dont-email.me>
<t6gnrn$t6$1@dont-email.me> <t6j4qe$cad$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 24 May 2022 20:55:11 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="7c459d4477ec865c5ac5d2f28ceed76e";
logging-data="11270"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/O9HZNMOaAQDcUT9NvdHRcmgczpW94FuA="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:5wgikOb28FwnmBeoVoKnfasG+8w=
In-Reply-To: <t6j4qe$cad$1@dont-email.me>
 by: Dave Froble - Tue, 24 May 2022 20:54 UTC

On 5/24/2022 1:31 PM, Simon Clubley wrote:
> On 2022-05-23, Dave Froble <davef@tsoft-inc.com> wrote:
>> On 5/23/2022 1:46 PM, Simon Clubley wrote:
>>> On 2022-05-23, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>
>>>> What safety is there in programming when you remove the need for a programmer to
>>>> exercise due diligence and careful practices?
>>>>
>>>
>>> With that attitude David, you should switch to using C... :-)
>>>
>>
>> What attitude is that?
>>
>
> Some C programmers say that there's nothing wrong with C and that it's
> your fault if you are not careful enough when writing C code.
>
> I am not one of them because, for me, I continue to use C because it's
> the most viable language for some tasks, not because it is the best
> language for those tasks.
>
>> Think I'll stick to Basic. Does what I need. Has strings built in.
>>
>
> It protects you better than C at the expense of not been able to do
> everything C does but there are also other languages that help protect
> you while still allowing you to do the things that C lets you do.

Ok, gauntlet thrown down, and picked up.

Leaving out the specifics of the implementation of DEC Basic, which include not
thread safe, and other things, I would like to know just what C can do that
Basic can not do.

I will admit that some nice things such as safe for kernel code, threads, and
such are not available with the implementation. But what if the exact same
language was implemented with a new compiler that would produce thread safe and
kernel safe code was implemented? Then what could C do that Basic could not do?

--
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: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<mddh75ea7fo.fsf@panix5.panix.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!not-for-mail
From: new...@alderson.users.panix.com (Rich Alderson)
Newsgroups: comp.os.vms
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters
Date: 24 May 2022 18:31:55 -0400
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 20
Sender: alderson+news@panix5.panix.com
Message-ID: <mddh75ea7fo.fsf@panix5.panix.com>
References: <smg4a2$boh$1@gioia.aioe.org> <t6gh98$10j$1@dont-email.me> <jf28s0Ftod1U1@mid.individual.net> <jf2fqfFiphjU1@mid.individual.net> <t6iksp$bfh$1@reader1.panix.com> <jf45m0Fsh5eU1@mid.individual.net>
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="26378"; mail-complaints-to="abuse@panix.com"
X-Newsreader: Gnus v5.7/Emacs 22.3
 by: Rich Alderson - Tue, 24 May 2022 22:31 UTC

Bill Gunshannon <bill.gunshannon@gmail.com> writes:

> On 5/24/22 09:00, Dan Cross wrote:

>> Anything other than machine code in octal is for pikers.

> Learned to do that on the IBM 1401 when I learned Autocoder. Efficiency was
> important in those days and the output from the Autocoder translator had way
> too much fluff. Used to be fun to Compile a utility program written in
> Autocoder, look at the output card deck and then reduce it to one or two
> cards max.

The 1401 was my first computer, and I don't recall using octal. It was a BCD
computer, and we learned the character codes for that kind of hacking...

--
Rich Alderson news@alderson.users.panix.com
Audendum est, et veritas investiganda; quam etiamsi non assequamur,
omnino tamen proprius, quam nunc sumus, ad eam perveniemus.
--Galen

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<t6jn2v$13tn$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!jazQyxryRFiI4FEZ51SAvA.user.46.165.242.75.POSTED!not-for-mail
From: chris-no...@tridac.net (chris)
Newsgroups: comp.os.vms
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Date: Tue, 24 May 2022 23:43:43 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t6jn2v$13tn$1@gioia.aioe.org>
References: <smg4a2$boh$1@gioia.aioe.org> <smroqk$f6s$1@dont-email.me> <sms17m$5no$1@dont-email.me> <6191a18e$0$706$14726298@news.sunsite.dk> <smua6t$3hs$3@dont-email.me> <6192bb11$0$702$14726298@news.sunsite.dk> <sn0uo9$j0$2@dont-email.me> <t5kaps$p5k$1@gioia.aioe.org> <t5ljio$b1e$2@dont-email.me> <627f04bb$0$694$14726298@news.sunsite.dk> <t5u3jc$13f$3@dont-email.me> <jenjdtFgfvhU1@mid.individual.net> <6286d839$0$706$14726298@news.sunsite.dk> <t66u0b$2t1$1@dont-email.me> <6287868c$0$700$14726298@news.sunsite.dk> <t687h9$gkf$1@dont-email.me> <t68jm0$e7c$1@dont-email.me> <t692vb$71s$1@dont-email.me> <t6fv1f$lvh$2@dont-email.me> <t6gefk$lai$1@dont-email.me> <t6gh98$10j$1@dont-email.me> <jf28s0Ftod1U1@mid.individual.net> <9288ffce-2274-4174-b3a9-a3c3d3fd5b09n@googlegroups.com> <7aa82bb7d4418bd85d657bd4b1d1a961fe1829c6.camel@munted.eu> <t6j5c9$cad$3@dont-email.me> <t6j88d$1136$1@gioia.aioe.org> <0ac21a67-de81-4080-a5cd-6668513ed756n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="36791"; posting-host="jazQyxryRFiI4FEZ51SAvA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; SunOS sun4u; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
X-Notice: Filtered by postfilter v. 0.9.2
 by: chris - Tue, 24 May 2022 22:43 UTC

On 05/24/22 21:54, gah4 wrote:
> On Tuesday, May 24, 2022 at 11:30:40 AM UTC-7, chris wrote:
>
> (snip)
>
>> What made the 6502 a bit special was the variety of addressing modes,
>> which included pre and post indexed addressing. Very useful for
>> traversing lists and trees. That and instruction mnemonics
>> borrowed from pdp11, even if the architecture was a single 8 bit
>> accumulator + 2 index registers. Not even close to the PDP11 of
>> the time, but probably the best they could do with the process
>> technology of the day..
>
> The 6502 came after the 6800 and 8080, but with 16 bit
> index registers and stack pointers.

Having spent several years programming 6502 for embedded
systems, I can confirm that all the registers on the 6502
were eight bit. Hence the reason for the indirect addressing
modes, which allowed 16 bit pointers in page zero to
access the whole 64K address space. The design goal of 6502
was to get the most mini like functionality into the
smallest chip area, which they succeeded in doing quite well.

Iirc, the 6800 had a single 16 bit index register and the
dual 8 bit accumulators could be concatenated for certain
16 bit operations. Slower than the 6502, but still a very
significant processor family for its time. Still have a
6800 application manual from 1975 somewhere, complete with
asm sources and hardware design for a bar code reader, among
other things.

>
> For embedded programming, the design goal of the 6502
> (and probably the 8080 and 6800), such 8 bit registers are
> probably fine, as data structures will be smaller.
>
> But for general programming, like on microcomputers
> sold for use as computers, that is very inconvenient.
>

Well, many companies, including Apple got started in home
and business computing with the 6502, while Z80 / 8080
enthusiasts started the cpm80 revolution, which led to
the foirst IBM PC with the Intel 8088.

>
> In many case, the only workaround is self-modifying code,
> which is inconvenient for everyone.
>

IME, no one I worked with ever used self modifying code
on the 6502. That's more like PDP8 era stuff...

>
>

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<jf56loF43khU1@mid.individual.net>

  copy mid

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

  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: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Date: Tue, 24 May 2022 19:05:28 -0400
Lines: 23
Message-ID: <jf56loF43khU1@mid.individual.net>
References: <smg4a2$boh$1@gioia.aioe.org> <t6gh98$10j$1@dont-email.me>
<jf28s0Ftod1U1@mid.individual.net> <jf2fqfFiphjU1@mid.individual.net>
<t6iksp$bfh$1@reader1.panix.com> <jf45m0Fsh5eU1@mid.individual.net>
<mddh75ea7fo.fsf@panix5.panix.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 1qjkk1dEz79dg5i3YyTKlg1GAxjt++eMerSFuWf7cK0hKj+m9b
Cancel-Lock: sha1:YYi+/ySQiMQdFfD04IdFTgeVQQg=
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: <mddh75ea7fo.fsf@panix5.panix.com>
 by: Bill Gunshannon - Tue, 24 May 2022 23:05 UTC

On 5/24/22 18:31, Rich Alderson wrote:
> Bill Gunshannon <bill.gunshannon@gmail.com> writes:
>
>> On 5/24/22 09:00, Dan Cross wrote:
>
>>> Anything other than machine code in octal is for pikers.
>
>> Learned to do that on the IBM 1401 when I learned Autocoder. Efficiency was
>> important in those days and the output from the Autocoder translator had way
>> too much fluff. Used to be fun to Compile a utility program written in
>> Autocoder, look at the output card deck and then reduce it to one or two
>> cards max.
>
> The 1401 was my first computer, and I don't recall using octal. It was a BCD
> computer, and we learned the character codes for that kind of hacking...
>

Not octal, just machine code. I didn't get octal till the PDP-11
and I do like it. I can do octal math in my head as well as I can
do decimal math.

bill

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<c9ebf2b9-a97c-44ad-80d5-f4e5605eea96n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:1bc7:b0:45b:85e:e5a4 with SMTP id m7-20020a0562141bc700b0045b085ee5a4mr23353909qvc.57.1653434899240;
Tue, 24 May 2022 16:28:19 -0700 (PDT)
X-Received: by 2002:ac8:5dcc:0:b0:2f3:d8d2:7cf with SMTP id
e12-20020ac85dcc000000b002f3d8d207cfmr22599253qtx.464.1653434899078; Tue, 24
May 2022 16:28:19 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Tue, 24 May 2022 16:28:18 -0700 (PDT)
In-Reply-To: <mddh75ea7fo.fsf@panix5.panix.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:1406:e943:7011:53b2;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:1406:e943:7011:53b2
References: <smg4a2$boh$1@gioia.aioe.org> <t6gh98$10j$1@dont-email.me>
<jf28s0Ftod1U1@mid.individual.net> <jf2fqfFiphjU1@mid.individual.net>
<t6iksp$bfh$1@reader1.panix.com> <jf45m0Fsh5eU1@mid.individual.net> <mddh75ea7fo.fsf@panix5.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c9ebf2b9-a97c-44ad-80d5-f4e5605eea96n@googlegroups.com>
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters
From: gah...@u.washington.edu (gah4)
Injection-Date: Tue, 24 May 2022 23:28:19 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1840
 by: gah4 - Tue, 24 May 2022 23:28 UTC

On Tuesday, May 24, 2022 at 3:31:58 PM UTC-7, Rich Alderson wrote:

(snip)

> The 1401 was my first computer, and I don't recall using octal. It was a BCD
> computer, and we learned the character codes for that kind of hacking...

Looking at:

https://en.wikipedia.org/wiki/IBM_1401#Character_and_op_codes

it seems both are right.

Arithmetic and addressing is BCD. Characters and opcodes use all
six bits (BA8421) and could be represented in octal.

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<t6jqec$6hp$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!jazQyxryRFiI4FEZ51SAvA.user.46.165.242.75.POSTED!not-for-mail
From: chris-no...@tridac.net (chris)
Newsgroups: comp.os.vms
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Date: Wed, 25 May 2022 00:41:00 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t6jqec$6hp$1@gioia.aioe.org>
References: <smg4a2$boh$1@gioia.aioe.org> <smjo3a$e2a$1@dont-email.me> <smk04g$19rt$1@gioia.aioe.org> <618d84c9$0$692$14726298@news.sunsite.dk> <smk0u9$i36$1@dont-email.me> <smmboi$tku$1@dont-email.me> <0bce8caf-049a-4945-af14-cbc4b01bd5f2n@googlegroups.com> <smroqk$f6s$1@dont-email.me> <sms17m$5no$1@dont-email.me> <6191a18e$0$706$14726298@news.sunsite.dk> <smua6t$3hs$3@dont-email.me> <6192bb11$0$702$14726298@news.sunsite.dk> <sn0uo9$j0$2@dont-email.me> <t5kaps$p5k$1@gioia.aioe.org> <t5ljio$b1e$2@dont-email.me> <627f04bb$0$694$14726298@news.sunsite.dk> <t5u3jc$13f$3@dont-email.me> <jenjdtFgfvhU1@mid.individual.net> <6286d839$0$706$14726298@news.sunsite.dk> <t66u0b$2t1$1@dont-email.me> <6287868c$0$700$14726298@news.sunsite.dk> <t687h9$gkf$1@dont-email.me> <t68jm0$e7c$1@dont-email.me> <t692vb$71s$1@dont-email.me> <t6fv1f$lvh$2@dont-email.me> <t6gefk$lai$1@dont-email.me> <t6gh98$10j$1@dont-email.me> <t6gnrn$t6$1@dont-email.me> <t6j4qe$cad$1@dont-email.me> <t6jgnf$b06$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="6713"; posting-host="jazQyxryRFiI4FEZ51SAvA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; SunOS sun4u; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
X-Notice: Filtered by postfilter v. 0.9.2
 by: chris - Tue, 24 May 2022 23:41 UTC

On 05/24/22 21:54, Dave Froble wrote:
> On 5/24/2022 1:31 PM, Simon Clubley wrote:
>> On 2022-05-23, Dave Froble <davef@tsoft-inc.com> wrote:
>>> On 5/23/2022 1:46 PM, Simon Clubley wrote:
>>>> On 2022-05-23, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>>
>>>>> What safety is there in programming when you remove the need for a
>>>>> programmer to
>>>>> exercise due diligence and careful practices?
>>>>>
>>>>
>>>> With that attitude David, you should switch to using C... :-)
>>>>
>>>
>>> What attitude is that?
>>>
>>
>> Some C programmers say that there's nothing wrong with C and that it's
>> your fault if you are not careful enough when writing C code.
>>
>> I am not one of them because, for me, I continue to use C because it's
>> the most viable language for some tasks, not because it is the best
>> language for those tasks.
>>
>>> Think I'll stick to Basic. Does what I need. Has strings built in.
>>>
>>
>> It protects you better than C at the expense of not been able to do
>> everything C does but there are also other languages that help protect
>> you while still allowing you to do the things that C lets you do.
>
> Ok, gauntlet thrown down, and picked up.
>
> Leaving out the specifics of the implementation of DEC Basic, which
> include not thread safe, and other things, I would like to know just
> what C can do that Basic can not do.

If I can answer here, nothing in extremis, but is about ease of use.
Its years since I did any basic, but the only way to access memory
or io devices at the time was via peeks and pokes, which
makes it less than optimum for the sort for low level, bare metal
systems programming. I'm sure it could be done in basic, but it
would be hard work. C, in comparison is about as low level as
you like, but also has enough fundamental capability to write very
complex systems, built up in layers, with defined interfaces at
each level. The core of C centers around the concept of
indirection through pointers and structures, that allow a high
degree of abstraction and data hiding, for experienced practitioners.

It may not be ideal for all application level systems, but nothing
gets close in efficiency and productivity terms for low level and
intermediate level work. Its also pretty straightforward to learn
the basics and the often mentioned difficulties with pointers should
be a natural to anyone experienced in assembler programming...

Chris

>
> I will admit that some nice things such as safe for kernel code,
> threads, and such are not available with the implementation. But what if
> the exact same language was implemented with a new compiler that would
> produce thread safe and kernel safe code was implemented? Then what
> could C do that Basic could not do?
>

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<628d7086$0$693$14726298@news.sunsite.dk>

  copy mid

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

  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: Tue, 24 May 2022 19:55:49 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Content-Language: en-US
Newsgroups: comp.os.vms
References: <jenjdtFgfvhU1@mid.individual.net>
<6286d839$0$706$14726298@news.sunsite.dk> <jeo7pvFk767U1@mid.individual.net>
<6286f395$0$701$14726298@news.sunsite.dk> <jepghgFric3U1@mid.individual.net>
<6287bc1f$0$700$14726298@news.sunsite.dk> <t68k2i$e7c$2@dont-email.me>
<t6904k$jpl$1@dont-email.me> <t6fung$lvh$1@dont-email.me>
<t6j35e$h8d$2@news.misty.com>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <t6j35e$h8d$2@news.misty.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 44
Message-ID: <628d7086$0$693$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: fd4617ba.news.sunsite.dk
X-Trace: 1653436550 news.sunsite.dk 693 arne@vajhoej.dk/68.9.63.232:51461
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Tue, 24 May 2022 23:55 UTC

On 5/24/2022 1:03 PM, Johnny Billquist wrote:
> On 2022-05-23 14:29, Simon Clubley wrote:
>> On 2022-05-20, Stephen Hoffman <seaohveh@hoffmanlabs.invalid> wrote:
>>> On 2022-05-20 17:44:50 +0000, Simon Clubley said:
>>>>
>>>> These days, I avoid this problem in my C code by using the
>>>> uint[8/16/32]_t (and friends) data types.
>>>>
>>>
>>> Same here, where I need to care that much about the integer types.
>>>
>>
>> Person who likes Ada here, remember ? :-)
>>
>> I always care about my types... :-)
>
> In a sense, this is something Ada really got right. You don't declare
> how many bits, signedness and so on you want. You declare your integers
> with the range you need them to have, and let the language/compiler
> figure out how to represent and store them.

Ada and the rest of that "language family" including Pascal and Modula-2.

> And two "integer" types with different ranges are not the same type, or
> even closely related, and you cannot just assign from one type to another.

That applies for Ada type. Not for Ada subtype and Pascal.

But yes - it is a really really strong feature in Ada. True strict
type check.

> However, if you want to interface with hardware, it becomes a little
> messy, since then you do want to specify things in number of bits and
> bytes. Since that's what the hardware have.

It can also be a problem if the code make certain assumptions about
when integer overflow happens.

Sure that would be ugly code. But ugly code has been seen in
real life.

Arne

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<628d71a4$0$694$14726298@news.sunsite.dk>

  copy mid

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

  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: Tue, 24 May 2022 20:00: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.1
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Content-Language: en-US
Newsgroups: comp.os.vms
References: <smg4a2$boh$1@gioia.aioe.org> <smjo3a$e2a$1@dont-email.me>
<smk04g$19rt$1@gioia.aioe.org> <618d84c9$0$692$14726298@news.sunsite.dk>
<smk0u9$i36$1@dont-email.me> <smmboi$tku$1@dont-email.me>
<0bce8caf-049a-4945-af14-cbc4b01bd5f2n@googlegroups.com>
<smroqk$f6s$1@dont-email.me> <sms17m$5no$1@dont-email.me>
<6191a18e$0$706$14726298@news.sunsite.dk> <smua6t$3hs$3@dont-email.me>
<6192bb11$0$702$14726298@news.sunsite.dk> <sn0uo9$j0$2@dont-email.me>
<t5kaps$p5k$1@gioia.aioe.org> <t5ljio$b1e$2@dont-email.me>
<627f04bb$0$694$14726298@news.sunsite.dk> <t5u3jc$13f$3@dont-email.me>
<jenjdtFgfvhU1@mid.individual.net> <6286d839$0$706$14726298@news.sunsite.dk>
<t66u0b$2t1$1@dont-email.me> <6287868c$0$700$14726298@news.sunsite.dk>
<t687h9$gkf$1@dont-email.me> <t68jm0$e7c$1@dont-email.me>
<t692vb$71s$1@dont-email.me> <t6fv1f$lvh$2@dont-email.me>
<t6gefk$lai$1@dont-email.me> <t6gh98$10j$1@dont-email.me>
<t6gnrn$t6$1@dont-email.me> <t6j4qe$cad$1@dont-email.me>
<t6jgnf$b06$1@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <t6jgnf$b06$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 38
Message-ID: <628d71a4$0$694$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 388a96aa.news.sunsite.dk
X-Trace: 1653436837 news.sunsite.dk 694 arne@vajhoej.dk/68.9.63.232:51593
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 25 May 2022 00:00 UTC

On 5/24/2022 4:54 PM, Dave Froble wrote:
> On 5/24/2022 1:31 PM, Simon Clubley wrote:
>> On 2022-05-23, Dave Froble <davef@tsoft-inc.com> wrote:
>>> Think I'll stick to Basic.  Does what I need.  Has strings built in.
>>
>> It protects you better than C at the expense of not been able to do
>> everything C does but there are also other languages that help protect
>> you while still allowing you to do the things that C lets you do.
>
> Ok, gauntlet thrown down, and picked up.
>
> Leaving out the specifics of the implementation of DEC Basic, which
> include not thread safe, and other things, I would like to know just
> what C can do that Basic can not do.
>
> I will admit that some nice things such as safe for kernel code,
> threads, and such are not available with the implementation.  But what
> if the exact same language was implemented with a new compiler that
> would produce thread safe and kernel safe code was implemented?  Then
> what could C do that Basic could not do?

Probably nothing.

But no such Basic compiler exist.

Which makes it a very theoretical discussion.

Most likely anything could be written in any language
in theory.

Some things may be a bit extra work, but ...

Decisions about what language to use has to be be made
based on what compilers are actually available.

Arne

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<628d72a3$0$694$14726298@news.sunsite.dk>

  copy mid

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

  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: Tue, 24 May 2022 20:04:45 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Content-Language: en-US
Newsgroups: comp.os.vms
References: <smg4a2$boh$1@gioia.aioe.org> <smjo3a$e2a$1@dont-email.me>
<smk04g$19rt$1@gioia.aioe.org> <618d84c9$0$692$14726298@news.sunsite.dk>
<smk0u9$i36$1@dont-email.me> <smmboi$tku$1@dont-email.me>
<0bce8caf-049a-4945-af14-cbc4b01bd5f2n@googlegroups.com>
<smroqk$f6s$1@dont-email.me> <sms17m$5no$1@dont-email.me>
<6191a18e$0$706$14726298@news.sunsite.dk> <smua6t$3hs$3@dont-email.me>
<6192bb11$0$702$14726298@news.sunsite.dk> <sn0uo9$j0$2@dont-email.me>
<t5kaps$p5k$1@gioia.aioe.org> <t5ljio$b1e$2@dont-email.me>
<627f04bb$0$694$14726298@news.sunsite.dk> <t5u3jc$13f$3@dont-email.me>
<jenjdtFgfvhU1@mid.individual.net> <6286d839$0$706$14726298@news.sunsite.dk>
<t66u0b$2t1$1@dont-email.me> <6287868c$0$700$14726298@news.sunsite.dk>
<t687h9$gkf$1@dont-email.me> <t68jm0$e7c$1@dont-email.me>
<t692vb$71s$1@dont-email.me> <t6fv1f$lvh$2@dont-email.me>
<t6gefk$lai$1@dont-email.me> <t6gh98$10j$1@dont-email.me>
<t6gnrn$t6$1@dont-email.me> <t6j4qe$cad$1@dont-email.me>
<t6jgnf$b06$1@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <t6jgnf$b06$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 39
Message-ID: <628d72a3$0$694$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 388a96aa.news.sunsite.dk
X-Trace: 1653437091 news.sunsite.dk 694 arne@vajhoej.dk/68.9.63.232:51701
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 25 May 2022 00:04 UTC

On 5/24/2022 4:54 PM, Dave Froble wrote:
> On 5/24/2022 1:31 PM, Simon Clubley wrote:
>> On 2022-05-23, Dave Froble <davef@tsoft-inc.com> wrote:
>>> Think I'll stick to Basic.  Does what I need.  Has strings built in.
>>>
>>
>> It protects you better than C at the expense of not been able to do
>> everything C does but there are also other languages that help protect
>> you while still allowing you to do the things that C lets you do.
>
> Ok, gauntlet thrown down, and picked up.
>
> Leaving out the specifics of the implementation of DEC Basic, which
> include not thread safe, and other things, I would like to know just
> what C can do that Basic can not do.
>
> I will admit that some nice things such as safe for kernel code,
> threads, and such are not available with the implementation.  But what
> if the exact same language was implemented with a new compiler that
> would produce thread safe and kernel safe code was implemented?  Then
> what could C do that Basic could not do?

It is really two different tools intended for different purposes.

My claim is that:
- it would be silly to try and write an OS kernel or
device drivers in Basic (any existing Basic)
- it would be silly to write a business money
application in C (existing C - not the C that Bill
believe could be created)

And funny enough - it seems like Basic programmers are way
better than C programmers to understand where their preferred
tool does not make sense to use.

Arne

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<jf5h7kF5un8U1@mid.individual.net>

  copy mid

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

  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: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Date: Tue, 24 May 2022 22:05:38 -0400
Lines: 62
Message-ID: <jf5h7kF5un8U1@mid.individual.net>
References: <smg4a2$boh$1@gioia.aioe.org>
<618d84c9$0$692$14726298@news.sunsite.dk> <smk0u9$i36$1@dont-email.me>
<smmboi$tku$1@dont-email.me>
<0bce8caf-049a-4945-af14-cbc4b01bd5f2n@googlegroups.com>
<smroqk$f6s$1@dont-email.me> <sms17m$5no$1@dont-email.me>
<6191a18e$0$706$14726298@news.sunsite.dk> <smua6t$3hs$3@dont-email.me>
<6192bb11$0$702$14726298@news.sunsite.dk> <sn0uo9$j0$2@dont-email.me>
<t5kaps$p5k$1@gioia.aioe.org> <t5ljio$b1e$2@dont-email.me>
<627f04bb$0$694$14726298@news.sunsite.dk> <t5u3jc$13f$3@dont-email.me>
<jenjdtFgfvhU1@mid.individual.net> <6286d839$0$706$14726298@news.sunsite.dk>
<t66u0b$2t1$1@dont-email.me> <6287868c$0$700$14726298@news.sunsite.dk>
<t687h9$gkf$1@dont-email.me> <t68jm0$e7c$1@dont-email.me>
<t692vb$71s$1@dont-email.me> <t6fv1f$lvh$2@dont-email.me>
<t6gefk$lai$1@dont-email.me> <t6gh98$10j$1@dont-email.me>
<t6gnrn$t6$1@dont-email.me> <t6j4qe$cad$1@dont-email.me>
<t6jgnf$b06$1@dont-email.me> <628d72a3$0$694$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 YfN91+Pp/6FMG3QzJOH0kwHbCEg9Ve6o7fQSPI6Jg/RqaR8E51
Cancel-Lock: sha1:jX7ml1F1qKLs6OANNzddQvNl7sg=
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: <628d72a3$0$694$14726298@news.sunsite.dk>
 by: Bill Gunshannon - Wed, 25 May 2022 02:05 UTC

On 5/24/22 20:04, Arne Vajhøj wrote:
> On 5/24/2022 4:54 PM, Dave Froble wrote:
>> On 5/24/2022 1:31 PM, Simon Clubley wrote:
>>> On 2022-05-23, Dave Froble <davef@tsoft-inc.com> wrote:
>>>> Think I'll stick to Basic.  Does what I need.  Has strings built in.
>>>>
>>>
>>> It protects you better than C at the expense of not been able to do
>>> everything C does but there are also other languages that help protect
>>> you while still allowing you to do the things that C lets you do.
>>
>> Ok, gauntlet thrown down, and picked up.
>>
>> Leaving out the specifics of the implementation of DEC Basic, which
>> include not thread safe, and other things, I would like to know just
>> what C can do that Basic can not do.
>>
>> I will admit that some nice things such as safe for kernel code,
>> threads, and such are not available with the implementation.  But what
>> if the exact same language was implemented with a new compiler that
>> would produce thread safe and kernel safe code was implemented?  Then
>> what could C do that Basic could not do?
>
> It is really two different tools intended for different purposes.
>
> My claim is that:
> - it would be silly to try and write an OS kernel or
>   device drivers in Basic (any existing Basic)
> - it would be silly to write a business money
>   application in C (existing C - not the C that Bill
>   believe could be created)

I have never suggested any change to the C language at all.
Safe C was a compiler for the original K&R C as defined in their
first book. It merely enforced good programming practices. The
other changes I have talked about would all be done in the C RTL
and not in the language. And that includes a string library for
use with a string data type that need not be added to the language
because anyone can define one now if they want one. And, to be
honest they could define a string and write library routines to
work with it and never have to use a null terminated string.
But no one seems interested enough to actually do that. They
prefer to continue to complain about null terminated strings and
buffer overflows while blaming the language and not the programmer.

As for business programming in C. I have long been the one to
say "Choose the right tool for the job." C is not now and never
has been the right tool for business applications. And it never
claimed to be.

>
> And funny enough - it seems like Basic programmers are way
> better than C programmers to understand where their preferred
> tool does not make sense to use.

That one I do not agree with. BASIC, like Pascal, was created to
teach basic programming techniques. I really don't think Kemmeny
and Kurtz ever saw it leaving the academic world.

bill

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<t6k4c0$14fi$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!7GLcmEaGCAh/NJXrIIBVnQ.user.46.165.242.75.POSTED!not-for-mail
From: maher_rj...@hotmail.com (Richard Maher)
Newsgroups: comp.os.vms
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Date: Wed, 25 May 2022 10:30:24 +0800
Organization: Aioe.org NNTP Server
Message-ID: <t6k4c0$14fi$1@gioia.aioe.org>
References: <jenjdtFgfvhU1@mid.individual.net>
<6286d839$0$706$14726298@news.sunsite.dk> <jeo7pvFk767U1@mid.individual.net>
<6286f395$0$701$14726298@news.sunsite.dk> <jepghgFric3U1@mid.individual.net>
<6287bc1f$0$700$14726298@news.sunsite.dk> <t68k2i$e7c$2@dont-email.me>
<t6904k$jpl$1@dont-email.me> <t6fung$lvh$1@dont-email.me>
<t6j35e$h8d$2@news.misty.com> <628d7086$0$693$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="37362"; posting-host="7GLcmEaGCAh/NJXrIIBVnQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Richard Maher - Wed, 25 May 2022 02:30 UTC

On 25/05/2022 7:55 am, Arne Vajhøj wrote:
> On 5/24/2022 1:03 PM, Johnny Billquist wrote:
>> On 2022-05-23 14:29, Simon Clubley wrote:
>>> On 2022-05-20, Stephen Hoffman <seaohveh@hoffmanlabs.invalid> wrote:
>>>> On 2022-05-20 17:44:50 +0000, Simon Clubley said:
>>>>>
>>>>> These days, I avoid this problem in my C code by using the
>>>>> uint[8/16/32]_t (and friends) data types.
>>>>>
>>>>
>>>> Same here, where I need to care that much about the integer types.
>>>>
>>>
>>> Person who likes Ada here, remember ? :-)
>>>
>>> I always care about my types... :-)
>>
>> In a sense, this is something Ada really got right. You don't declare
>> how many bits, signedness and so on you want. You declare your
>> integers with the range you need them to have, and let the
>> language/compiler figure out how to represent and store them.
>
> Ada and the rest of that "language family" including Pascal and Modula-2.
>
>> And two "integer" types with different ranges are not the same type,
>> or even closely related, and you cannot just assign from one type to
>> another.
>
> That applies for Ada type. Not for Ada subtype and Pascal.
>
> But yes - it is a really really strong feature in Ada. True strict
> type check.
>
>> However, if you want to interface with hardware, it becomes a little
>> messy, since then you do want to specify things in number of bits and
>> bytes. Since that's what the hardware have.
>
> It can also be a problem if the code make certain assumptions about
> when integer overflow happens.
>
> Sure that would be ugly code. But ugly code has been seen in
> real life.
>
> Arne
>
>

COBOL being the best as usual but still needs POINTER and POINTER-64

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<t6k4ig$14fi$2@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!7GLcmEaGCAh/NJXrIIBVnQ.user.46.165.242.75.POSTED!not-for-mail
From: maher_rj...@hotmail.com (Richard Maher)
Newsgroups: comp.os.vms
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Date: Wed, 25 May 2022 10:33:52 +0800
Organization: Aioe.org NNTP Server
Message-ID: <t6k4ig$14fi$2@gioia.aioe.org>
References: <smg4a2$boh$1@gioia.aioe.org> <smjnmi$vng$1@gioia.aioe.org>
<smjo3a$e2a$1@dont-email.me> <smk04g$19rt$1@gioia.aioe.org>
<618d84c9$0$692$14726298@news.sunsite.dk> <smk0u9$i36$1@dont-email.me>
<smmboi$tku$1@dont-email.me>
<0bce8caf-049a-4945-af14-cbc4b01bd5f2n@googlegroups.com>
<smroqk$f6s$1@dont-email.me> <sms17m$5no$1@dont-email.me>
<6191a18e$0$706$14726298@news.sunsite.dk> <smua6t$3hs$3@dont-email.me>
<6192bb11$0$702$14726298@news.sunsite.dk> <sn0uo9$j0$2@dont-email.me>
<t5kaps$p5k$1@gioia.aioe.org> <t5ljio$b1e$2@dont-email.me>
<627f04bb$0$694$14726298@news.sunsite.dk> <t5u3jc$13f$3@dont-email.me>
<jenjdtFgfvhU1@mid.individual.net> <6286d839$0$706$14726298@news.sunsite.dk>
<t66u0b$2t1$1@dont-email.me> <6287868c$0$700$14726298@news.sunsite.dk>
<t687h9$gkf$1@dont-email.me> <t68jm0$e7c$1@dont-email.me>
<t692vb$71s$1@dont-email.me> <t6fv1f$lvh$2@dont-email.me>
<t6gefk$lai$1@dont-email.me> <t6gh98$10j$1@dont-email.me>
<t6gnrn$t6$1@dont-email.me> <t6j4qe$cad$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="37362"; posting-host="7GLcmEaGCAh/NJXrIIBVnQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Richard Maher - Wed, 25 May 2022 02:33 UTC

On 25/05/2022 1:31 am, Simon Clubley wrote:
> On 2022-05-23, Dave Froble <davef@tsoft-inc.com> wrote:
>> On 5/23/2022 1:46 PM, Simon Clubley wrote:
>>> On 2022-05-23, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>
>>>> What safety is there in programming when you remove the need
>>>> for a programmer to exercise due diligence and careful
>>>> practices?
>>>>
>>>
>>> With that attitude David, you should switch to using C... :-)
>>>
>>
>> What attitude is that?
>>
>
> Some C programmers say that there's nothing wrong with C and that
> it's your fault if you are not careful enough when writing C code.
>
> I am not one of them because, for me, I continue to use C because
> it's the most viable language for some tasks, not because it is the
> best language for those tasks.
>
>> Think I'll stick to Basic. Does what I need. Has strings built
>> in.
>>
>
> It protects you better than C at the expense of not been able to do
> everything C does but there are also other languages that help
> protect you while still allowing you to do the things that C lets you
> do.
>
> Simon.
>

I hate C! But agree wholeheartedly with the expressed sentiments. If I
have to hear another TypeScript wanker try to tell me what's wrong with
Javascript I'll stick their React, NPM, NodeJS, Babel, Redux, Swagger,
loDash . . . up their arse!

Re: Safer programming languages

<t6k5gk$29e1h$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED.ott-lmlp35-128.hge.net!not-for-mail
From: FIRST.L...@vmssoftware.com (Robert A. Brooks)
Newsgroups: comp.os.vms
Subject: Re: Safer programming languages
Date: Tue, 24 May 2022 22:49:55 -0400
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <t6k5gk$29e1h$1@dont-email.me>
References: <smg4a2$boh$1@gioia.aioe.org> <smk0u9$i36$1@dont-email.me>
<smmboi$tku$1@dont-email.me>
<0bce8caf-049a-4945-af14-cbc4b01bd5f2n@googlegroups.com>
<smroqk$f6s$1@dont-email.me> <sms17m$5no$1@dont-email.me>
<6191a18e$0$706$14726298@news.sunsite.dk> <smua6t$3hs$3@dont-email.me>
<6192bb11$0$702$14726298@news.sunsite.dk> <sn0uo9$j0$2@dont-email.me>
<t5kaps$p5k$1@gioia.aioe.org> <t5ljio$b1e$2@dont-email.me>
<627f04bb$0$694$14726298@news.sunsite.dk> <t5u3jc$13f$3@dont-email.me>
<jenjdtFgfvhU1@mid.individual.net> <6286d839$0$706$14726298@news.sunsite.dk>
<t66u0b$2t1$1@dont-email.me> <6287868c$0$700$14726298@news.sunsite.dk>
<t687h9$gkf$1@dont-email.me> <t68jm0$e7c$1@dont-email.me>
<t692vb$71s$1@dont-email.me> <t6fv1f$lvh$2@dont-email.me>
<t6gefk$lai$1@dont-email.me> <t6gh98$10j$1@dont-email.me>
<t6gnrn$t6$1@dont-email.me> <t6j4qe$cad$1@dont-email.me>
<t6jgnf$b06$1@dont-email.me> <628d72a3$0$694$14726298@news.sunsite.dk>
<jf5h7kF5un8U1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 25 May 2022 02:49:56 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="ott-lmlp35-128.hge.net:162.245.142.128";
logging-data="2406449"; mail-complaints-to="abuse@eternal-september.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.0
X-Antivirus: Avast (VPS 220524-4, 5/24/2022), Outbound message
Content-Language: en-US
X-Antivirus-Status: Clean
In-Reply-To: <jf5h7kF5un8U1@mid.individual.net>
 by: Robert A. Brooks - Wed, 25 May 2022 02:49 UTC

On 5/24/2022 10:05 PM, Bill Gunshannon wrote:

> That one I do not agree with.  BASIC, like Pascal, was created to
> teach basic programming techniques.  I really don't think Kemmeny
> and Kurtz ever saw it leaving the academic world.

I work with a Dartmouth grad who remained in contact with Kemeny
while at DEC; I'll ask tomorrow about BASIC (or Basic, which is the current
correct capitialization).

--
-- Rob

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit

<memo.20220525092232.11824k@jgd.cix.co.uk>

  copy mid

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

  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: Safer programming languages (and walking :-) ), was: Re: 8-bit
Date: Wed, 25 May 2022 09:22 +0100 (BST)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <memo.20220525092232.11824k@jgd.cix.co.uk>
References: <t6j88d$1136$1@gioia.aioe.org>
Reply-To: jgd@cix.co.uk
Injection-Info: reader02.eternal-september.org; posting-host="053f3aa026f8bac63a0ef8fe772f260f";
logging-data="25472"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SHitlOIDzJfi7XRht0Bug3j1t0S8T2R4="
Cancel-Lock: sha1:+aKwBnwLclPv76agTmoFxJLWAuo=
 by: John Dallman - Wed, 25 May 2022 08:22 UTC

In article <t6j88d$1136$1@gioia.aioe.org>, chris-nospam@tridac.net (chris)
wrote:

> What made the 6502 a bit special was the variety of addressing
> modes . . . Not even close to the PDP11 of the time, but probably
> the best they could do with the process technology of the day..

You could build more complex 8-bit CPUs at the time, such as the 8080.
The 6502 was specifically designed to be easy and cheap to produce as a
microcontroller. Its success in home computers was because it turned out
to be good at running interpreters.

John (who was one of two students who wrote a FORTH interpreter in a day)

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<t6kpm2$kcr$1@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Date: Wed, 25 May 2022 10:34:09 +0200
Organization: MGT Consulting
Message-ID: <t6kpm2$kcr$1@news.misty.com>
References: <jenjdtFgfvhU1@mid.individual.net>
<6286d839$0$706$14726298@news.sunsite.dk> <jeo7pvFk767U1@mid.individual.net>
<6286f395$0$701$14726298@news.sunsite.dk> <jepghgFric3U1@mid.individual.net>
<6287bc1f$0$700$14726298@news.sunsite.dk> <t68k2i$e7c$2@dont-email.me>
<t6904k$jpl$1@dont-email.me> <t6fung$lvh$1@dont-email.me>
<t6j35e$h8d$2@news.misty.com> <628d7086$0$693$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 25 May 2022 08:34:10 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="20891"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Content-Language: en-US
In-Reply-To: <628d7086$0$693$14726298@news.sunsite.dk>
 by: Johnny Billquist - Wed, 25 May 2022 08:34 UTC

On 2022-05-25 01:55, Arne Vajhøj wrote:
> On 5/24/2022 1:03 PM, Johnny Billquist wrote:
>> On 2022-05-23 14:29, Simon Clubley wrote:
>>> On 2022-05-20, Stephen Hoffman <seaohveh@hoffmanlabs.invalid> wrote:
>>>> On 2022-05-20 17:44:50 +0000, Simon Clubley said:
>>>>>
>>>>> These days, I avoid this problem in my C code by using the
>>>>> uint[8/16/32]_t (and friends) data types.
>>>>>
>>>>
>>>> Same here, where I need to care that much about the integer types.
>>>>
>>>
>>> Person who likes Ada here, remember ? :-)
>>>
>>> I always care about my types... :-)
>>
>> In a sense, this is something Ada really got right. You don't declare
>> how many bits, signedness and so on you want. You declare your
>> integers with the range you need them to have, and let the
>> language/compiler figure out how to represent and store them.
>
> Ada and the rest of that "language family" including Pascal and Modula-2.

It's similar in some sense to Pascal, yes (I don't really know Modula),
but from just my recollection right now, Ada is not the same as Pascal here.

>> And two "integer" types with different ranges are not the same type,
>> or even closely related, and you cannot just assign from one type to
>> another.
>
> That applies for Ada type. Not for Ada subtype and Pascal.

Maybe that is what my recollection is about. In Pascal, they are all
subtypes, while in Ada they are usually not, unless you specifically say so.

And also, enumerated types are truly types in the full sense in Ada,
which is also nice.

> But yes - it is a really really strong feature in Ada. True strict
> type check.

Yes. While it can be a headache sometimes, it do make a lot of sense.
Especially when working on larger software with lots of people involved.

>> However, if you want to interface with hardware, it becomes a little
>> messy, since then you do want to specify things in number of bits and
>> bytes. Since that's what the hardware have.
>
> It can also be a problem if the code make certain assumptions about
> when integer overflow happens.

Well, since it's Ada, you don't make any assumptions. You'll always get
exceptions on overflow, as far as I can remember. But again, in some
situation, especially when dealing with hardware, you would like to just
get what the hardware does, without Ada interfering. And then you have
to work some.

> Sure that would be ugly code. But ugly code has been seen in
> real life.

:-)

Johnny

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<t6kqsr$lr6$1@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit
characters
Date: Wed, 25 May 2022 10:54:50 +0200
Organization: MGT Consulting
Message-ID: <t6kqsr$lr6$1@news.misty.com>
References: <smg4a2$boh$1@gioia.aioe.org> <t6gh98$10j$1@dont-email.me>
<jf28s0Ftod1U1@mid.individual.net> <jf2fqfFiphjU1@mid.individual.net>
<t6iksp$bfh$1@reader1.panix.com> <t6j3fo$h8d$4@news.misty.com>
<t6j580$cad$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 25 May 2022 08:54:51 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="22374"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Content-Language: en-US
In-Reply-To: <t6j580$cad$2@dont-email.me>
 by: Johnny Billquist - Wed, 25 May 2022 08:54 UTC

On 2022-05-24 19:39, Simon Clubley wrote:
> On 2022-05-24, Johnny Billquist <bqt@softjar.se> wrote:
>> On 2022-05-24 15:00, Dan Cross wrote:
>>> In article <jf2fqfFiphjU1@mid.individual.net>,
>>> Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>>>> On 5/23/22 16:24, Bob Eager wrote:
>>>>> On Mon, 23 May 2022 17:46:16 +0000, Simon Clubley wrote:
>>>>>
>>>>>> On 2022-05-23, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>>>>
>>>>>>> What safety is there in programming when you remove the need for a
>>>>>>> programmer to exercise due diligence and careful practices?
>>>>>>>
>>>>>>>
>>>>>> With that attitude David, you should switch to using C... :-)
>>>>>
>>>>> C is for wimps. Try BCPL.
>>>>
>>>> BCPL is for wimps. Stick with Macro-11.
>>>
>>> Anything other than machine code in octal is for pikers.
>>
>> Octal? You had octal? You lucky bastards. We had to be content with binary.
>>
>> (Go ahead. Make my day. Continue this thread... :-D )
>>
>
> Lucky you! I had to be happy with using a really small magnet to
> program the core memory...
>
> Beat that!

Magnets? You had magnets? We had to wait for cosmic radiation to flip
our bits.

> Simon.
>
> PS: On a more serious note, the only time I have seen core memory is
> in a museum or in pictures. The thing that strikes me about it is
> that it was a destructive read. I can't think of anything else where
> reading it destroys the contents. Does anyone know of such technology ?

As one who still have machines at home with core memories... (they are fun)

Williams tube memory also have destructive reads.

Actually, NAND flash is also somewhat similar. It can deal with a few
reads, but have have to rewrite/refresh the data after that. So it
degrades with each read. Which, considering that it's basically like a
capacitor storing a charge, isn't that surprising.

Normal dynamic ram as well. It needs constant refreshing. But it's not
the read itself that is destructive, but time (another style of
capacitor discharge, which is more leaky).

You could argue that bubble memory reads are also destructive.

In the olden days there were lots of technologies with strange behavior.
Various delay line memories for example, where you could only access a
specific bit at certain times. Mercury memory is fun. But delay line
memory usually, similar to bubble memory, means that when the bit comes
out, if you want to retain it, it has to be rewritten again.

But right now those are the ones I can think of.

Johnny

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit

<t6l5sf$39j$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!jazQyxryRFiI4FEZ51SAvA.user.46.165.242.75.POSTED!not-for-mail
From: chris-no...@tridac.net (chris)
Newsgroups: comp.os.vms
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit
Date: Wed, 25 May 2022 13:02:23 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t6l5sf$39j$1@gioia.aioe.org>
References: <t6j88d$1136$1@gioia.aioe.org> <memo.20220525092232.11824k@jgd.cix.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="3379"; posting-host="jazQyxryRFiI4FEZ51SAvA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; SunOS sun4u; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
X-Notice: Filtered by postfilter v. 0.9.2
 by: chris - Wed, 25 May 2022 12:02 UTC

On 05/25/22 09:22, John Dallman wrote:
> In article<t6j88d$1136$1@gioia.aioe.org>, chris-nospam@tridac.net (chris)
> wrote:
>
>> What made the 6502 a bit special was the variety of addressing
>> modes . . . Not even close to the PDP11 of the time, but probably
>> the best they could do with the process technology of the day..
>
> You could build more complex 8-bit CPUs at the time, such as the 8080.
> The 6502 was specifically designed to be easy and cheap to produce as a
> microcontroller. Its success in home computers was because it turned out
> to be good at running interpreters.

I would suggest that was because of the indirect addressing modes, which
in theory, allowed up to 128 x 16 bit pointers in page zero. The
other thing that made 6502 faster than Intel of the time was the fact
that condition codes, zero, negative etc, were set on a load, as pdp11
in fact (bringing it back on topic), whereas the wooden 8080 and similar
needed a tst instruction before a branch. This alone saves a lot of
cycles in a tight instruction stream.

>
> John (who was one of two students who wrote a FORTH interpreter in a day)

That is a great achievement, but how big was the dictionary ?. A
friend wrote a 68000 cross assembler on an Apple II in a few days
and it produced good code.

All history now, but still feel privileged to have been part of
that tech revolution is some small way. We thought anything was
possible at the time...

Chris

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit

<t6l7v8$4ac$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit
Date: Wed, 25 May 2022 14:38:00 +0200
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <t6l7v8$4ac$1@dont-email.me>
References: <t6j88d$1136$1@gioia.aioe.org>
<memo.20220525092232.11824k@jgd.cix.co.uk> <t6l5sf$39j$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 25 May 2022 12:38:00 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="adae0db77bd4a68ec9f8b6816466e332";
logging-data="4428"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VPd+Mhb3nQUJKhF2m58Rr"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.0
Cancel-Lock: sha1:sJ0ZtJpvHICzI8boAU8nasxNEtc=
In-Reply-To: <t6l5sf$39j$1@gioia.aioe.org>
Content-Language: sv
 by: Jan-Erik Söderholm - Wed, 25 May 2022 12:38 UTC

Den 2022-05-25 kl. 14:02, skrev chris:
> On 05/25/22 09:22, John Dallman wrote:
>> In article<t6j88d$1136$1@gioia.aioe.org>, chris-nospam@tridac.net (chris)
>> wrote:
>>
>>> What made the 6502 a bit special was the variety of addressing
>>> modes . . . Not even close to the PDP11 of the time, but probably
>>> the best they could do with the process technology of the day..
>>
>> You could build more complex 8-bit CPUs at the time, such as the 8080.
>> The 6502 was specifically designed to be easy and cheap to produce as a
>> microcontroller. Its success in home computers was because it turned out
>> to be good at running interpreters.
>
> I would suggest that was because of the indirect addressing modes, which
> in theory, allowed up to 128 x 16 bit pointers in page zero. The
> other thing that made 6502 faster than Intel of the time was the fact
> that condition codes, zero, negative etc, were set on a load, as pdp11
> in fact (bringing it back on topic), whereas the wooden 8080 and similar
> needed a tst instruction before a branch. This alone saves a lot of
> cycles in a tight instruction stream.
>
>>
>> John (who was one of two students who wrote a FORTH interpreter in a day)
>
> That is a great achievement, but how big was the dictionary ?. A
> friend wrote a 68000 cross assembler on an Apple II in a few days
> and it produced good code.
>
> All history now, but still feel privileged to have been part of
> that tech revolution is some small way. We thought anything was
> possible at the time...
>
> Chris
>

Talking about DIP-switches...

My first "computer" was a project from Elector using a National
SC/MP ("Scamp") as processor. Two 8-bit switches for adress and
data (256 bytes of 8-bit shared code/data memory).

Wrote and hand loaded a program that played the intro to
"Smoke on the water"...

https://en.wikipedia.org/wiki/National_Semiconductor_SC/MP

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<d66a66ae-bf01-485d-9ce8-81a01c3e31f7n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:4454:b0:6a3:6f0c:4e86 with SMTP id w20-20020a05620a445400b006a36f0c4e86mr12670781qkp.229.1653483047476;
Wed, 25 May 2022 05:50:47 -0700 (PDT)
X-Received: by 2002:ad4:4b6c:0:b0:462:5b80:3405 with SMTP id
m12-20020ad44b6c000000b004625b803405mr5631504qvx.73.1653483047259; Wed, 25
May 2022 05:50:47 -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: Wed, 25 May 2022 05:50:47 -0700 (PDT)
In-Reply-To: <t6kqsr$lr6$1@news.misty.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:98da:60e5:42f8:fe6b;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:98da:60e5:42f8:fe6b
References: <smg4a2$boh$1@gioia.aioe.org> <t6gh98$10j$1@dont-email.me>
<jf28s0Ftod1U1@mid.individual.net> <jf2fqfFiphjU1@mid.individual.net>
<t6iksp$bfh$1@reader1.panix.com> <t6j3fo$h8d$4@news.misty.com>
<t6j580$cad$2@dont-email.me> <t6kqsr$lr6$1@news.misty.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d66a66ae-bf01-485d-9ce8-81a01c3e31f7n@googlegroups.com>
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters
From: gah...@u.washington.edu (gah4)
Injection-Date: Wed, 25 May 2022 12:50:47 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2449
 by: gah4 - Wed, 25 May 2022 12:50 UTC

On Wednesday, May 25, 2022 at 1:54:53 AM UTC-7, Johnny Billquist wrote:

(snip)

> Normal dynamic ram as well. It needs constant refreshing. But it's not
> the read itself that is destructive, but time (another style of
> capacitor discharge, which is more leaky).

Yes DRAM reads are also destructive. It empties the charge on the
capacitor into the sense amplifier.

Some machines with magnetic core memory do a read-modify-write
operation, without restoring the bits in between. Some early DRAM
systems did that, too. (I don't think they can do that now.)

A DRAM read cycle first reads all the bits in a row into their sense
amplifiers. Then some are selected and gated to the output.
Not so much later, the whole row is written back. A refresh
cycle does the row read and restore, but not the column select.

The separation in the timing for row access and column
access makes it convenient to use the same pins for row
addressing and column addressing, reducing the pin need.

SRAM reads are normally not destructive.

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit

<t6le0l$d4d$1@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: Safer programming languages (and walking :-) ), was: Re: 8-bit
Date: Wed, 25 May 2022 16:21:08 +0200
Organization: MGT Consulting
Message-ID: <t6le0l$d4d$1@news.misty.com>
References: <t6j88d$1136$1@gioia.aioe.org>
<memo.20220525092232.11824k@jgd.cix.co.uk> <t6l5sf$39j$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 25 May 2022 14:21:09 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="13453"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.9.1
Content-Language: en-US
In-Reply-To: <t6l5sf$39j$1@gioia.aioe.org>
 by: Johnny Billquist - Wed, 25 May 2022 14:21 UTC

On 2022-05-25 14:02, chris wrote:
> On 05/25/22 09:22, John Dallman wrote:
>> In article<t6j88d$1136$1@gioia.aioe.org>, chris-nospam@tridac.net (chris)
>> wrote:
>>
>>> What made the 6502 a bit special was the variety of addressing
>>> modes . . . Not even close to the PDP11 of the time, but probably
>>> the best they could do with the process technology of the day..
>>
>> You could build more complex 8-bit CPUs at the time, such as the 8080.
>> The 6502 was specifically designed to be easy and cheap to produce as a
>> microcontroller. Its success in home computers was because it turned out
>> to be good at running interpreters.
>
> I would suggest that was because of the indirect addressing modes, which
> in theory, allowed up to 128 x 16 bit pointers in page zero. The
> other thing that made 6502 faster than Intel of the time was the fact
> that condition codes, zero, negative etc, were set on a load, as pdp11
> in fact (bringing it back on topic), whereas the wooden 8080 and similar
> needed a tst instruction before a branch. This alone saves a lot of
> cycles in a tight instruction stream.

The 16 bit indirect pointers might sound good, but it's partially since
the 6502 only have 8 bit registers, so you are forced to go there. And
of course, another implication is that the stack can only be 256 bytes
on the 6502 as well...

Setting of condition codes on load is a good point though.
This is somewhat offset by the fact that the Z80 (can't remember if the
8080 had it) block instructions, which in the end makes for even tighter
operations, since they already do bounds checking, and updating
pointers, in addition to either moving or checking.
Classic things like moving a nul-terminated string on a Z80:

LD HL,SRC
LD DE,DST
LD BC,MAX
XOR A
LOOP: CP (HL)
JR Z,DONE
LDI
JP PE,LOOP
DONE:

Four instructions isn't too shabby. Not sure how many that would become
with 6502. And you actually have a choice without extra cost on what
character to terminate on. Don't have to be NUL.

Of course, just searching for a byte is just a single instruction
(CPIR), so that I won't even mention any further.

Basically, as long as you only have to deal with 8 bit data, and you
don't really even want to deal with 16 bit pointers, then the 6502 is
pretty nice. But it quickly turns ugly from there.

>> John (who was one of two students who wrote a FORTH interpreter in a day)
>
> That is a great achievement, but how big was the dictionary ?. A
> friend wrote a 68000 cross assembler on an Apple II in a few days
> and it produced good code.

Hmm? Produce good code? It's an assembler, right? So it should literally
just be a 1:1 mapping between the source and the code generated. There
isn't exactly anything more an assembler would do.

But anyway, writing a full assembler is still some work. Well done.

> All history now, but still feel privileged to have been part of
> that tech revolution is some small way. We thought anything was
> possible at the time...

Anything is still possible. It has only become more difficult. :-)

Johnny

Re: Safer programming languages (and walking :-) ), was: Re: 8-bit characters

<t6lpkc$4hf$1@dont-email.me>

  copy mid

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

  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: Safer programming languages (and walking :-) ), was: Re: 8-bit characters
Date: Wed, 25 May 2022 17:39:24 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <t6lpkc$4hf$1@dont-email.me>
References: <smg4a2$boh$1@gioia.aioe.org> <t6gh98$10j$1@dont-email.me> <jf28s0Ftod1U1@mid.individual.net> <jf2fqfFiphjU1@mid.individual.net> <t6iksp$bfh$1@reader1.panix.com> <t6j3fo$h8d$4@news.misty.com> <t6j580$cad$2@dont-email.me> <t6kqsr$lr6$1@news.misty.com>
Injection-Date: Wed, 25 May 2022 17:39:24 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="51091e7cd34fcd1064a17af39318e623";
logging-data="4655"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/L2RnlcK+sYa39VrjanECrqMNXb0mMYjk="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:yGFdBLFObVu36CVbBA3k30/htPk=
 by: Simon Clubley - Wed, 25 May 2022 17:39 UTC

On 2022-05-25, Johnny Billquist <bqt@softjar.se> wrote:
>
> As one who still have machines at home with core memories... (they are fun)
>
> Williams tube memory also have destructive reads.
>
> Actually, NAND flash is also somewhat similar. It can deal with a few
> reads, but have have to rewrite/refresh the data after that. So it
> degrades with each read. Which, considering that it's basically like a
> capacitor storing a charge, isn't that surprising.
>
> Normal dynamic ram as well. It needs constant refreshing. But it's not
> the read itself that is destructive, but time (another style of
> capacitor discharge, which is more leaky).
>
> You could argue that bubble memory reads are also destructive.
>
> In the olden days there were lots of technologies with strange behavior.
> Various delay line memories for example, where you could only access a
> specific bit at certain times. Mercury memory is fun. But delay line
> memory usually, similar to bubble memory, means that when the bit comes
> out, if you want to retain it, it has to be rewritten again.
>
> But right now those are the ones I can think of.
>

Well, I've just found out about a batch of technologies that were way
before my time. :-)

Thanks, Johnny. :-)

Simon.

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

Pages:123456789
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor