Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Heuristics are bug ridden by definition. If they didn't have bugs, then they'd be algorithms.


computers / comp.os.vms / Re: VMS internals design, was: Re: BASIC and AST routines

SubjectAuthor
* VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
+* Re: VMS internals design, was: Re: BASIC and AST routinesDave Froble
|+* Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
||`* Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
|| +- Re: VMS internals design, was: Re: BASIC and AST routinesScott Dorsey
|| +* Re: VMS internals design, was: Re: BASIC and AST routinesBill Gunshannon
|| |+* Re: VMS internals design, was: Re: BASIC and AST routinesPhillip Helbig (undress to reply
|| ||+- Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
|| ||`- Re: VMS internals design, was: Re: BASIC and AST routinesDave Froble
|| |+- Re: VMS internals design, was: Re: BASIC and AST routinesDavid Goodwin
|| |+* Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
|| ||+- Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
|| ||`- Re: VMS internals design, was: Re: BASIC and AST routinesJP DEMONA
|| |`* Re: VMS internals design, was: Re: BASIC and AST routinesDave Froble
|| | `* Re: VMS internals design, was: Re: BASIC and AST routinesBill Gunshannon
|| |  +* Re: VMS internals design, was: Re: BASIC and AST routinesJan-Erik Söderholm
|| |  |`- Re: VMS internals design, was: Re: BASIC and AST routinesPhillip Helbig (undress to reply
|| |  +- Re: VMS internals design, was: Re: BASIC and AST routinesPhillip Helbig (undress to reply
|| |  `- Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
|| `* Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
||  +* Re: VMS internals design, was: Re: BASIC and AST routinesChris Townley
||  |`- Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
||  `- Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
|+- Re: VMS internals design, was: Re: BASIC and AST routinesFélim Doyle
|`* Re: VMS internals design, was: Re: BASIC and AST routinesFélim Doyle
| +* Re: VMS internals design, was: Re: BASIC and AST routinesClair Grant
| |`- Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
| `* Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
|  +* Re: VMS internals design, was: Re: BASIC and AST routinesabrsvc
|  |+- Re: VMS internals design, was: Re: BASIC and AST routinesDave Froble
|  |`* Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
|  | +* Re: VMS internals design, was: Re: BASIC and AST routinesabrsvc
|  | |+- Re: VMS internals design, was: Re: BASIC and AST routinesVAXman-
|  | |`- Re: VMS internals design, was: Re: BASIC and AST routinesGalen
|  | +* Re: VMS internals design, was: Re: BASIC and AST routinesChris Scheers
|  | |`- Re: VMS internals design, was: Re: BASIC and AST routinesStephen Hoffman
|  | `* Re: VMS internals design, was: Re: BASIC and AST routinesJohnny Billquist
|  |  `* Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
|  |   `* Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
|  |    +* Re: VMS internals design, was: Re: BASIC and AST routinesPhil Howell
|  |    |`* Re: VMS internals design, was: Re: BASIC and AST routinesStephen Hoffman
|  |    | `* Re: VMS internals design, was: Re: BASIC and AST routinesDave Froble
|  |    |  `* Re: VMS internals design, was: Re: BASIC and AST routinesStephen Hoffman
|  |    |   +* Re: VMS internals design, was: Re: BASIC and AST routinesDave Froble
|  |    |   |+* Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
|  |    |   ||`- Re: VMS internals design, was: Re: BASIC and AST routinesBob Gezelter
|  |    |   |`* Re: VMS internals design, was: Re: BASIC and AST routinesTim Sneddon
|  |    |   | +- Re: VMS internals design, was: Re: BASIC and AST routinesDave Froble
|  |    |   | `* Re: VMS internals design, was: Re: BASIC and AST routinesJohn Reagan
|  |    |   |  +* Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
|  |    |   |  |`* Re: VMS internals design, was: Re: BASIC and AST routinesDave Froble
|  |    |   |  | +- Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
|  |    |   |  | `- Re: VMS internals design, was: Re: BASIC and AST routinesBill Gunshannon
|  |    |   |  `* Re: VMS internals design, was: Re: BASIC and AST routinesDave Froble
|  |    |   |   +- Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
|  |    |   |   `- Re: VMS internals design, was: Re: BASIC and AST routinesJohn Reagan
|  |    |   `* Re: VMS internals design, was: Re: BASIC and AST routineshb
|  |    |    +- Re: VMS internals design, was: Re: BASIC and AST routinesChris Townley
|  |    |    `* Re: VMS internals design, was: Re: BASIC and AST routinesStephen Hoffman
|  |    |     `* Re: VMS internals design, was: Re: BASIC and AST routineshb
|  |    |      `- Re: VMS internals design, was: Re: BASIC and AST routinesJohn Reagan
|  |    `* Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
|  |     `- Re: VMS internals design, was: Re: BASIC and AST routinesJohnny Billquist
|  `- Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
+* Re: VMS internals design, was: Re: BASIC and AST routinesVAXman-
|+- Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
|`* Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
| `* Re: VMS internals design, was: Re: BASIC and AST routinesVAXman-
|  +* Re: VMS internals design, was: Re: BASIC and AST routinesJohnny Billquist
|  |`- Re: VMS internals design, was: Re: BASIC and AST routinesScott Dorsey
|  `- Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
+* Re: VMS internals design, was: Re: BASIC and AST routinesVAXman-
|`* Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
| +* Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
| |`* Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
| | `* Re: VMS internals design, was: Re: BASIC and AST routinesArne Vajhøj
| |  `- Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
| +* Re: VMS internals design, was: Re: BASIC and AST routinesDave Froble
| |`- Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
| +* Re: VMS internals design, was: Re: BASIC and AST routinesVAXman-
| |`* Re: VMS internals design, was: Re: BASIC and AST routinesAndrew Commons
| | `* Re: VMS internals design, was: Re: BASIC and AST routinesJohn Doppke
| |  +- Re: VMS internals design, was: Re: BASIC and AST routinesDave Froble
| |  `- Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
| `* Re: VMS internals design, was: Re: BASIC and AST routinesJohnny Billquist
|  `* Re: VMS internals design, was: Re: BASIC and AST routinesSimon Clubley
|   `- Re: VMS internals design, was: Re: BASIC and AST routineschris
`- Re: VMS internals design, was: Re: BASIC and AST routinesHunter Goatley

Pages:1234
Re: VMS internals design, was: Re: BASIC and AST routines

<250a8b43-97ff-4aa9-befa-a988ed002257n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:5ccf:: with SMTP id s15mr14836365qta.220.1638462965068;
Thu, 02 Dec 2021 08:36:05 -0800 (PST)
X-Received: by 2002:ad4:4451:: with SMTP id l17mr13899684qvt.33.1638462964833;
Thu, 02 Dec 2021 08:36:04 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 2 Dec 2021 08:36:04 -0800 (PST)
In-Reply-To: <so9b5u$5fb$1@reader1.panix.com>
Injection-Info: google-groups.googlegroups.com; posting-host=73.60.222.222; posting-account=M3IgSwoAAADJd6EnOmsrCCfB6_OyTOkv
NNTP-Posting-Host: 73.60.222.222
References: <snrda5$7td$6@dont-email.me> <f859af8a-690b-40ba-8d0e-f475d6357e2dn@googlegroups.com>
<so37g2$4ee$1@dont-email.me> <so5tkr$ja4$1@dont-email.me> <61a67fad$0$693$14726298@news.sunsite.dk>
<146629f4-b45d-4106-b167-5371c0ea04a6n@googlegroups.com> <so85o7$jjc$1@dont-email.me>
<so8j4n$rnr$1@dont-email.me> <so8jn2$vvv$1@dont-email.me> <so8mbo$kl5$1@dont-email.me>
<so9b5u$5fb$1@reader1.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <250a8b43-97ff-4aa9-befa-a988ed002257n@googlegroups.com>
Subject: Re: VMS internals design, was: Re: BASIC and AST routines
From: xyzzy1...@gmail.com (John Reagan)
Injection-Date: Thu, 02 Dec 2021 16:36:05 +0000
Content-Type: text/plain; charset="UTF-8"
 by: John Reagan - Thu, 2 Dec 2021 16:36 UTC

On Wednesday, December 1, 2021 at 9:31:29 PM UTC-5, Tim Sneddon wrote:
> Dave Froble <da...@tsoft-inc.com> wrote:
> > On 12/1/2021 2:50 PM, Stephen Hoffman wrote:
> >> On 2021-12-01 19:41:00 +0000, Dave Froble said:
> >>
> >>> On 12/1/2021 10:52 AM, Stephen Hoffman wrote:
> >>>> On 2021-12-01 02:11:19 +0000, Phil Howell said:
> >>>>
> >>>>> You are not alone in your confusion
> >>>>> See this post from a long time ago
> >>>>> https://community.hpe.com/t5/Operating-System-OpenVMS/AST-routine-and-C-language-va-count-va-start-va-end-etc/td-p/4878940#.YabUqew8arU
> >>>>>
> >>>>>
> >>>>
> >>>> I'd forgotten about that thread.
> >>>>
> >>>> What a wonderfully inconsistent trashfire ASTs are.
> >>>>
> >>>> Somebody at VSI probably now has some (more) writing to do, and some (more)
> >>>> of the existing documentation to review.
> >>>>
> >>>> And it seems some BASIC declaration somewhere for the AST API is arguably
> >>>> busted.
> >>>>
> >>>> Ah, well.
> >>>>
> >>>>
> >>>
> >>> I'm a bit afraid to ask another question. The last question I asked seemed to
> >>> start weeks of, not sure what to call it, but some of it was rather nasty.
> >>>
> >>> Oh, well, another question.
> >>>
> >>> I haven't done any research, so the question might have a simple answer.
> >>>
> >>> When as AST is specified while calling a system service, and an AST parameter
> >>> can be specified, other than following the docs, what causes me to need to
> >>> specify 5 parameters in the AST subroutine? Unless I declare the subroutine
> >>> with 5 parameters, I don't know what might enforce such a requirement.
> >>>
> >>> Ok, I really should just go and try it myself, but, I'm lazy. Anyone have a
> >>> simple answer?
> >>
> >> I usually declare the subroutine with one argument for an AST routine, and
> >> that's the context pointer. That's worked in C and C++ for an aeon or three.
> >>
> >> Though whether it breaks with x86-64 port?
> >>
> >> And I usually use a pointer to some app-local data structure, as that's where I
> >> stash the IOSB or whatever other connection-specific details are required for
> >> the AST.
> >>
> >> It's also where I stash the "unwind in progress" flag, if I'm cancelling some
> >> operation and it's unclear whether the cancel or the AST will arrive first.
> >>
> >> If that one-argument declaration is tolerated by BASIC, use it.
> >>
> >> The Linker isn't particularly sensitive to API declarations, and will probably
> >> not notice any API differences. API contract "enforcement" here is usually by
> >> app failure.
> >>
> >> Otherwise???if BASIC won't play nice with a one-argument AST declaration???specify
> >> the context pointer and whatever other four values will be tolerated by BASIC
> >> and the Linker.
> >>
> >>
> >>
> >
> > Ok, got a bit un-lazy, tried it.
> >
> > This works:
> >
> > 1 !************************************************
> > ! Timer AST Timeout Handler to Cancel I/O
> > !************************************************
> >
> > SUB TCP_TIMER( LONG CH% , &
> > LONG Z2% , &
> > LONG Z3% , &
> > LONG Z4% , &
> > LONG Z5% )
> >
> > CALL SYS$CANCEL( Loc(CH%) By Value )
> >
> > SubEnd
> >
> > This does not work:
> >
> > 1 !************************************************
> > ! Timer AST Timeout Handler to Cancel I/O
> > !************************************************
> >
> > SUB TCP_TIMER( LONG CH% )
> >
> > CALL SYS$CANCEL( Loc(CH%) By Value )
> >
> > SubEnd
> >
> > It seems to have a problem when issuing a read on an I/O channel, not when
> > invoking the QIO that specifies the AST routine.
> >
> > I'm not complaining, this was just a test. I'm a bit curious what caused the
> > error, there was no evident error code or such.
> >
> > In the debugger, there was a report of "too many arguments" or something like
> > that. I'm just guessing that at some point Basic caused some count of arguments
> > and decided that there were too many arguments for the routine as declared.
> And there is your answer...
>
> $ HELP/LIBRARY=BASICHELP RUN_TIME_ERRORS TOOMANARG
>
> RUN_TIME_ERRORS
>
> TOOMANARG
>
>
> Too many arguments (ERR=89)
>
> A function call or a SUB or FUNCTION statement passed more arguments
> than were expected. Reduce the number of arguments. A SUB or
> FUNCTION statement can pass a maximum of approximately 32 arguments:
> a function call can pass a maximum of eight arguments. This error
> cannot be trapped with a BASIC error handler.
>
> There is also an accompanying TOOFEWARG. BASIC does a lot of things to
> protect your fingers from the saw. Howeever, this is not like a blade
> guard, more like a pack up the saw in the box and send it back!
>
> Just another reason why BASIC is not one of my favourite languages...
>
> Regards, Tim.

You can suppress that run-time check (and other heavy-handed BASIC features) with

OPTION INACTIVE=SETUP

In the routine. (Don't yell at me about that ugly syntax. It makes my skin crawl too.)
I saw a reference to a /SETUP and /NOSETUP qualifier while reading the comments, but I don't see that qualifier in the compiler at all.

Re: VMS internals design, was: Re: BASIC and AST routines

<sob8s1$3hg$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: VMS internals design, was: Re: BASIC and AST routines
Date: Thu, 2 Dec 2021 15:04:17 -0500
Organization: HoffmanLabs LLC
Lines: 50
Message-ID: <sob8s1$3hg$1@dont-email.me>
References: <sno4v1$efp$1@dont-email.me> <snob8h$ea$1@dont-email.me> <8080aa0e-806d-4e2c-a371-10e975735a11n@googlegroups.com> <snrda5$7td$6@dont-email.me> <f859af8a-690b-40ba-8d0e-f475d6357e2dn@googlegroups.com> <so37g2$4ee$1@dont-email.me> <so5tkr$ja4$1@dont-email.me> <61a67fad$0$693$14726298@news.sunsite.dk> <146629f4-b45d-4106-b167-5371c0ea04a6n@googlegroups.com> <so85o7$jjc$1@dont-email.me> <so8j4n$rnr$1@dont-email.me> <so8jn2$vvv$1@dont-email.me> <so8p4t$1jgm$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="3c4a0ef148c05b6d6e30e02c5e76d97a";
logging-data="3632"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mrtlma8H/2zW3AS+1wVGCCZf+DbWbvwI="
User-Agent: Unison/2.2
Cancel-Lock: sha1:nXMDXSJWFBlVAr9ob/umPANZOrM=
 by: Stephen Hoffman - Thu, 2 Dec 2021 20:04 UTC

On 2021-12-01 21:23:41 +0000, hb said:

> On 12/1/21 8:50 PM, Stephen Hoffman wrote:
>> The Linker isn't particularly sensitive to API declarations, and will
>> probably not notice any API differences. API contract "enforcement"
>> here is usually by app failure.
>>
>> Otherwise—if BASIC won't play nice with a one-argument AST
>> declaration—specify the context pointer and whatever other four values
>> will be tolerated by BASIC and the Linker.
>
> The linker matches symbols, which represent references and definitions.
> It complains if it can't find a matching definition for a reference.
> The symbol name and the symbol type must match. That is the linker
> knows about data and routines. It will not let you define an object for
> a routine reference. That's more or less all the linker does, here.
>
> With C++ you get the API encoded in the symbol name, also known as
> "decorated" or "mangled" name. With matching such symbols the linker
> implicitly checks the API and does notice a difference, that is, it
> will print an unresolved reference warning. For example, if you call
> (or take the address of) "foo(int,int)" but only define a "foo(int)"
> you will see
>
> %ILINK-I-UDFSYM, CX3$_Z3FOOII2INROLH
> %ILINK-W-USEUNDEF, undefined symbol CX3$_Z3FOOII2INROLH referenced
> source code name: "foo(int, int)"

I'm aware of how the OpenVMS linker works here, as well as with the
OpenVMS implementation of mangling, hence my comment quoted above.

Past resolving the associated symbol—symbol resolution which would
necessarily happen with or without name mangling in use—the C and C++
name mangling doesn't involve the OpenVMS linker.

Nor does the OpenVMS linker check the APIs.

Mangling is in some ways used as a workaround for linker limits around
symbol resolution (as is used on OpenVMS), and also used as a
workaround for linker features lacking (across various languages and
compilers and linkers, including as used on OpenVMS).

Mangling is a hack, but it's the hack we have.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: VMS internals design, was: Re: BASIC and AST routines

<61a92917$0$693$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Thu, 2 Dec 2021 15:14:13 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Subject: Re: VMS internals design, was: Re: BASIC and AST routines
Content-Language: en-US
Newsgroups: comp.os.vms
References: <snrda5$7td$6@dont-email.me>
<f859af8a-690b-40ba-8d0e-f475d6357e2dn@googlegroups.com>
<so37g2$4ee$1@dont-email.me> <so5tkr$ja4$1@dont-email.me>
<61a67fad$0$693$14726298@news.sunsite.dk>
<146629f4-b45d-4106-b167-5371c0ea04a6n@googlegroups.com>
<so85o7$jjc$1@dont-email.me> <so8j4n$rnr$1@dont-email.me>
<so8jn2$vvv$1@dont-email.me> <so8mbo$kl5$1@dont-email.me>
<so9b5u$5fb$1@reader1.panix.com>
<250a8b43-97ff-4aa9-befa-a988ed002257n@googlegroups.com>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <250a8b43-97ff-4aa9-befa-a988ed002257n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 59
Message-ID: <61a92917$0$693$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: cb121def.news.sunsite.dk
X-Trace: 1638476055 news.sunsite.dk 693 arne@vajhoej.dk/68.9.63.232:54486
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Thu, 2 Dec 2021 20:14 UTC

On 12/2/2021 11:36 AM, John Reagan wrote:
> On Wednesday, December 1, 2021 at 9:31:29 PM UTC-5, Tim Sneddon wrote:
>> Dave Froble <da...@tsoft-inc.com> wrote:
>>> Ok, got a bit un-lazy, tried it.
>>>
>>> This works:
>>>
>>> 1 !************************************************
>>> ! Timer AST Timeout Handler to Cancel I/O
>>> !************************************************
>>>
>>> SUB TCP_TIMER( LONG CH% , &
>>> LONG Z2% , &
>>> LONG Z3% , &
>>> LONG Z4% , &
>>> LONG Z5% )
>>>
>>> CALL SYS$CANCEL( Loc(CH%) By Value )
>>>
>>> SubEnd
>>>
>>> This does not work:
>>>
>>> 1 !************************************************
>>> ! Timer AST Timeout Handler to Cancel I/O
>>> !************************************************
>>>
>>> SUB TCP_TIMER( LONG CH% )
>>>
>>> CALL SYS$CANCEL( Loc(CH%) By Value )
>>>
>>> SubEnd

>> $ HELP/LIBRARY=BASICHELP RUN_TIME_ERRORS TOOMANARG
>>
>> RUN_TIME_ERRORS
>>
>> TOOMANARG
>>
>> Too many arguments (ERR=89)
>>
>> A function call or a SUB or FUNCTION statement passed more arguments
>> than were expected. Reduce the number of arguments. A SUB or
>> FUNCTION statement can pass a maximum of approximately 32 arguments:
>> a function call can pass a maximum of eight arguments. This error
>> cannot be trapped with a BASIC error handler.

> You can suppress that run-time check (and other heavy-handed BASIC features) with
>
> OPTION INACTIVE=SETUP
>
> In the routine.

But Basic is correct - there are too many arguments
supplied (or too few arguments expected).

It much be better to fix that than to disable the check.

Arne

Re: VMS internals design, was: Re: BASIC and AST routines

<sobb53$jh0$1@dont-email.me>

  copy mid

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

  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: VMS internals design, was: Re: BASIC and AST routines
Date: Thu, 2 Dec 2021 15:43:04 -0500
Organization: A noiseless patient Spider
Lines: 70
Message-ID: <sobb53$jh0$1@dont-email.me>
References: <snrda5$7td$6@dont-email.me>
<f859af8a-690b-40ba-8d0e-f475d6357e2dn@googlegroups.com>
<so37g2$4ee$1@dont-email.me> <so5tkr$ja4$1@dont-email.me>
<61a67fad$0$693$14726298@news.sunsite.dk>
<146629f4-b45d-4106-b167-5371c0ea04a6n@googlegroups.com>
<so85o7$jjc$1@dont-email.me> <so8j4n$rnr$1@dont-email.me>
<so8jn2$vvv$1@dont-email.me> <so8mbo$kl5$1@dont-email.me>
<so9b5u$5fb$1@reader1.panix.com>
<250a8b43-97ff-4aa9-befa-a988ed002257n@googlegroups.com>
<61a92917$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: Thu, 2 Dec 2021 20:43:15 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="baf4ee358027237530db4c8ac0c5e460";
logging-data="20000"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184s+fc+ZrPy4wOV25HGZ2QanFm58UFYkQ="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:r4/mKeLCsph46mQ5Cri/684+Tt4=
In-Reply-To: <61a92917$0$693$14726298@news.sunsite.dk>
 by: Dave Froble - Thu, 2 Dec 2021 20:43 UTC

On 12/2/2021 3:14 PM, Arne Vajhøj wrote:
> On 12/2/2021 11:36 AM, John Reagan wrote:
>> On Wednesday, December 1, 2021 at 9:31:29 PM UTC-5, Tim Sneddon wrote:
>>> Dave Froble <da...@tsoft-inc.com> wrote:
>>>> Ok, got a bit un-lazy, tried it.
>>>>
>>>> This works:
>>>>
>>>> 1 !************************************************
>>>> ! Timer AST Timeout Handler to Cancel I/O
>>>> !************************************************
>>>>
>>>> SUB TCP_TIMER( LONG CH% , &
>>>> LONG Z2% , &
>>>> LONG Z3% , &
>>>> LONG Z4% , &
>>>> LONG Z5% )
>>>>
>>>> CALL SYS$CANCEL( Loc(CH%) By Value )
>>>>
>>>> SubEnd
>>>>
>>>> This does not work:
>>>>
>>>> 1 !************************************************
>>>> ! Timer AST Timeout Handler to Cancel I/O
>>>> !************************************************
>>>>
>>>> SUB TCP_TIMER( LONG CH% )
>>>>
>>>> CALL SYS$CANCEL( Loc(CH%) By Value )
>>>>
>>>> SubEnd
>
>>> $ HELP/LIBRARY=BASICHELP RUN_TIME_ERRORS TOOMANARG
>>>
>>> RUN_TIME_ERRORS
>>>
>>> TOOMANARG
>>>
>>> Too many arguments (ERR=89)
>>>
>>> A function call or a SUB or FUNCTION statement passed more arguments
>>> than were expected. Reduce the number of arguments. A SUB or
>>> FUNCTION statement can pass a maximum of approximately 32 arguments:
>>> a function call can pass a maximum of eight arguments. This error
>>> cannot be trapped with a BASIC error handler.
>
>> You can suppress that run-time check (and other heavy-handed BASIC features) with
>>
>> OPTION INACTIVE=SETUP
>>
>> In the routine.
>
> But Basic is correct - there are too many arguments
> supplied (or too few arguments expected).
>
> It much be better to fix that than to disable the check.
>
> Arne

You going to advocate "fixing" that "lack of argument count check" in C and
other languages too?

--
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: VMS internals design, was: Re: BASIC and AST routines

<sobb9q$jh0$2@dont-email.me>

  copy mid

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

  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: VMS internals design, was: Re: BASIC and AST routines
Date: Thu, 2 Dec 2021 15:45:36 -0500
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <sobb9q$jh0$2@dont-email.me>
References: <snrda5$7td$6@dont-email.me>
<f859af8a-690b-40ba-8d0e-f475d6357e2dn@googlegroups.com>
<so37g2$4ee$1@dont-email.me> <so5tkr$ja4$1@dont-email.me>
<61a67fad$0$693$14726298@news.sunsite.dk>
<146629f4-b45d-4106-b167-5371c0ea04a6n@googlegroups.com>
<so85o7$jjc$1@dont-email.me> <so8j4n$rnr$1@dont-email.me>
<so8jn2$vvv$1@dont-email.me> <so8mbo$kl5$1@dont-email.me>
<so9b5u$5fb$1@reader1.panix.com>
<250a8b43-97ff-4aa9-befa-a988ed002257n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 2 Dec 2021 20:45:46 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="baf4ee358027237530db4c8ac0c5e460";
logging-data="20000"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/f+Fy9hAtDNONOWMQc4bW9+TkNIn2E6wI="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:6gHwFfPlma/EZATSJ0Qn8GEDA+s=
In-Reply-To: <250a8b43-97ff-4aa9-befa-a988ed002257n@googlegroups.com>
 by: Dave Froble - Thu, 2 Dec 2021 20:45 UTC

On 12/2/2021 11:36 AM, John Reagan wrote:

> You can suppress that run-time check (and other heavy-handed BASIC features) with
>
> OPTION INACTIVE=SETUP

Awesome John. But I have to ask, is there any documentation of all the compiler
options such as that? Maybe I should just RTFM ? Nah, what's the fun in that?

> In the routine. (Don't yell at me about that ugly syntax. It makes my skin crawl too.)
> I saw a reference to a /SETUP and /NOSETUP qualifier while reading the comments, but I don't see that qualifier in the compiler at all.
>

--
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: VMS internals design, was: Re: BASIC and AST routines

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

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Thu, 2 Dec 2021 15:55:52 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Subject: Re: VMS internals design, was: Re: BASIC and AST routines
Content-Language: en-US
Newsgroups: comp.os.vms
References: <snrda5$7td$6@dont-email.me>
<f859af8a-690b-40ba-8d0e-f475d6357e2dn@googlegroups.com>
<so37g2$4ee$1@dont-email.me> <so5tkr$ja4$1@dont-email.me>
<61a67fad$0$693$14726298@news.sunsite.dk>
<146629f4-b45d-4106-b167-5371c0ea04a6n@googlegroups.com>
<so85o7$jjc$1@dont-email.me> <so8j4n$rnr$1@dont-email.me>
<so8jn2$vvv$1@dont-email.me> <so8mbo$kl5$1@dont-email.me>
<so9b5u$5fb$1@reader1.panix.com>
<250a8b43-97ff-4aa9-befa-a988ed002257n@googlegroups.com>
<61a92917$0$693$14726298@news.sunsite.dk> <sobb53$jh0$1@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <sobb53$jh0$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 32
Message-ID: <61a932df$0$705$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: cb121def.news.sunsite.dk
X-Trace: 1638478559 news.sunsite.dk 705 arne@vajhoej.dk/68.9.63.232:57145
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Thu, 2 Dec 2021 20:55 UTC

On 12/2/2021 3:43 PM, Dave Froble wrote:
> On 12/2/2021 3:14 PM, Arne Vajhøj wrote:
>> On 12/2/2021 11:36 AM, John Reagan wrote:
>>> You can suppress that run-time check (and other heavy-handed BASIC
>>> features) with
>>>
>>> OPTION INACTIVE=SETUP
>>>
>>> In the routine.
>>
>> But Basic is correct - there are too many arguments
>> supplied (or too few arguments expected).
>>
>> It much be better to fix that than to disable the check.
>
> You going to advocate "fixing" that "lack of argument count check" in C
> and other languages too?

I would not advocate changing C, but I would advocate not using
C unless one really needs the low level features.

C is a great language for code that 40 years ago would have been
written in Macro-32. It is a poor language for code that 40 years
ago would have been written in Pascal, Ada or Basic.

Unfortunately the dominance of C API's for native code are often
forcing the usage of C.

Arne

Re: VMS internals design, was: Re: BASIC and AST routines

<61a933b4$0$702$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Thu, 2 Dec 2021 15:59:25 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Subject: Re: VMS internals design, was: Re: BASIC and AST routines
Content-Language: en-US
Newsgroups: comp.os.vms
References: <snrda5$7td$6@dont-email.me>
<f859af8a-690b-40ba-8d0e-f475d6357e2dn@googlegroups.com>
<so37g2$4ee$1@dont-email.me> <so5tkr$ja4$1@dont-email.me>
<61a67fad$0$693$14726298@news.sunsite.dk>
<146629f4-b45d-4106-b167-5371c0ea04a6n@googlegroups.com>
<so85o7$jjc$1@dont-email.me> <so8j4n$rnr$1@dont-email.me>
<so8jn2$vvv$1@dont-email.me> <so8mbo$kl5$1@dont-email.me>
<so9b5u$5fb$1@reader1.panix.com>
<250a8b43-97ff-4aa9-befa-a988ed002257n@googlegroups.com>
<sobb9q$jh0$2@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <sobb9q$jh0$2@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 21
Message-ID: <61a933b4$0$702$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: cb121def.news.sunsite.dk
X-Trace: 1638478772 news.sunsite.dk 702 arne@vajhoej.dk/68.9.63.232:57291
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Thu, 2 Dec 2021 20:59 UTC

On 12/2/2021 3:45 PM, Dave Froble wrote:
> On 12/2/2021 11:36 AM, John Reagan wrote:
>> You can suppress that run-time check (and other heavy-handed BASIC
>> features) with
>>
>> OPTION INACTIVE=SETUP
>
> Awesome John.  But I have to ask, is there any documentation of all the
> compiler options such as that?  Maybe I should just RTFM ?  Nah, what's
> the fun in that?

The FM called "Basic Reference Manual" lists:

INTEGER OVERFLOW
DECIMAL OVERFLOW
SETUP
DECIMAL ROUNDING
SUBSCRIPT CHECKING

Arne

Re: VMS internals design, was: Re: BASIC and AST routines

<j0srk6FajahU1@mid.individual.net>

  copy mid

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

  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: VMS internals design, was: Re: BASIC and AST routines
Date: Thu, 2 Dec 2021 16:20:06 -0500
Lines: 71
Message-ID: <j0srk6FajahU1@mid.individual.net>
References: <snrda5$7td$6@dont-email.me>
<f859af8a-690b-40ba-8d0e-f475d6357e2dn@googlegroups.com>
<so37g2$4ee$1@dont-email.me> <so5tkr$ja4$1@dont-email.me>
<61a67fad$0$693$14726298@news.sunsite.dk>
<146629f4-b45d-4106-b167-5371c0ea04a6n@googlegroups.com>
<so85o7$jjc$1@dont-email.me> <so8j4n$rnr$1@dont-email.me>
<so8jn2$vvv$1@dont-email.me> <so8mbo$kl5$1@dont-email.me>
<so9b5u$5fb$1@reader1.panix.com>
<250a8b43-97ff-4aa9-befa-a988ed002257n@googlegroups.com>
<61a92917$0$693$14726298@news.sunsite.dk> <sobb53$jh0$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net yWKcKPkysjjvmZyrgCN7bAcdpODa9b0Z2Zgj//HdL/10gZRCMU
Cancel-Lock: sha1:N26Z8ZQIOPT+BhIJQnXTwqBW4mg=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
In-Reply-To: <sobb53$jh0$1@dont-email.me>
Content-Language: en-US
 by: Bill Gunshannon - Thu, 2 Dec 2021 21:20 UTC

On 12/2/21 3:43 PM, Dave Froble wrote:
> On 12/2/2021 3:14 PM, Arne Vajhøj wrote:
>> On 12/2/2021 11:36 AM, John Reagan wrote:
>>> On Wednesday, December 1, 2021 at 9:31:29 PM UTC-5, Tim Sneddon wrote:
>>>> Dave Froble <da...@tsoft-inc.com> wrote:
>>>>> Ok, got a bit un-lazy, tried it.
>>>>>
>>>>> This works:
>>>>>
>>>>> 1 !************************************************
>>>>> ! Timer AST Timeout Handler to Cancel I/O
>>>>> !************************************************
>>>>>
>>>>> SUB TCP_TIMER( LONG CH% , &
>>>>> LONG Z2% , &
>>>>> LONG Z3% , &
>>>>> LONG Z4% , &
>>>>> LONG Z5% )
>>>>>
>>>>> CALL SYS$CANCEL( Loc(CH%) By Value )
>>>>>
>>>>> SubEnd
>>>>>
>>>>> This does not work:
>>>>>
>>>>> 1 !************************************************
>>>>> ! Timer AST Timeout Handler to Cancel I/O
>>>>> !************************************************
>>>>>
>>>>> SUB TCP_TIMER( LONG CH% )
>>>>>
>>>>> CALL SYS$CANCEL( Loc(CH%) By Value )
>>>>>
>>>>> SubEnd
>>
>>>> $ HELP/LIBRARY=BASICHELP RUN_TIME_ERRORS TOOMANARG
>>>>
>>>> RUN_TIME_ERRORS
>>>>
>>>> TOOMANARG
>>>>
>>>> Too many arguments (ERR=89)
>>>>
>>>> A function call or a SUB or FUNCTION statement passed more arguments
>>>> than were expected. Reduce the number of arguments. A SUB or
>>>> FUNCTION statement can pass a maximum of approximately 32 arguments:
>>>> a function call can pass a maximum of eight arguments. This error
>>>> cannot be trapped with a BASIC error handler.
>>
>>> You can suppress that run-time check (and other heavy-handed BASIC
>>> features) with
>>>
>>> OPTION INACTIVE=SETUP
>>>
>>> In the routine.
>>
>> But Basic is correct - there are too many arguments
>> supplied (or too few arguments expected).
>>
>> It much be better to fix that than to disable the check.
>>
>> Arne
>
> You going to advocate "fixing" that "lack of argument count check" in C
> and other languages too?
>

They did fix it in C. They called it C++. :-)

bill

Re: VMS internals design, was: Re: BASIC and AST routines

<a35d6e37-a7ad-491d-bc7d-a691c7739a51n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a37:8d86:: with SMTP id p128mr14386112qkd.706.1638481488050;
Thu, 02 Dec 2021 13:44:48 -0800 (PST)
X-Received: by 2002:a05:622a:49:: with SMTP id y9mr16546604qtw.529.1638481487834;
Thu, 02 Dec 2021 13:44:47 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 2 Dec 2021 13:44:47 -0800 (PST)
In-Reply-To: <sobb9q$jh0$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=73.60.222.222; posting-account=M3IgSwoAAADJd6EnOmsrCCfB6_OyTOkv
NNTP-Posting-Host: 73.60.222.222
References: <snrda5$7td$6@dont-email.me> <f859af8a-690b-40ba-8d0e-f475d6357e2dn@googlegroups.com>
<so37g2$4ee$1@dont-email.me> <so5tkr$ja4$1@dont-email.me> <61a67fad$0$693$14726298@news.sunsite.dk>
<146629f4-b45d-4106-b167-5371c0ea04a6n@googlegroups.com> <so85o7$jjc$1@dont-email.me>
<so8j4n$rnr$1@dont-email.me> <so8jn2$vvv$1@dont-email.me> <so8mbo$kl5$1@dont-email.me>
<so9b5u$5fb$1@reader1.panix.com> <250a8b43-97ff-4aa9-befa-a988ed002257n@googlegroups.com>
<sobb9q$jh0$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a35d6e37-a7ad-491d-bc7d-a691c7739a51n@googlegroups.com>
Subject: Re: VMS internals design, was: Re: BASIC and AST routines
From: xyzzy1...@gmail.com (John Reagan)
Injection-Date: Thu, 02 Dec 2021 21:44:48 +0000
Content-Type: text/plain; charset="UTF-8"
 by: John Reagan - Thu, 2 Dec 2021 21:44 UTC

On Thursday, December 2, 2021 at 3:45:49 PM UTC-5, Dave Froble wrote:
> On 12/2/2021 11:36 AM, John Reagan wrote:
> > You can suppress that run-time check (and other heavy-handed BASIC features) with
> >
> > OPTION INACTIVE=SETUP
> Awesome John. But I have to ask, is there any documentation of all the compiler
> options such as that? Maybe I should just RTFM ? Nah, what's the fun in that?
> > In the routine. (Don't yell at me about that ugly syntax. It makes my skin crawl too.)
> > I saw a reference to a /SETUP and /NOSETUP qualifier while reading the comments, but I don't see that qualifier in the compiler at all.
> >
> --
> David Froble Tel: 724-529-0450
> Dave Froble Enterprises, Inc. E-Mail: da...@tsoft-inc.com
> DFE Ultralights, Inc.
> 170 Grimplin Road
> Vanderbilt, PA 15486
Yep, RTFM.

https://docs.vmssoftware.com/vsi-basic-for-openvms-reference-manual/#d0e26113

Re: VMS internals design, was: Re: BASIC and AST routines

<53388c0c-389e-4fd7-9950-93dae7954c9cn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:301:: with SMTP id s1mr15062097qkm.771.1638490691777;
Thu, 02 Dec 2021 16:18:11 -0800 (PST)
X-Received: by 2002:ac8:610b:: with SMTP id a11mr17261056qtm.182.1638490691629;
Thu, 02 Dec 2021 16:18:11 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 2 Dec 2021 16:18:11 -0800 (PST)
In-Reply-To: <61a7df05$0$703$14726298@news.sunsite.dk>
Injection-Info: google-groups.googlegroups.com; posting-host=100.2.113.217; posting-account=r2_qcwoAAACbIdit5Eka3ivGvrYZz7UQ
NNTP-Posting-Host: 100.2.113.217
References: <snrda5$7td$6@dont-email.me> <f859af8a-690b-40ba-8d0e-f475d6357e2dn@googlegroups.com>
<so37g2$4ee$1@dont-email.me> <so5tkr$ja4$1@dont-email.me> <61a67fad$0$693$14726298@news.sunsite.dk>
<146629f4-b45d-4106-b167-5371c0ea04a6n@googlegroups.com> <so85o7$jjc$1@dont-email.me>
<so8j4n$rnr$1@dont-email.me> <so8jn2$vvv$1@dont-email.me> <so8mbo$kl5$1@dont-email.me>
<61a7df05$0$703$14726298@news.sunsite.dk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <53388c0c-389e-4fd7-9950-93dae7954c9cn@googlegroups.com>
Subject: Re: VMS internals design, was: Re: BASIC and AST routines
From: gezel...@rlgsc.com (Bob Gezelter)
Injection-Date: Fri, 03 Dec 2021 00:18:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 71
 by: Bob Gezelter - Fri, 3 Dec 2021 00:18 UTC

On Wednesday, December 1, 2021 at 3:46:00 PM UTC-5, Arne Vajhøj wrote:
> On 12/1/2021 3:35 PM, Dave Froble wrote:
> > Ok, got a bit un-lazy, tried it.
> >
> > This works:
> >
> > 1 !************************************************
> > ! Timer AST Timeout Handler to Cancel I/O
> > !************************************************
> >
> > SUB TCP_TIMER( LONG CH% , &
> > LONG Z2% , &
> > LONG Z3% , &
> > LONG Z4% , &
> > LONG Z5% )
> >
> > CALL SYS$CANCEL( Loc(CH%) By Value )
> >
> > SubEnd
> >
> > This does not work:
> >
> > 1 !************************************************
> > ! Timer AST Timeout Handler to Cancel I/O
> > !************************************************
> >
> > SUB TCP_TIMER( LONG CH% )
> >
> > CALL SYS$CANCEL( Loc(CH%) By Value )
> >
> > SubEnd
> >
> > It seems to have a problem when issuing a read on an I/O channel, not
> > when invoking the QIO that specifies the AST routine.
> >
> > I'm not complaining, this was just a test. I'm a bit curious what
> > caused the error, there was no evident error code or such.
> >
> > In the debugger, there was a report of "too many arguments" or something
> > like that. I'm just guessing that at some point Basic caused some count
> > of arguments and decided that there were too many arguments for the
> > routine as declared.
> >
> > I hate it when the computer thinks it's smarter than me. Of course that
> > bar isn't too high.
> >
> > :-)
> Basic is different from some more low level languages.
>
> But I don't see a problem with Basic here.
>
> The AST function is being called with 5 arguments and
> the AST function is declared to receive 1 argument, so
> something in the generated code does not like it.
>
> Seems perfectly fair to me.
>
> Obviously the documentation should be very clear
> about the 5 arguments.
>
> Arne
Arne,

I know this problem. Encountered it at a client.

BASIC checks the parameter count. Done. C and others do not .

- Bob Gezelter, http://www.rlgsc.com

Re: VMS internals design, was: Re: BASIC and AST routines

<socq70$14sh$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!Ond6DMMzuhpS097dWGGqXA.user.46.165.242.91.POSTED!not-for-mail
From: end...@inter.net (hb)
Newsgroups: comp.os.vms
Subject: Re: VMS internals design, was: Re: BASIC and AST routines
Date: Fri, 3 Dec 2021 11:06:23 +0100
Organization: Aioe.org NNTP Server
Message-ID: <socq70$14sh$1@gioia.aioe.org>
References: <sno4v1$efp$1@dont-email.me> <snob8h$ea$1@dont-email.me>
<8080aa0e-806d-4e2c-a371-10e975735a11n@googlegroups.com>
<snrda5$7td$6@dont-email.me>
<f859af8a-690b-40ba-8d0e-f475d6357e2dn@googlegroups.com>
<so37g2$4ee$1@dont-email.me> <so5tkr$ja4$1@dont-email.me>
<61a67fad$0$693$14726298@news.sunsite.dk>
<146629f4-b45d-4106-b167-5371c0ea04a6n@googlegroups.com>
<so85o7$jjc$1@dont-email.me> <so8j4n$rnr$1@dont-email.me>
<so8jn2$vvv$1@dont-email.me> <so8p4t$1jgm$1@gioia.aioe.org>
<sob8s1$3hg$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="37777"; posting-host="Ond6DMMzuhpS097dWGGqXA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: hb - Fri, 3 Dec 2021 10:06 UTC

On 12/2/21 9:04 PM, Stephen Hoffman wrote:
> Mangling is in some ways used as a workaround for linker limits around
> symbol resolution (as is used on OpenVMS), ...

If you refer to the length of the symbol name, there is no limit in the
current VMS linker other than the amount of memory available to the
linker when linking the image. If you refer to another limit or to the
VAX and Alpha linker, let us know.

Re: VMS internals design, was: Re: BASIC and AST routines

<ebd56ffa-6943-4c2f-9ac0-71c4d59948fdn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ae9:edd3:: with SMTP id c202mr18248416qkg.274.1638546733511; Fri, 03 Dec 2021 07:52:13 -0800 (PST)
X-Received: by 2002:a05:6214:23cc:: with SMTP id hr12mr19574249qvb.66.1638546733305; Fri, 03 Dec 2021 07:52:13 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Fri, 3 Dec 2021 07:52:13 -0800 (PST)
In-Reply-To: <socq70$14sh$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=73.60.222.222; posting-account=M3IgSwoAAADJd6EnOmsrCCfB6_OyTOkv
NNTP-Posting-Host: 73.60.222.222
References: <sno4v1$efp$1@dont-email.me> <snob8h$ea$1@dont-email.me> <8080aa0e-806d-4e2c-a371-10e975735a11n@googlegroups.com> <snrda5$7td$6@dont-email.me> <f859af8a-690b-40ba-8d0e-f475d6357e2dn@googlegroups.com> <so37g2$4ee$1@dont-email.me> <so5tkr$ja4$1@dont-email.me> <61a67fad$0$693$14726298@news.sunsite.dk> <146629f4-b45d-4106-b167-5371c0ea04a6n@googlegroups.com> <so85o7$jjc$1@dont-email.me> <so8j4n$rnr$1@dont-email.me> <so8jn2$vvv$1@dont-email.me> <so8p4t$1jgm$1@gioia.aioe.org> <sob8s1$3hg$1@dont-email.me> <socq70$14sh$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ebd56ffa-6943-4c2f-9ac0-71c4d59948fdn@googlegroups.com>
Subject: Re: VMS internals design, was: Re: BASIC and AST routines
From: xyzzy1...@gmail.com (John Reagan)
Injection-Date: Fri, 03 Dec 2021 15:52:13 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 11
 by: John Reagan - Fri, 3 Dec 2021 15:52 UTC

On Friday, December 3, 2021 at 5:06:27 AM UTC-5, hb wrote:
> On 12/2/21 9:04 PM, Stephen Hoffman wrote:
> > Mangling is in some ways used as a workaround for linker limits around
> > symbol resolution (as is used on OpenVMS), ...
>
> If you refer to the length of the symbol name, there is no limit in the
> current VMS linker other than the amount of memory available to the
> linker when linking the image. If you refer to another limit or to the
> VAX and Alpha linker, let us know.
On the other hand, the librarian does have some length limits but the max/default is 1024.

Almost all of the imposed limits are in the compiler dating back to the days of the VAX linker and the Alpha linker.

Re: VMS internals design, was: Re: BASIC and AST routines

<54e7c52d-78bf-419a-bbf2-f068e1086c5cn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:600c:154f:b0:37b:c5cf:40e8 with SMTP id f15-20020a05600c154f00b0037bc5cf40e8mr2986855wmg.27.1645039725234;
Wed, 16 Feb 2022 11:28:45 -0800 (PST)
X-Received: by 2002:ac8:58d5:0:b0:2d4:9a1e:b646 with SMTP id
u21-20020ac858d5000000b002d49a1eb646mr3159960qta.298.1645039725002; Wed, 16
Feb 2022 11:28:45 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.88.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Wed, 16 Feb 2022 11:28:44 -0800 (PST)
In-Reply-To: <61a00913$0$705$14726298@news.sunsite.dk>
Injection-Info: google-groups.googlegroups.com; posting-host=97.77.192.70; posting-account=UdvHQwoAAAB4409BkBsDrjbZXmbW7Opp
NNTP-Posting-Host: 97.77.192.70
References: <sno4v1$efp$1@dont-email.me> <snob8h$ea$1@dont-email.me>
<snokdr$2sp$1@dont-email.me> <619fe1fe$0$696$14726298@news.sunsite.dk>
<j0ac3aFojqmU1@mid.individual.net> <61a00913$0$705$14726298@news.sunsite.dk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <54e7c52d-78bf-419a-bbf2-f068e1086c5cn@googlegroups.com>
Subject: Re: VMS internals design, was: Re: BASIC and AST routines
From: jonpower...@gmail.com (JP DEMONA)
Injection-Date: Wed, 16 Feb 2022 19:28:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: JP DEMONA - Wed, 16 Feb 2022 19:28 UTC

No DEC language is EASY to migrate.
in 1M lines of VMS COBOL there will be (generally) 120,000 individual instances that need to be remediated either manually or automatically.
just count how many BY DESCRIPTORS there are your code and that doesn't even scratch the surface.
for PASCAL we had to wrote a DEC PASCAL to C++ converter - does a great job - no other option.
for BASIC we wrote a VAX BASIC to C translator.
for FORTRAN we have FORTRAN partner which is a mil spec VMS FORTRAN to ifort translator - yes - fort is very DEC compatible but dropped many of theold VMS "things" - like initialized common blocks - can have multipack on VMS - only 1 on linux.
Even DEC C in large quanties can be a real pain the the ass - &0, &sizeof, fopen extended to use rms extensions.
we have a DEC COBOL to Fujitsu COBOL / MF COBOL translator - and it earns every penny
Generally - you can assume that every large DEC 3GL application (1M to 2M LOC) will have 100K+ code modifications to even compile on an ANSI 3GL.
C++ is obviously the easiest - but not immune to DEC isms (you can printf a "string" class)
DEC C - depending on age - can quickly become a quagmire - and we wrote a DEC C to ANSI C converter.

/Jon

On Thursday, November 25, 2021 at 4:07:17 PM UTC-6, Arne Vajhøj wrote:
> On 11/25/2021 4:04 PM, Bill Gunshannon wrote:
> > On 11/25/21 2:20 PM, Arne Vajhøj wrote:
> >> Those running VMS today are mostly those without an easy way off
> >> VMS.
> >
> > I would really like to know what people could be running on
> > VMS on an Itanic that would be so difficult to move to a
> > totally different system. Any applications are almost
> > guaranteed to be written in an HLL. Just what is it that
> > they are doing on VMS that can not be done on another
> > system?
> It can be done on another OS.
>
> But the cost and risk migrating can be significant.
>
> VMS specific language extensions, SYS$ and LIB$ calls,
> reliance on special features in Rdb or index-sequential
> files not available in other RDBMS or ISAM, huge amount
> of DCL scripts, Macro-32 pieces etc.etc..
>
> A thousand easily solvable problems can when combined
> be a very problematic cost and risk (risk may very
> well be considered a bigger problem than cost).
>
> It obviously depend on how the code is written. Some
> C or Cobol programs may be pretty easy to migrate.
> Most Pascal and Basic programs would be a rewrite from
> scratch to migrate.
>
> Arne

Pages:1234
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor