Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Turn on, tune up, rock out." -- Billy Gibbons


computers / comp.os.vms / Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar

SubjectAuthor
* ChatGPT - Joke about OpenVMS and Linux walking into a barSlo
`* Re: ChatGPT - Joke about OpenVMS and Linux walking into a barSlo
 +* Re: ChatGPT - Joke about OpenVMS and Linux walking into a barSimon Clubley
 |`* Re: ChatGPT - Joke about OpenVMS and Linux walking into a barSlo
 | `* Re: ChatGPT - Joke about OpenVMS and Linux walking into a barSlo
 |  +- Re: ChatGPT - Joke about OpenVMS and Linux walking into a barArne Vajhøj
 |  `* Re: ChatGPT - Joke about OpenVMS and Linux walking into a barDave Froble
 |   `* Re: ChatGPT - Joke about OpenVMS and Linux walking into a barJohnny Billquist
 |    `- Re: ChatGPT - Joke about OpenVMS and Linux walking into a barArne Vajhøj
 `* Re: ChatGPT - Joke about OpenVMS and Linux walking into a barArne Vajhøj
  `- Re: ChatGPT - Joke about OpenVMS and Linux walking into a barPhillip Helbig (undress to reply

1
ChatGPT - Joke about OpenVMS and Linux walking into a bar

<931afc3b-ed68-4d9d-a3e1-c2c1c9a80a66n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ad4:5002:0:b0:4c7:91ae:7458 with SMTP id s2-20020ad45002000000b004c791ae7458mr1775574qvo.51.1672512107080;
Sat, 31 Dec 2022 10:41:47 -0800 (PST)
X-Received: by 2002:ac8:53c7:0:b0:3a7:ee95:a5c5 with SMTP id
c7-20020ac853c7000000b003a7ee95a5c5mr1599684qtq.89.1672512106799; Sat, 31 Dec
2022 10:41:46 -0800 (PST)
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: Sat, 31 Dec 2022 10:41:46 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:e0a:b03:4c80:e836:8d86:e984:c878;
posting-account=8lr06goAAABywL0WFRfF7Hu_shXozcZn
NNTP-Posting-Host: 2a01:e0a:b03:4c80:e836:8d86:e984:c878
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <931afc3b-ed68-4d9d-a3e1-c2c1c9a80a66n@googlegroups.com>
Subject: ChatGPT - Joke about OpenVMS and Linux walking into a bar
From: slo...@gmail.com (Slo)
Injection-Date: Sat, 31 Dec 2022 18:41:47 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3060
 by: Slo - Sat, 31 Dec 2022 18:41 UTC

1. Two operating systems, OpenVMS and Linux, walk into a bar.
The bartender looks up and says, "What can I get you?"
OpenVMS says, "I'll have a VMSCoffee, please."
Linux says, "I'll have a LinuxLatte."
The bartender pauses for a moment and then says, "I'm sorry, but I don't think I've heard of those drinks before. What are they?"
OpenVMS says, "Oh, VMSCoffee is a rich, robust blend of legacy code and modern features. It's been around for decades and has a loyal following."
Linux says, "LinuxLatte is a light, open-source coffee with endless customization options. It's a newer option, but it's gaining popularity quickly."
The bartender nods and says, "Well, I'll see what I can do. But I have to warn you, I'm not sure I know how to make either of those."
OpenVMS and Linux just laugh and say, "Don't worry, we'll help you out. We're both pretty good at adapting to new environments."

2. OpenVMS and Linux walk into a bar, and the bartender looks at them and says "What can I get for you guys?"
OpenVMS says "I'll have a whiskey neat, please."
Linux says "I'll have a whiskey neat too, but I'll also need a virtual machine to run it on."
The bartender looks at them and says "Well, I can't really give you a virtual machine, but I can give you a separate glass to put your whiskey in."
OpenVMS looks at Linux and says "Well, at least I don't have to worry about compatibility issues."

3. OpenVMS and Linux walk into a bar. The bartender asks, "What can I get for you guys?"
OpenVMS says, "I'll have a whiskey neat, please."
Linux says, "I'll have a vodka neat, please."
The bartender asks, "So, what brings you two together?"
OpenVMS says, "Oh, we're just trying to get away from all the updates and patches on Windows."
Linux says, "Yeah, me too. I'm sick of always being told to 'apt-get upgrade'."
The bartender says, "Well, you've come to the right place. We don't have any updates or patches here."
OpenVMS and Linux both sigh in relief and say, "Ahh, finally some peace and stability."

Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar

<ec056f8e-2607-495e-8fa7-48e8ec0bbddfn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:368d:b0:4c6:a05d:f67e with SMTP id nl13-20020a056214368d00b004c6a05df67emr1715311qvb.4.1672512355262;
Sat, 31 Dec 2022 10:45:55 -0800 (PST)
X-Received: by 2002:ac8:540a:0:b0:3a7:e838:11d3 with SMTP id
b10-20020ac8540a000000b003a7e83811d3mr1417933qtq.634.1672512354967; Sat, 31
Dec 2022 10:45:54 -0800 (PST)
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: Sat, 31 Dec 2022 10:45:54 -0800 (PST)
In-Reply-To: <931afc3b-ed68-4d9d-a3e1-c2c1c9a80a66n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:e0a:b03:4c80:e836:8d86:e984:c878;
posting-account=8lr06goAAABywL0WFRfF7Hu_shXozcZn
NNTP-Posting-Host: 2a01:e0a:b03:4c80:e836:8d86:e984:c878
References: <931afc3b-ed68-4d9d-a3e1-c2c1c9a80a66n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ec056f8e-2607-495e-8fa7-48e8ec0bbddfn@googlegroups.com>
Subject: Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar
From: slo...@gmail.com (Slo)
Injection-Date: Sat, 31 Dec 2022 18:45:55 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1702
 by: Slo - Sat, 31 Dec 2022 18:45 UTC

> Code a DCL procedure to add the first 20 integers, then mail it to vms@vsi.com

$! This DCL procedure adds the first 20 integers and sends the result to vms@vsi.com
$! Declare variables
$ integer = 0
$ sum = 0
$! Loop through the first 20 integers and add them to the sum
$ do i = 1, 20
$ sum = sum + i
$ enddo
$! Use the MAIL command to send the result to vms@vsi.com
$ mail/subject="Sum of the first 20 integers" vms@vsi.com "The sum of the first 20 integers is: " sum
$! End the procedure
$ exit

Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar

<toq6ls$13oom$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar
Date: Sat, 31 Dec 2022 20:39:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <toq6ls$13oom$2@dont-email.me>
References: <931afc3b-ed68-4d9d-a3e1-c2c1c9a80a66n@googlegroups.com> <ec056f8e-2607-495e-8fa7-48e8ec0bbddfn@googlegroups.com>
Injection-Date: Sat, 31 Dec 2022 20:39:25 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="3a2a15e2a37c3d8ac5017a4aade6086a";
logging-data="1172246"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Hi2qjQuScgLm5rI/T34iBl8be55UL7vM="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:RT6R5jnotSy6liyXb7uGx7AcvoE=
 by: Simon Clubley - Sat, 31 Dec 2022 20:39 UTC

On 2022-12-31, Slo <slovuj@gmail.com> wrote:
>> Code a DCL procedure to add the first 20 integers, then mail it to vms@vsi.com
>
> $! This DCL procedure adds the first 20 integers and sends the result to vms@vsi.com
> $! Declare variables
> $ integer = 0
> $ sum = 0
> $! Loop through the first 20 integers and add them to the sum
> $ do i = 1, 20
> $ sum = sum + i
> $ enddo

Oh, I wish. :-) Oh, I really, really, wish. :-)

I wonder where it got that from ?

A suggestion: try asking it to do something with associative arrays in
DCL and see what it comes up with. :-)

> $! Use the MAIL command to send the result to vms@vsi.com
> $ mail/subject="Sum of the first 20 integers" vms@vsi.com "The sum of the first 20 integers is: " sum
> $! End the procedure
> $ exit

Simon.

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

Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar

<toq7tc$1af6$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar
Date: Sat, 31 Dec 2022 16:00:24 -0500
Organization: Aioe.org NNTP Server
Message-ID: <toq7tc$1af6$1@gioia.aioe.org>
References: <931afc3b-ed68-4d9d-a3e1-c2c1c9a80a66n@googlegroups.com>
<ec056f8e-2607-495e-8fa7-48e8ec0bbddfn@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="43494"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Arne Vajhøj - Sat, 31 Dec 2022 21:00 UTC

On 12/31/2022 1:45 PM, Slo wrote:
>> Code a DCL procedure to add the first 20 integers, then mail it to vms@vsi.com
>
> $! This DCL procedure adds the first 20 integers and sends the result to vms@vsi.com
> $! Declare variables
> $ integer = 0
> $ sum = 0
> $! Loop through the first 20 integers and add them to the sum
> $ do i = 1, 20
> $ sum = sum + i
> $ enddo
> $! Use the MAIL command to send the result to vms@vsi.com
> $ mail/subject="Sum of the first 20 integers" vms@vsi.com "The sum of the first 20 integers is: " sum
> $! End the procedure
> $ exit

ChatGPT is not good at DCL.

My suggestion for the task:

$ sum = 0
$ i = 1
$ loop:
$ if i .gt. 20 then goto endloop
$ sum = sum + i
$ i = i + 1
$ goto loop
$ endloop:
$ fnm = f$unique() + ".txt"
$ open/write f 'fnm'
$ write f sum
$ close f
$ mail 'fnm' "SMTP%""vms@vsi.com"""
$ del 'fnm';*
$ exit

Arne

Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar

<867ac75e-33d1-49da-b8db-26eac269d795n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a0c:f1cf:0:b0:4c7:9c7:e6a9 with SMTP id u15-20020a0cf1cf000000b004c709c7e6a9mr1723343qvl.96.1672520613789;
Sat, 31 Dec 2022 13:03:33 -0800 (PST)
X-Received: by 2002:a05:620a:800e:b0:6ff:924d:1e25 with SMTP id
ee14-20020a05620a800e00b006ff924d1e25mr1892536qkb.657.1672520613525; Sat, 31
Dec 2022 13:03:33 -0800 (PST)
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: Sat, 31 Dec 2022 13:03:33 -0800 (PST)
In-Reply-To: <toq6ls$13oom$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:e0a:b03:4c80:e836:8d86:e984:c878;
posting-account=8lr06goAAABywL0WFRfF7Hu_shXozcZn
NNTP-Posting-Host: 2a01:e0a:b03:4c80:e836:8d86:e984:c878
References: <931afc3b-ed68-4d9d-a3e1-c2c1c9a80a66n@googlegroups.com>
<ec056f8e-2607-495e-8fa7-48e8ec0bbddfn@googlegroups.com> <toq6ls$13oom$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <867ac75e-33d1-49da-b8db-26eac269d795n@googlegroups.com>
Subject: Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar
From: slo...@gmail.com (Slo)
Injection-Date: Sat, 31 Dec 2022 21:03:33 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2220
 by: Slo - Sat, 31 Dec 2022 21:03 UTC

> A suggestion: try asking it to do something with associative arrays in
> DCL and see what it comes up with. :-)

I asked for a recursion example in DCL and it showed this:

Recursion in DCL is a programming technique in which a function
or procedure calls itself repeatedly until a certain condition is met.
This allows for the repetition of a task without the need for a loop.

Here is an example of a DCL procedure that uses recursion to calculate the factorial of a number:
$! Declare the procedure and a variable to hold the result
$ procedure factorial
$ integer result
$! Check if the input number is 0 or 1
$ if $1 .eqs. 0 .or. $1 .eqs. 1 then
$ result = 1
$ else
$ ! Recursively call the procedure with the input number - 1
$ result = $1 * factorial($1 - 1)
$ endif
$! Return the result
$ return result
$! End the procedure
$ end

To use this procedure, you would simply call it with the number you want to find the factorial of

Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar

<0402e8db-90bd-4af9-b8ea-f092c0fff2bbn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:e16:b0:6ff:a525:7971 with SMTP id y22-20020a05620a0e1600b006ffa5257971mr1183963qkm.538.1672521661455;
Sat, 31 Dec 2022 13:21:01 -0800 (PST)
X-Received: by 2002:a05:620a:1384:b0:6ff:7cbe:3db1 with SMTP id
k4-20020a05620a138400b006ff7cbe3db1mr1854019qki.781.1672521661192; Sat, 31
Dec 2022 13:21:01 -0800 (PST)
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: Sat, 31 Dec 2022 13:21:00 -0800 (PST)
In-Reply-To: <867ac75e-33d1-49da-b8db-26eac269d795n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:e0a:b03:4c80:e836:8d86:e984:c878;
posting-account=8lr06goAAABywL0WFRfF7Hu_shXozcZn
NNTP-Posting-Host: 2a01:e0a:b03:4c80:e836:8d86:e984:c878
References: <931afc3b-ed68-4d9d-a3e1-c2c1c9a80a66n@googlegroups.com>
<ec056f8e-2607-495e-8fa7-48e8ec0bbddfn@googlegroups.com> <toq6ls$13oom$2@dont-email.me>
<867ac75e-33d1-49da-b8db-26eac269d795n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0402e8db-90bd-4af9-b8ea-f092c0fff2bbn@googlegroups.com>
Subject: Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar
From: slo...@gmail.com (Slo)
Injection-Date: Sat, 31 Dec 2022 21:21:01 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2511
 by: Slo - Sat, 31 Dec 2022 21:21 UTC

This is much better, beats reading the docs and googling for someone new to OpenVMS:

1. Code VAX C program to add the first 20 integers
--------------------------------------------------------------------------------
Here is a VAX C program that adds the first 20 integers:
#include <stdio.h>
int main() {
int i;
int sum = 0;
// Loop through the first 20 integers and add them to the sum
for (i = 1; i <= 20; i++) {
sum += i;
} // Print the result
printf("The sum of the first 20 integers is: %d\n", sum);
return 0;
}

2. compile link and run
------------------------------------

To compile, link, and run a VAX C program on OpenVMS, you can follow these steps:

Compile the program using the CC command. For example:
$ CC MYPROG.C

Link the program using the LINK command. For example:
$ LINK MYPROG, SYS$SHARE:VAXCRTL/OPT

Run the program by typing the name of the executable file. For example:
$ MYPROG

Note: These steps assume that you have the necessary tools and libraries installed on
your OpenVMS system. You may also need to specify additional options or libraries
depending on your program's needs.

Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar

<toq9l6$1uot$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar
Date: Sat, 31 Dec 2022 16:30:10 -0500
Organization: Aioe.org NNTP Server
Message-ID: <toq9l6$1uot$1@gioia.aioe.org>
References: <931afc3b-ed68-4d9d-a3e1-c2c1c9a80a66n@googlegroups.com>
<ec056f8e-2607-495e-8fa7-48e8ec0bbddfn@googlegroups.com>
<toq6ls$13oom$2@dont-email.me>
<867ac75e-33d1-49da-b8db-26eac269d795n@googlegroups.com>
<0402e8db-90bd-4af9-b8ea-f092c0fff2bbn@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="64285"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Arne Vajhøj - Sat, 31 Dec 2022 21:30 UTC

On 12/31/2022 4:21 PM, Slo wrote:
> This is much better, beats reading the docs and googling for someone new to OpenVMS:
>
> 1. Code VAX C program to add the first 20 integers
> --------------------------------------------------------------------------------
> Here is a VAX C program that adds the first 20 integers:
> #include <stdio.h>
> int main() {
> int i;
> int sum = 0;
> // Loop through the first 20 integers and add them to the sum
> for (i = 1; i <= 20; i++) {
> sum += i;
> }
> // Print the result
> printf("The sum of the first 20 integers is: %d\n", sum);
> return 0;
> }

It seems to understand C.

> 2. compile link and run
> ------------------------------------
>
> To compile, link, and run a VAX C program on OpenVMS, you can follow these steps:
>
> Compile the program using the CC command. For example:
> $ CC MYPROG.C
>
> Link the program using the LINK command. For example:
> $ LINK MYPROG, SYS$SHARE:VAXCRTL/OPT
>
> Run the program by typing the name of the executable file. For example:
> $ MYPROG

But again it fails in DCL.

One not optimal (it is not necessary to specify extension .C) and
two not working on a standard VMS system (it is some time since I have
last seen VAX C as opposed to DEC/whatever C, but I do not recall a
SYS$SHARE:VAXCRTL.OPT file).

Arne

Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar

<toqblf$ksk$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!B5/SkeYiDUNuUQ7yQ9giSQ.user.46.165.242.75.POSTED!not-for-mail
From: hel...@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.os.vms
Subject: Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar
Date: Sat, 31 Dec 2022 22:04:32 -0000 (UTC)
Organization: Multivax C&R
Message-ID: <toqblf$ksk$1@gioia.aioe.org>
References: <931afc3b-ed68-4d9d-a3e1-c2c1c9a80a66n@googlegroups.com> <ec056f8e-2607-495e-8fa7-48e8ec0bbddfn@googlegroups.com> <toq7tc$1af6$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="21396"; posting-host="B5/SkeYiDUNuUQ7yQ9giSQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Sat, 31 Dec 2022 22:04 UTC

In article <toq7tc$1af6$1@gioia.aioe.org>, =?UTF-8?Q?Arne_Vajh=c3=b8j?= <arne@vajhoej.dk> writes:

> $ mail 'fnm' "SMTP%""vms@vsi.com"""

The SMTP prefix hasn't been needed for a long time.

Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar

<toqud2$19jj4$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar
Date: Sat, 31 Dec 2022 22:24:03 -0500
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <toqud2$19jj4$1@dont-email.me>
References: <931afc3b-ed68-4d9d-a3e1-c2c1c9a80a66n@googlegroups.com>
<ec056f8e-2607-495e-8fa7-48e8ec0bbddfn@googlegroups.com>
<toq6ls$13oom$2@dont-email.me>
<867ac75e-33d1-49da-b8db-26eac269d795n@googlegroups.com>
<0402e8db-90bd-4af9-b8ea-f092c0fff2bbn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 1 Jan 2023 03:24:18 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="42c136e6d1cdbfe0509c5a393f770b90";
logging-data="1363556"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cp71OrtHJ4ar8uD1GYLiRU2vxsdRMqDc="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:fahKwqNTzc+uAHxNyWaafzUO9k4=
In-Reply-To: <0402e8db-90bd-4af9-b8ea-f092c0fff2bbn@googlegroups.com>
 by: Dave Froble - Sun, 1 Jan 2023 03:24 UTC

On 12/31/2022 4:21 PM, Slo wrote:
> This is much better, beats reading the docs and googling for someone new to OpenVMS:
>
> 1. Code VAX C program to add the first 20 integers
> --------------------------------------------------------------------------------
> Here is a VAX C program that adds the first 20 integers:
> #include <stdio.h>
> int main() {
> int i;
> int sum = 0;
> // Loop through the first 20 integers and add them to the sum
> for (i = 1; i <= 20; i++) {
> sum += i;
> }
> // Print the result
> printf("The sum of the first 20 integers is: %d\n", sum);
> return 0;
> }
>
> 2. compile link and run
> ------------------------------------
>
> To compile, link, and run a VAX C program on OpenVMS, you can follow these steps:
>
> Compile the program using the CC command. For example:
> $ CC MYPROG.C
>
> Link the program using the LINK command. For example:
> $ LINK MYPROG, SYS$SHARE:VAXCRTL/OPT
>
> Run the program by typing the name of the executable file. For example:
> $ MYPROG
>
> Note: These steps assume that you have the necessary tools and libraries installed on
> your OpenVMS system. You may also need to specify additional options or libraries
> depending on your program's needs.
>

Maybe even easier in Basic ...

S = S + I For I = 1 to 20
Print S

Oh, wait, no Basic on x86, yet, ....

--
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: ChatGPT - Joke about OpenVMS and Linux walking into a bar

<tos6a7$p39$1@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.82-209-141-190.cust.bredband2.com!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar
Date: Sun, 1 Jan 2023 15:45:27 +0100
Organization: MGT Consulting
Message-ID: <tos6a7$p39$1@news.misty.com>
References: <931afc3b-ed68-4d9d-a3e1-c2c1c9a80a66n@googlegroups.com>
<ec056f8e-2607-495e-8fa7-48e8ec0bbddfn@googlegroups.com>
<toq6ls$13oom$2@dont-email.me>
<867ac75e-33d1-49da-b8db-26eac269d795n@googlegroups.com>
<0402e8db-90bd-4af9-b8ea-f092c0fff2bbn@googlegroups.com>
<toqud2$19jj4$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 1 Jan 2023 14:45:27 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="82-209-141-190.cust.bredband2.com:82.209.141.190";
logging-data="25705"; 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.13.1
Content-Language: en-US
In-Reply-To: <toqud2$19jj4$1@dont-email.me>
 by: Johnny Billquist - Sun, 1 Jan 2023 14:45 UTC

On 2023-01-01 04:24, Dave Froble wrote:
> Maybe even easier in Basic ...
>
> S = S + I For I = 1 to 20
> Print S
>
> Oh, wait, no Basic on x86, yet, ....

BASIC2

s = s + i for i=1 to 20 \ print s

210

BASIC2

print date$(0);" ";time$(0)

01-Jan-23 15:45

BASIC2

(On a PDP-11, no less...)

Johnny

Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar

<tp5a3h$evk$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: ChatGPT - Joke about OpenVMS and Linux walking into a bar
Date: Wed, 4 Jan 2023 20:45:20 -0500
Organization: Aioe.org NNTP Server
Message-ID: <tp5a3h$evk$1@gioia.aioe.org>
References: <931afc3b-ed68-4d9d-a3e1-c2c1c9a80a66n@googlegroups.com>
<ec056f8e-2607-495e-8fa7-48e8ec0bbddfn@googlegroups.com>
<toq6ls$13oom$2@dont-email.me>
<867ac75e-33d1-49da-b8db-26eac269d795n@googlegroups.com>
<0402e8db-90bd-4af9-b8ea-f092c0fff2bbn@googlegroups.com>
<toqud2$19jj4$1@dont-email.me> <tos6a7$p39$1@news.misty.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="15348"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Arne Vajhøj - Thu, 5 Jan 2023 01:45 UTC

On 1/1/2023 9:45 AM, Johnny Billquist wrote:
> On 2023-01-01 04:24, Dave Froble wrote:
>> Maybe even easier in Basic ...
>>
>> S = S + I For I = 1 to 20
>> Print S
>>
>> Oh, wait, no Basic on x86, yet, ....
>
> BASIC2
>
> s = s + i for i=1 to 20 \ print s
>
>
>  210

Basic has a pretty good LOC/FP ratio.

It has never had a great reputation among let us
call it "programming language gourmets", but lots
of business usage.

One will need to go to way newer languages to
get something similar.

Python:

print(sum(range(1,21)))

Groovy:

println((1..20).sum())

Even though one could argue that a more equivalent
code (being able to sum functions of i instead of
just i) would be Python:

print(sum([i for i in range(1,21)]))

because you can do:

print(sum([i*i for i in range(1,21)]))

Groovy would need to use a different approach like:

println((1..20).collect{it*it}.sum())

Arne

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor