Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

I've looked at the listing, and it's right! -- Joel Halpern


computers / comp.os.vms / Re: BASIC (and Horizon)

SubjectAuthor
* BASIC (and Horizon)Simon Clubley
`* Re: BASIC (and Horizon)Arne Vajhøj
 `* Re: BASIC (and Horizon)kludge
  +- Re: BASIC (and Horizon)Lawrence D'Oliveiro
  +* Re: BASIC (and Horizon)Arne Vajhøj
  |`* Re: BASIC (and Horizon)Dave Froble
  | +* Re: BASIC (and Horizon)Chris Townley
  | |`* Re: BASIC (and Horizon)Dave Froble
  | | +* Re: BASIC (and Horizon)Chris Townley
  | | |`* Re: BASIC (and Horizon)Dave Froble
  | | | +- Re: BASIC (and Horizon)Chris Townley
  | | | `- Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | +* Re: BASIC (and Horizon)Michael S
  | | |+* Re: BASIC (and Horizon)Scott Dorsey
  | | ||`* Re: BASIC (and Horizon)Arne Vajhøj
  | | || +- Re: BASIC (and Horizon)Dan Cross
  | | || `* Re: BASIC (and Horizon)Scott Dorsey
  | | ||  `* Re: BASIC (and Horizon)Arne Vajhøj
  | | ||   `- Re: BASIC (and Horizon)Scott Dorsey
  | | |`* Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | | `* Re: BASIC (and Horizon)Arne Vajhøj
  | | |  +* Re: BASIC (and Horizon)Dave Froble
  | | |  |`* Re: BASIC (and Horizon)Dan Cross
  | | |  | `* Re: BASIC (and Horizon)Dave Froble
  | | |  |  +* Re: BASIC (and Horizon)Single Stage to Orbit
  | | |  |  |+- Re: BASIC (and Horizon)Dan Cross
  | | |  |  |`* Re: BASIC (and Horizon)Dave Froble
  | | |  |  | `- Re: BASIC (and Horizon)Single Stage to Orbit
  | | |  |  +- Re: BASIC (and Horizon)Dan Cross
  | | |  |  +- Re: BASIC (and Horizon)Simon Clubley
  | | |  |  `- Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | |  `* Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | |   `* Re: BASIC (and Horizon)Arne Vajhøj
  | | |    +* Re: BASIC (and Horizon)Dan Cross
  | | |    |`* Re: BASIC (and Horizon)Simon Clubley
  | | |    | +- Re: BASIC (and Horizon)Dan Cross
  | | |    | `* Re: BASIC (and Horizon)Arne Vajhøj
  | | |    |  `- Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | |    +* Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | |    |+- Re: BASIC (and Horizon)Dan Cross
  | | |    |`* Re: BASIC (and Horizon)Arne Vajhøj
  | | |    | +* Re: BASIC (and Horizon)Dave Froble
  | | |    | |`* Re: BASIC (and Horizon)Arne Vajhøj
  | | |    | | `* Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | |    | |  `* Re: BASIC (and Horizon)Arne Vajhøj
  | | |    | |   `- Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | |    | `* Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | |    |  +* Re: BASIC (and Horizon)Arne Vajhøj
  | | |    |  |`- Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | |    |  `* Re: BASIC (and Horizon)Dan Cross
  | | |    |   `* Re: BASIC (and Horizon)Arne Vajhøj
  | | |    |    `- Re: BASIC (and Horizon)Dan Cross
  | | |    `- Re: BASIC (and Horizon)Dave Froble
  | | +* Re: BASIC (and Horizon)Arne Vajhøj
  | | |+* Re: BASIC (and Horizon)Simon Clubley
  | | ||`- Re: BASIC (and Horizon)Arne Vajhøj
  | | |`* Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | | `* Re: BASIC (and Horizon)Arne Vajhøj
  | | |  `* Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | |   `* Re: BASIC (and Horizon)Arne Vajhøj
  | | |    `* Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | |     `* Re: BASIC (and Horizon)Arne Vajhøj
  | | |      `* Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | |       `* Re: BASIC (and Horizon)Arne Vajhøj
  | | |        +- Re: BASIC (and Horizon)Arne Vajhøj
  | | |        `- Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | | `* Re: BASIC (and Horizon)Stephen Hoffman
  | |  `* Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | |   `* Re: BASIC (and Horizon)Stephen Hoffman
  | |    `- Re: BASIC (and Horizon)Lawrence D'Oliveiro
  | `- Re: BASIC (and Horizon)Arne Vajhøj
  `* Re: BASIC (and Horizon)bill
   +* Re: BASIC (and Horizon)Chris Townley
   |`- Re: BASIC (and Horizon)bill
   +* Re: BASIC (and Horizon)Scott Dorsey
   |`* Re: BASIC (and Horizon)bill
   | `* Re: BASIC (and Horizon)Bob Eager
   |  `* Re: BASIC (and Horizon)Lawrence D'Oliveiro
   |   `- Re: BASIC (and Horizon)Michael S
   `* Re: BASIC (and Horizon)Andreas Eder
    `- Re: BASIC (and Horizon)bill

Pages:1234
Re: BASIC (and Horizon)

<l27fb8Fs2l7U1@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33453&group=comp.os.vms#33453

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gunshannon@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: BASIC (and Horizon)
Date: Sat, 3 Feb 2024 13:35:09 -0500
Lines: 38
Message-ID: <l27fb8Fs2l7U1@mid.individual.net>
References: <up8qmo$ima5$1@dont-email.me> <up9eho$lqco$2@dont-email.me>
<up9h57$fmh$1@panix1.panix.com> <l1sne0Fi5hqU2@mid.individual.net>
<875xz531dd.fsf@eder.anydns.info>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 7l0zJybAtYx8grr7aOc7pQgC3gZCW2PUbsphsKZv+mTMjlWz1j
Cancel-Lock: sha1:1zXxzJdBO5fcFwCp3T9boVniHPU= sha256:/X3oHcsBzZU6sRU1/JlncjXw78/qzOHz/mHt7bOGdqQ=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <875xz531dd.fsf@eder.anydns.info>
 by: bill - Sat, 3 Feb 2024 18:35 UTC

On 2/3/2024 12:26 PM, Andreas Eder wrote:
> On Di 30 Jan 2024 at 11:45, bill <bill.gunshannon@gmail.com> wrote:
>
>> On 1/29/2024 7:50 PM, kludge@panix.com wrote:
>>> =?UTF-8?Q?Arne_Vajh=C3=B8j?= <arne@vajhoej.dk> wrote:
>>>> The code is VB6.
>>>>
>>>> But none of the problems are Basic specific. It is possible
>>>> to write the same bad code in C or Fortran or whatever.
>>>>
>>>> So it just shows that there are some really really bad programmers out
>>>> there.
>>> I have worked with people who could write spaghetti Fortran in any
>>> programming language available. Did you know that LISP has a goto?
>>> It does.
>>>
>>>> PS: Good compilers may have detected the unreachable code. But it
>>>> is still good vs bad compiler not good vs bad language.
>>> The exciting part is when they tell you not to remove the unreachable
>>> code,
>>> because the program crashes at runtime when you do that.
>>
>> Many moons ago I had to try to fix a number of programs that
>> crashed whenever run. Back in those days a common method was
>> to add statements to display variables during execution. I
>> had many cases where adding those statements made the program
>> work.
>>
>> bill
>
> So it was a Heisenbug :-)
>

Now, that's a very interesting way to look at it. :-)

bill

Re: BASIC (and Horizon)

<upp4di$3s4nc$5@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33455&group=comp.os.vms#33455

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: BASIC (and Horizon)
Date: Sun, 4 Feb 2024 22:51:30 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <upp4di$3s4nc$5@dont-email.me>
References: <up8qmo$ima5$1@dont-email.me> <up9eho$lqco$2@dont-email.me>
<up9h57$fmh$1@panix1.panix.com> <up9hra$m85k$1@dont-email.me>
<upa74a$t0ce$1@dont-email.me> <upb1p2$10mt0$1@dont-email.me>
<upci9g$1cmn1$2@dont-email.me> <updog4$1itf7$1@dont-email.me>
<upedpu$1mjib$6@dont-email.me> <upegm7$1n0je$2@dont-email.me>
<upekfj$1nil8$6@dont-email.me> <upepeb$1ofg2$1@dont-email.me>
<upf0u1$1t7cn$2@dont-email.me> <uphmh0$2en91$1@dont-email.me>
<uphs6r$2fg0v$2@dont-email.me> <upinnl$2jlsr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 4 Feb 2024 22:51:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="29ee133c86c3ce52220b03c91f891a2d";
logging-data="4068076"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++lNwDYgYs5A6Jvd0WUvOp"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:1SKS5UeDguCCw3G4mmvygI0mX6o=
 by: Lawrence D'Oliv - Sun, 4 Feb 2024 22:51 UTC

On Fri, 2 Feb 2024 07:38:14 -0500, Arne Vajhøj wrote:

> On 2/1/2024 11:48 PM, Lawrence D'Oliveiro wrote:
>
>> On Thu, 1 Feb 2024 22:11:20 -0500, Arne Vajhøj wrote:
>>
>>> But C# is all over. Finance, e-commerce, government etc..
>>
>> All that stuff that’s now in the cloud?
>
> A lot of it.
>
> But C# does not care if if the hardware it runs on is bought or rented.

Looks like Microsoft now wants to get rid of at least some of its own C#
code. It is looking for developers to convert it to Rust.

Not exactly a vote of confidence in the future of C#/Dotnet, is it?

Re: BASIC (and Horizon)

<uprqfs$gcqc$2@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33458&group=comp.os.vms#33458

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.samoylyk.net!2.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: BASIC (and Horizon)
Date: Mon, 5 Feb 2024 23:20:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <uprqfs$gcqc$2@dont-email.me>
References: <up8qmo$ima5$1@dont-email.me> <up9eho$lqco$2@dont-email.me>
<up9h57$fmh$1@panix1.panix.com> <up9hra$m85k$1@dont-email.me>
<upa74a$t0ce$1@dont-email.me> <upb1p2$10mt0$1@dont-email.me>
<upci9g$1cmn1$2@dont-email.me> <20240131155230.00000457@yahoo.com>
<upee11$1mjib$7@dont-email.me> <upegdc$1n0je$1@dont-email.me>
<upeklu$1nil8$7@dont-email.me> <upeokq$1o97f$1@dont-email.me>
<upf0r9$1t7cn$1@dont-email.me> <uphl8k$2aqjo$1@dont-email.me>
<uphsad$2fg0v$3@dont-email.me> <upiriv$2kale$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 5 Feb 2024 23:20:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="06aca01f94cf0cf48b148884bafbedb9";
logging-data="537420"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wjEk0jargu/Z+jPcADmIf"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:TayQ1jmje4cJD0n8y4X1O1fuwIU=
 by: Lawrence D'Oliv - Mon, 5 Feb 2024 23:20 UTC

On Fri, 2 Feb 2024 08:44:00 -0500, Arne Vajhøj wrote:

> On 2/1/2024 11:50 PM, Lawrence D'Oliveiro wrote:
>
>> On Thu, 1 Feb 2024 21:49:56 -0500, Arne Vajhøj wrote:
>>
>>> The nested do while loop is a big mess.
>>
>> Looks like you are adding a whole lot more lines of code in the form of
>> jumps and places to jump to, and flags to control what to do when you
>> get there. Adding a bit of a combinatorial explosion in possible cases
>> that have to be verified somehow.
>
> I "added" lines so that the total number of lines "increased" from 7 to
> 6 in the one-level example and from 20 to 12 in the two-level example.

Fine. Now put it all together into a finished example, and show us how it
looks.

Re: BASIC (and Horizon)

<uprqp5$gcqc$3@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33459&group=comp.os.vms#33459

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: BASIC (and Horizon)
Date: Mon, 5 Feb 2024 23:25:26 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 78
Message-ID: <uprqp5$gcqc$3@dont-email.me>
References: <up8qmo$ima5$1@dont-email.me> <up9eho$lqco$2@dont-email.me>
<up9h57$fmh$1@panix1.panix.com> <up9hra$m85k$1@dont-email.me>
<upa74a$t0ce$1@dont-email.me> <upb1p2$10mt0$1@dont-email.me>
<upci9g$1cmn1$2@dont-email.me> <20240131155230.00000457@yahoo.com>
<upee11$1mjib$7@dont-email.me> <upegdc$1n0je$1@dont-email.me>
<upeklu$1nil8$7@dont-email.me> <upeokq$1o97f$1@dont-email.me>
<upf0r9$1t7cn$1@dont-email.me> <uphl8k$2aqjo$1@dont-email.me>
<upho1p$2f0cp$1@dont-email.me> <uphofn$2eqm4$1@dont-email.me>
<uphsbk$2fg0v$4@dont-email.me> <upioq0$2jlsr$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 5 Feb 2024 23:25:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="06aca01f94cf0cf48b148884bafbedb9";
logging-data="537420"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18alViBzCsuZZ8vhHc8NXGA"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:uWYG3y6Dt0Lh9Uwjx/W5mEaz5Nc=
 by: Lawrence D'Oliv - Mon, 5 Feb 2024 23:25 UTC

On Fri, 2 Feb 2024 07:56:33 -0500, Arne Vajhøj wrote:

> On 2/1/2024 11:51 PM, Lawrence D'Oliveiro wrote:
>> On Thu, 1 Feb 2024 22:44:56 -0500, Arne Vajhøj wrote:
>>> To quote from Linux kernel coding style doc:
>>>
>>> <quote>
>>> Now, some people will claim that having 8-character indentations makes
>>> the code move too far to the right, and makes it hard to read on a
>>> 80-character terminal screen. The answer to that is that if you need
>>> more than 3 levels of indentation, you’re screwed anyway, and should
>>> fix your program.
>>
>> I think this is a load of nonsense.
>
> Apparently Linus doesn't think so.

I know he doesn’t.

> And while few may have worded is this blunt, then it is generally
> accepted that deep nesting is a code smell and should be refactored and
> code moved out to functions/methods.

I do deep nesting all the time. This one goes 8 levels deep.

(defun prev_less_indent (count)
"moves to the last prior line with a lesser indentation level."
(interactive "p")
(loop break
(back-to-indentation)
(let
(
(indent_end (point))
indent_amt
line_start
)
(beginning-of-line)
(cond
((> indent_end (point))
(setq indent_amt (- indent_end (point) 1))
(unless
(loop done
(when (= (point) (point-min))
(ding)
(done nil)
) ; when
(previous-logical-line)
(beginning-of-line)
(setq line_start (point))
(end-of-line)
(when (/= line_start (point)) ; skip over empty lines
(back-to-indentation)
(setq indent_end (point))
(beginning-of-line)
(when (< (- indent_end (point)) indent_amt)
(done t)
) ; when
) ; when
) ; loop
(break)
) ; unless
)
(t ; on line with no leading whitespace
(ding)
(break)
)
) ; cond
) ; let
(setq count (- count 1))
(when (<= count 0)
(break)
) ; when
) ; loop
(back-to-indentation)
) ; prev_less_indent

Feel free to show us how it should be “refactored and code moved out
to functions/methods”.

Re: BASIC (and Horizon)

<uqts46$1ej8q$8@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33516&group=comp.os.vms#33516

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: BASIC (and Horizon)
Date: Sun, 18 Feb 2024 21:16:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <uqts46$1ej8q$8@dont-email.me>
References: <up8qmo$ima5$1@dont-email.me> <up9eho$lqco$2@dont-email.me>
<up9h57$fmh$1@panix1.panix.com> <up9hra$m85k$1@dont-email.me>
<upa74a$t0ce$1@dont-email.me> <upb1p2$10mt0$1@dont-email.me>
<upci9g$1cmn1$2@dont-email.me> <updcv8$1frdh$1@dont-email.me>
<upe3dn$1kr2b$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 18 Feb 2024 21:16:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="297432ee8be2f2c4ce47ce2a25257ed8";
logging-data="1527066"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19btBkVsqReHbug8cnINnDO"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:oTavZ0wVimZexL+Kre6SmowCSns=
 by: Lawrence D'Oliv - Sun, 18 Feb 2024 21:16 UTC

On Wed, 31 Jan 2024 13:27:57 -0500, Dave Froble wrote:

> Final cleanup, if required, and exit the program.

If the program is exiting, a lot of the leftover cleanup (e.g. memory
deallocation) becomes unnecessary.

> Knew a guy that would us a gosub to go to the END statement. Drove me
> nuts.

Did it have a comment next to it saying “I’ll be back!”?

Re: BASIC (and Horizon)

<uqts8o$1ej8q$9@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33517&group=comp.os.vms#33517

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.vms
Subject: Re: BASIC (and Horizon)
Date: Sun, 18 Feb 2024 21:19:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <uqts8o$1ej8q$9@dont-email.me>
References: <up8qmo$ima5$1@dont-email.me> <upee11$1mjib$7@dont-email.me>
<upegdc$1n0je$1@dont-email.me> <upejl0$1nkl5$1@dont-email.me>
<upervk$oam$1@reader1.panix.com> <upf4q6$1tp4r$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 18 Feb 2024 21:19:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="297432ee8be2f2c4ce47ce2a25257ed8";
logging-data="1527066"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180BAEWQhoEPG69vuG81aqq"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:/KIuHQGoWaea0JDAtyA5GgQPXT8=
 by: Lawrence D'Oliv - Sun, 18 Feb 2024 21:19 UTC

On Wed, 31 Jan 2024 22:57:47 -0500, Dave Froble wrote:

> Cars are dangerous, should we go back to horses?

Fun fact: according to drug expert David Nutt, horse-riding is about as
dangerous as taking Ecstasy.

Do horses have seatbelts and crumple zones yet?

Pages:1234
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor