Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

May all your PUSHes be POPped.


computers / comp.os.vms / Groovy on VMS

SubjectAuthor
* Groovy on VMSArne Vajhøj
`* Re: Groovy on VMSCraig A. Berry
 `* Re: Groovy on VMSArne Vajhøj
  +* Re: Groovy on VMSArne Vajhøj
  |`* Re: Groovy on VMSSimon Clubley
  | `* Re: Groovy on VMSArne Vajhøj
  |  `* Re: Groovy on VMSLawrence D'Oliveiro
  |   `* Re: Groovy on VMSArne Vajhøj
  |    `* Re: Groovy on VMSLawrence D'Oliveiro
  |     `* Re: Groovy on VMSArne Vajhøj
  |      `* Re: Groovy on VMSLawrence D'Oliveiro
  |       `* Re: Groovy on VMSArne Vajhøj
  |        +* Re: Groovy on VMSArne Vajhøj
  |        |`- Re: Groovy on VMSChris Townley
  |        `- Re: Groovy on VMSLawrence D'Oliveiro
  `- Re: Groovy on VMSCraig A. Berry

1
Groovy on VMS

<us0it3$25df4$1@dont-email.me>

  copy mid

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

  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: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Groovy on VMS
Date: Sat, 2 Mar 2024 20:14:12 -0500
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <us0it3$25df4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 3 Mar 2024 01:14:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="23e93923d69d68ed7f110cf9a4d9afe3";
logging-data="2274788"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19d3i7HzdSCxMoGGlrakQ27v3VI8+lEsck="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:NarJyx5t8fYZ7L3SiKvQRj60ClE=
Content-Language: en-US
 by: Arne Vajhøj - Sun, 3 Mar 2024 01:14 UTC

Two more tech demo's.

VMS Tech Demo 14 - Groovy for scripting:
https://www.vajhoej.dk/arne/articles/vmstd14.html

Covering:
* basic scripting
* using to SYS$ and LIB$ functions
* accessing index-sequential files, databases and message queues

VMS Tech Demo 15 - Groovy for applications:
https://www.vajhoej.dk/arne/articles/vmstd15.html

Covering:
* Groovy calling Java
* Java calling Groovy
* Groovy calling C/Pascal/Basic
* C/Pascal/Basic calling Groovy

Arne

Re: Groovy on VMS

<us2214$2hl3k$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED.24-148-80-44.s43.c3-0.grn-cbr2.chi-grn.il.cable.rcncustomer.com!not-for-mail
From: craigberry@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: Groovy on VMS
Date: Sun, 3 Mar 2024 08:38:28 -0600
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <us2214$2hl3k$1@dont-email.me>
References: <us0it3$25df4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 3 Mar 2024 14:38:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="24-148-80-44.s43.c3-0.grn-cbr2.chi-grn.il.cable.rcncustomer.com:24.148.80.44";
logging-data="2675828"; mail-complaints-to="abuse@eternal-september.org"
User-Agent: Mozilla Thunderbird
In-Reply-To: <us0it3$25df4$1@dont-email.me>
Content-Language: en-US
 by: Craig A. Berry - Sun, 3 Mar 2024 14:38 UTC

On 3/2/24 7:14 PM, Arne Vajhøj wrote:
> Two more tech demo's.
>
> VMS Tech Demo 14 - Groovy for scripting:
>   https://www.vajhoej.dk/arne/articles/vmstd14.html

How does Groovy compare to BeanShell?

https://github.com/beanshell/beanshell

Re: Groovy on VMS

<us2dg4$2k99n$1@dont-email.me>

  copy mid

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

  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: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Groovy on VMS
Date: Sun, 3 Mar 2024 12:54:11 -0500
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <us2dg4$2k99n$1@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 3 Mar 2024 17:54:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="23e93923d69d68ed7f110cf9a4d9afe3";
logging-data="2762039"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BgP+F1jfEN5oVpEBhx/4ORC1u475f6L0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ZURs9w8czVtS93Y6qqqQ6UiZwrQ=
In-Reply-To: <us2214$2hl3k$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Sun, 3 Mar 2024 17:54 UTC

On 3/3/2024 9:38 AM, Craig A. Berry wrote:
> On 3/2/24 7:14 PM, Arne Vajhøj wrote:
>> Two more tech demo's.
>>
>> VMS Tech Demo 14 - Groovy for scripting:
>>    https://www.vajhoej.dk/arne/articles/vmstd14.html
>
> How does Groovy compare to BeanShell?
>
> https://github.com/beanshell/beanshell

Good question.

And I am not an expert on the topic.

But to my understanding then:
* they are relative similar in language syntax and features today
* they came from a very different (opposite) background:
- BeanShell started as Java interpreter and evolved
into a full script language with optional typing
- Groovy started as a Java-like scripting language
without typing that added typing later
* they are used for different purposes:
- BeanShell is very much used for JSR223 embedded
scripting language in Java applications
- Groovy got a much broader usage:
. web applications (Grails framework, Groovelets)
. more general scripting (the world dominated by
Perl and Python)
. JSR223 embedded scripting language in Java applications
* Groovy is more used than BeanShell - especially
Grails have a reasonable big user base

I have only used BeanShell as embedded script engine
for 100% Java compatible. I have dabbled in Groovy for both
web and scripting.

A job search at dice.com find 239 Groovy jobs and 0
BeanShell jobs. I am sure there are plenty of jobs
where BeanShell is used but its usage is not
important enough to warrant being mentioned in the ad.

Arne

Re: Groovy on VMS

<us2h0m$2l1cn$1@dont-email.me>

  copy mid

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

  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: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Groovy on VMS
Date: Sun, 3 Mar 2024 13:54:14 -0500
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <us2h0m$2l1cn$1@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me>
<us2dg4$2k99n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 3 Mar 2024 18:54:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="23e93923d69d68ed7f110cf9a4d9afe3";
logging-data="2786711"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JrXSqNPs297a1Ew3k75X0Tet1l0big4Y="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CCXH5kfqBdFYrV7lNpxTuZsGGe0=
Content-Language: en-US
In-Reply-To: <us2dg4$2k99n$1@dont-email.me>
 by: Arne Vajhøj - Sun, 3 Mar 2024 18:54 UTC

On 3/3/2024 12:54 PM, Arne Vajhøj wrote:
> A job search at dice.com find 239 Groovy jobs and 0
> BeanShell jobs. I am sure there are plenty of jobs
> where BeanShell is used but its usage is not
> important enough to warrant being mentioned in the ad.

Or to to rephrase: "Groovy developer" is a thing while
"BeanShell developer" is not a thing. BeanShell is a skill
like JDBC, JPA, JMS, JNI etc. for a "Java developer".

This is of course totally non-technicial. But it is
how the languages are perceived in the industry.

IMHO. YMMV.

Arne

Re: Groovy on VMS

<us4hk2$35h0d$1@dont-email.me>

  copy mid

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

  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: clubley@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Groovy on VMS
Date: Mon, 4 Mar 2024 13:16:51 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <us4hk2$35h0d$1@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me> <us2dg4$2k99n$1@dont-email.me> <us2h0m$2l1cn$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 13:16:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a7ac2a1a995afdadcd316d0773c7c7f3";
logging-data="3326989"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/efo/F4/LcJEekx6WbSBX4LplqYPWI5/Q="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:st6WJzaJPiGU5/OdlotkYGWGO3w=
 by: Simon Clubley - Mon, 4 Mar 2024 13:16 UTC

On 2024-03-03, Arne Vajhøj <arne@vajhoej.dk> wrote:
> On 3/3/2024 12:54 PM, Arne Vajhøj wrote:
>> A job search at dice.com find 239 Groovy jobs and 0
>> BeanShell jobs. I am sure there are plenty of jobs
>> where BeanShell is used but its usage is not
>> important enough to warrant being mentioned in the ad.
>
> Or to to rephrase: "Groovy developer" is a thing while
> "BeanShell developer" is not a thing. BeanShell is a skill
> like JDBC, JPA, JMS, JNI etc. for a "Java developer".
>

$ set response/mode=good_natured

Hmmm, I wonder how many Java developers claiming JNI as a "skill"
could actually _use_ JNI (and make it work!) ? :-)

JNI requires a very different mindset and knowledge base than most
of the other Java development skills...

Simon.

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

Re: Groovy on VMS

<us4rp7$37rmb$1@dont-email.me>

  copy mid

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

  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: craigberry@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: Groovy on VMS
Date: Mon, 4 Mar 2024 10:10:13 -0600
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <us4rp7$37rmb$1@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me>
<us2dg4$2k99n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 16:10:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="321c89a28d5f27b41a4e3a3dad973722";
logging-data="3403467"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18c+b2SqVSBTXU+UNkRBh5+iFqgt0yS9Yw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:rurs0WSJiG8i9D7AFvnEI5pm3Sk=
In-Reply-To: <us2dg4$2k99n$1@dont-email.me>
Content-Language: en-US
 by: Craig A. Berry - Mon, 4 Mar 2024 16:10 UTC

On 3/3/24 11:54 AM, Arne Vajhøj wrote:
> On 3/3/2024 9:38 AM, Craig A. Berry wrote:
>> On 3/2/24 7:14 PM, Arne Vajhøj wrote:
>>> Two more tech demo's.
>>>
>>> VMS Tech Demo 14 - Groovy for scripting:
>>>    https://www.vajhoej.dk/arne/articles/vmstd14.html
>>
>> How does Groovy compare to BeanShell?
>>
>> https://github.com/beanshell/beanshell
>
> Good question.
>
> And I am not an expert on the topic.
>
> But to my understanding then:
> * they are relative similar in language syntax and features today
> * they came from a very different (opposite) background:
>   - BeanShell started as  Java interpreter and evolved
>     into a full script language with optional typing
>   - Groovy started as a Java-like scripting language
>     without typing that added typing later
> * they are used for different purposes:
>   - BeanShell is very much used for JSR223 embedded
>     scripting language in Java applications
>   - Groovy got a much broader usage:
>     . web applications (Grails framework, Groovelets)
>     . more general scripting (the world dominated by
>       Perl and Python)
>     . JSR223 embedded scripting language in Java applications
> * Groovy is more used than BeanShell - especially
>   Grails have a reasonable big user base
>
> I have only used BeanShell as embedded script engine
> for 100% Java compatible. I have dabbled in Groovy for both
> web and scripting.

That makes sense. I don't do much with Java very often and I've never
encountered Groovy in the wild; I've only encountered BeanShell once and
it was embedded in an app specifically for making that app's
capabilities scriptable, so even my very limited experience is
consistent with yours.

Re: Groovy on VMS

<us5c4m$3bb0d$2@dont-email.me>

  copy mid

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

  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: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Groovy on VMS
Date: Mon, 4 Mar 2024 15:49:27 -0500
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <us5c4m$3bb0d$2@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me>
<us2dg4$2k99n$1@dont-email.me> <us2h0m$2l1cn$1@dont-email.me>
<us4hk2$35h0d$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 20:49:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="00e21a51085971bda9021d256caa94fe";
logging-data="3517453"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Q0kWKBZgGAgj9Bpcanx+3rLlqv3SN/zQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:vJKhJpaSnkXNozvzsolj+pBRgk8=
In-Reply-To: <us4hk2$35h0d$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Mon, 4 Mar 2024 20:49 UTC

On 3/4/2024 8:16 AM, Simon Clubley wrote:
> On 2024-03-03, Arne Vajhøj <arne@vajhoej.dk> wrote:
>> On 3/3/2024 12:54 PM, Arne Vajhøj wrote:
>>> A job search at dice.com find 239 Groovy jobs and 0
>>> BeanShell jobs. I am sure there are plenty of jobs
>>> where BeanShell is used but its usage is not
>>> important enough to warrant being mentioned in the ad.
>>
>> Or to to rephrase: "Groovy developer" is a thing while
>> "BeanShell developer" is not a thing. BeanShell is a skill
>> like JDBC, JPA, JMS, JNI etc. for a "Java developer".
>
> $ set response/mode=good_natured
>
> Hmmm, I wonder how many Java developers claiming JNI as a "skill"
> could actually _use_ JNI (and make it work!) ? :-)
>
> JNI requires a very different mindset and knowledge base than most
> of the other Java development skills...

True.

JNI is tricky (read: it sucks).

But in 5-10 years JNI will hopefully be replaced by
Foreign Function.

Arne

Re: Groovy on VMS

<us5e83$3besu$5@dont-email.me>

  copy mid

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

  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: Groovy on VMS
Date: Mon, 4 Mar 2024 21:25:23 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <us5e83$3besu$5@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me>
<us2dg4$2k99n$1@dont-email.me> <us2h0m$2l1cn$1@dont-email.me>
<us4hk2$35h0d$1@dont-email.me> <us5c4m$3bb0d$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 21:25:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ebd4c9541601cb1e1312dcde6a0cb96a";
logging-data="3521438"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xyumu2W75kFCR4yEWbONN"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:YO4DE7U7ToJZJkcUPu0A1/1cOac=
 by: Lawrence D'Oliv - Mon, 4 Mar 2024 21:25 UTC

On Mon, 4 Mar 2024 15:49:27 -0500, Arne Vajhøj wrote:

> JNI is tricky (read: it sucks).

I managed to do some stuff in Android with it, back in the day. I
created a Python script
<https://bitbucket.org/ldo17/jniglue/src/master/> that generates
slightly more convenient wrappers around the entry points in the
JNIEnv object, e.g. for the NewStringUTF method:

static inline jstring JNNewStringUTF(JNIEnv* env, const char* a1)
{
return
(**env).NewStringUTF(env, a1);
} /*NewStringUTF*/

so you call it like this:

const jstring msgobj = JNNewStringUTF(env, usebuf);

I felt it made things much more bearable.

Re: Groovy on VMS

<us5o9v$3dkl6$1@dont-email.me>

  copy mid

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

  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: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Groovy on VMS
Date: Mon, 4 Mar 2024 19:17:03 -0500
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <us5o9v$3dkl6$1@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me>
<us2dg4$2k99n$1@dont-email.me> <us2h0m$2l1cn$1@dont-email.me>
<us4hk2$35h0d$1@dont-email.me> <us5c4m$3bb0d$2@dont-email.me>
<us5e83$3besu$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Mar 2024 00:17:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4e8bdb93ba13a9a926b5d33e4e62f23f";
logging-data="3592870"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194nS3oQxkGbp37IeWH4lfIKyP1BmPuIOw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:l8L67GFqkt8rmQtzaqpQ9ZK2nDg=
In-Reply-To: <us5e83$3besu$5@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Tue, 5 Mar 2024 00:17 UTC

On 3/4/2024 4:25 PM, Lawrence D'Oliveiro wrote:
> On Mon, 4 Mar 2024 15:49:27 -0500, Arne Vajhøj wrote:
>> JNI is tricky (read: it sucks).
>
> I managed to do some stuff in Android with it, back in the day. I
> created a Python script
> <https://bitbucket.org/ldo17/jniglue/src/master/> that generates
> slightly more convenient wrappers around the entry points in the
> JNIEnv object, e.g. for the NewStringUTF method:
>
> static inline jstring JNNewStringUTF(JNIEnv* env, const char* a1)
> {
> return
> (**env).NewStringUTF(env, a1);
> } /*NewStringUTF*/
>
> so you call it like this:
>
> const jstring msgobj = JNNewStringUTF(env, usebuf);
>
> I felt it made things much more bearable.

That converts the C++ API to a C API, but there is more
hassle in JNI than that.

Arne

PS: (**env).Foobar is rather unusual - the common style is
(*env)->Foobar.

Re: Groovy on VMS

<us5tu8$3eidj$1@dont-email.me>

  copy mid

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

  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: Groovy on VMS
Date: Tue, 5 Mar 2024 01:53:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <us5tu8$3eidj$1@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me>
<us2dg4$2k99n$1@dont-email.me> <us2h0m$2l1cn$1@dont-email.me>
<us4hk2$35h0d$1@dont-email.me> <us5c4m$3bb0d$2@dont-email.me>
<us5e83$3besu$5@dont-email.me> <us5o9v$3dkl6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Mar 2024 01:53:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a1a7f9c36865f1bff757c845ff7d3ffd";
logging-data="3623347"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18d65jF83dqQaJQlS8b1JMi"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:gDvvotZVnoQkEnHrtlcbKK7bUZ0=
 by: Lawrence D'Oliv - Tue, 5 Mar 2024 01:53 UTC

On Mon, 4 Mar 2024 19:17:03 -0500, Arne Vajhøj wrote:

> That converts the C++ API to a C API ...

No, it’s all strictly C.

> PS: (**env).Foobar is rather unusual - the common style is
> (*env)->Foobar.

I don’t understand why. It’s the same number of characters either way.

Re: Groovy on VMS

<us87fl$c6k$1@dont-email.me>

  copy mid

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

  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: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Groovy on VMS
Date: Tue, 5 Mar 2024 17:48:21 -0500
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <us87fl$c6k$1@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me>
<us2dg4$2k99n$1@dont-email.me> <us2h0m$2l1cn$1@dont-email.me>
<us4hk2$35h0d$1@dont-email.me> <us5c4m$3bb0d$2@dont-email.me>
<us5e83$3besu$5@dont-email.me> <us5o9v$3dkl6$1@dont-email.me>
<us5tu8$3eidj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Mar 2024 22:48:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4e8bdb93ba13a9a926b5d33e4e62f23f";
logging-data="12500"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+fF09AUCOZ09sZrZKrjCuB13GH/O65u6U="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Y3i3H/VcTQ6upGzCUJ/bBOpvXnI=
Content-Language: en-US
In-Reply-To: <us5tu8$3eidj$1@dont-email.me>
 by: Arne Vajhøj - Tue, 5 Mar 2024 22:48 UTC

On 3/4/2024 8:53 PM, Lawrence D'Oliveiro wrote:
> On Mon, 4 Mar 2024 19:17:03 -0500, Arne Vajhøj wrote:
>
>> That converts the C++ API to a C API ...
>
> No, it’s all strictly C.

Your code is C. And I suspect the JNI code being called is C as well.

But I consider:

o->f(a1, a2, a3) to be C++
f(o, a1, a2, a3) to be C
o->f(o, a1, a2, a3) to be C++ API in C language

>> PS: (**env).Foobar is rather unusual - the common style is
>> (*env)->Foobar.
>
> I don’t understand why. It’s the same number of characters either way.

True. But if you look at examples in documentation and elsewhere, then ...

Arne

Re: Groovy on VMS

<us87pn$90p$2@dont-email.me>

  copy mid

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

  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: Groovy on VMS
Date: Tue, 5 Mar 2024 22:53:44 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <us87pn$90p$2@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me>
<us2dg4$2k99n$1@dont-email.me> <us2h0m$2l1cn$1@dont-email.me>
<us4hk2$35h0d$1@dont-email.me> <us5c4m$3bb0d$2@dont-email.me>
<us5e83$3besu$5@dont-email.me> <us5o9v$3dkl6$1@dont-email.me>
<us5tu8$3eidj$1@dont-email.me> <us87fl$c6k$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Mar 2024 22:53:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a1a7f9c36865f1bff757c845ff7d3ffd";
logging-data="9241"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/T9igkbx5hQXsfd+Qes+n8"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:zdEnmmMHRMfSW57RnMdar17Ox/I=
 by: Lawrence D'Oliv - Tue, 5 Mar 2024 22:53 UTC

On Tue, 5 Mar 2024 17:48:21 -0500, Arne Vajhøj wrote:

> But I consider:
>
> o->f(a1, a2, a3) to be C++

If you can refer to o as “this”, that’s C++. You can’t do that in C.

Learn to tell the difference.

Re: Groovy on VMS

<us8dm2$1eeo$1@dont-email.me>

  copy mid

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

  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: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Groovy on VMS
Date: Tue, 5 Mar 2024 19:34:09 -0500
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <us8dm2$1eeo$1@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me>
<us2dg4$2k99n$1@dont-email.me> <us2h0m$2l1cn$1@dont-email.me>
<us4hk2$35h0d$1@dont-email.me> <us5c4m$3bb0d$2@dont-email.me>
<us5e83$3besu$5@dont-email.me> <us5o9v$3dkl6$1@dont-email.me>
<us5tu8$3eidj$1@dont-email.me> <us87fl$c6k$1@dont-email.me>
<us87pn$90p$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Mar 2024 00:34:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="939223a3b8a2afd22e60c2db3b4bb78b";
logging-data="47576"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iVjqu+ZDJdawjgH3Yn+6BHZoXqDcIbL4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:vMjvntnN1wQN4jtfY8NWsUjq2cY=
In-Reply-To: <us87pn$90p$2@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Wed, 6 Mar 2024 00:34 UTC

On 3/5/2024 5:53 PM, Lawrence D'Oliveiro wrote:
> On Tue, 5 Mar 2024 17:48:21 -0500, Arne Vajhøj wrote:
>> But I consider:
>>
>> o->f(a1, a2, a3) to be C++
>
> If you can refer to o as “this”, that’s C++. You can’t do that in C.

But this is not available by magic. It is there because
it (at least in some implementations - I doubt that the
standard define the "how") pass it as a hidden 1st argument.

Arne

Re: Groovy on VMS

<us8dvc$1eeo$2@dont-email.me>

  copy mid

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

  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: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Groovy on VMS
Date: Tue, 5 Mar 2024 19:39:08 -0500
Organization: A noiseless patient Spider
Lines: 94
Message-ID: <us8dvc$1eeo$2@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me>
<us2dg4$2k99n$1@dont-email.me> <us2h0m$2l1cn$1@dont-email.me>
<us4hk2$35h0d$1@dont-email.me> <us5c4m$3bb0d$2@dont-email.me>
<us5e83$3besu$5@dont-email.me> <us5o9v$3dkl6$1@dont-email.me>
<us5tu8$3eidj$1@dont-email.me> <us87fl$c6k$1@dont-email.me>
<us87pn$90p$2@dont-email.me> <us8dm2$1eeo$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Mar 2024 00:39:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="939223a3b8a2afd22e60c2db3b4bb78b";
logging-data="47576"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19X2jOh9CZ6i4SkBwQ0JUDjtqnw72VreHc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:B3GRLloYjKNAwHGmX7KS9CieCSI=
Content-Language: en-US
In-Reply-To: <us8dm2$1eeo$1@dont-email.me>
 by: Arne Vajhøj - Wed, 6 Mar 2024 00:39 UTC

On 3/5/2024 7:34 PM, Arne Vajhøj wrote:
> On 3/5/2024 5:53 PM, Lawrence D'Oliveiro wrote:
>> On Tue, 5 Mar 2024 17:48:21 -0500, Arne Vajhøj wrote:
>>> But I consider:
>>>
>>> o->f(a1, a2, a3) to be C++
>>
>> If you can refer to o as “this”, that’s C++. You can’t do that in C.
>
> But this is not available by magic. It is there because
> it (at least in some implementations - I doubt that the
> standard define the "how") pass it as a hidden 1st argument.

To illustrate:

$ type m.cxx
#include <iostream>

using namespace std;

class C
{ public:
virtual void M1(int v) = 0; // C++ API in C++
virtual void M2(char *s) = 0; // C++ API in C++
};

class C1 : public C
{ public:
void M1(int v) { cout << "C1 says: " << v << endl; }
void M2(char *s) { cout << "C1 says: " << s << endl; }
};

class C2: public C
{ public:
void M1(int v) { cout << "C2 says: " << v << endl; }
void M2(char *s) { cout << "C2 says: " << s << endl; }
};

extern "C"
{ void f(C **o);
}

int main()
{ C *o1 = new C1();
f(&o1);
delete o1;
C *o2 = new C2();
f(&o2);
delete o2;
return 0;
}

$ type s.c
#include <stdio.h>

struct C;

typedef void (*fptr1)(struct C **this, int v); // C++ API in C
typedef void (*fptr2)(struct C **this, char *s); // C++ API in C

struct C_vtable
{ fptr1 M1;
fptr2 M2;
};

struct C
{ struct C_vtable *vtable;
};

void f(struct C **o)
{ (*o)->vtable->M1(o, 123);
(*o)->vtable->M2(o, "ABC");
} $ cxx m
$ cc s
$ cxxlink m + s
$ run m
C1 says: 123
C1 says: ABC
C2 says: 123
C2 says: ABC

Arne

Re: Groovy on VMS

<us8h21$3oleb$1@dont-email.me>

  copy mid

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

  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: news@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: Groovy on VMS
Date: Wed, 6 Mar 2024 01:31:44 +0000
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <us8h21$3oleb$1@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me>
<us2dg4$2k99n$1@dont-email.me> <us2h0m$2l1cn$1@dont-email.me>
<us4hk2$35h0d$1@dont-email.me> <us5c4m$3bb0d$2@dont-email.me>
<us5e83$3besu$5@dont-email.me> <us5o9v$3dkl6$1@dont-email.me>
<us5tu8$3eidj$1@dont-email.me> <us87fl$c6k$1@dont-email.me>
<us87pn$90p$2@dont-email.me> <us8dm2$1eeo$1@dont-email.me>
<us8dvc$1eeo$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Mar 2024 01:31:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5f206b83c5bb28f6a22bba49ac596975";
logging-data="3954123"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WiHQYe5p3uDFnBOHbJTJPcdwItRETVqA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:O0NRrxbnseKlx9c37Vg7dNJsUiY=
Content-Language: en-GB
In-Reply-To: <us8dvc$1eeo$2@dont-email.me>
 by: Chris Townley - Wed, 6 Mar 2024 01:31 UTC

On 06/03/2024 00:39, Arne Vajhøj wrote:

> Arne

As others have said - Don't feed the troll, especially when he turns
into a nasty b*stard

--
Chris

Re: Groovy on VMS

<us8i16$24j7$1@dont-email.me>

  copy mid

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

  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: Groovy on VMS
Date: Wed, 6 Mar 2024 01:48:22 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <us8i16$24j7$1@dont-email.me>
References: <us0it3$25df4$1@dont-email.me> <us2214$2hl3k$1@dont-email.me>
<us2dg4$2k99n$1@dont-email.me> <us2h0m$2l1cn$1@dont-email.me>
<us4hk2$35h0d$1@dont-email.me> <us5c4m$3bb0d$2@dont-email.me>
<us5e83$3besu$5@dont-email.me> <us5o9v$3dkl6$1@dont-email.me>
<us5tu8$3eidj$1@dont-email.me> <us87fl$c6k$1@dont-email.me>
<us87pn$90p$2@dont-email.me> <us8dm2$1eeo$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Mar 2024 01:48:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="289fca74fac389e911c3152c39303989";
logging-data="70247"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bzyZDACi3X9jveE+wHWCM"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:pQdakU5umS7znzhpasC+tLC8/do=
 by: Lawrence D'Oliv - Wed, 6 Mar 2024 01:48 UTC

On Tue, 5 Mar 2024 19:34:09 -0500, Arne Vajhøj wrote:

> On 3/5/2024 5:53 PM, Lawrence D'Oliveiro wrote:
>
>> On Tue, 5 Mar 2024 17:48:21 -0500, Arne Vajhøj wrote:
>>> But I consider:
>>>
>>> o->f(a1, a2, a3) to be C++
>>
>> If you can refer to o as “this”, that’s C++. You can’t do that in C.
>
> But this is not available by magic.

It’s part of the language. That’s one way to tell that it’s C++ and not C.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor