Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

It is not every question that deserves an answer. -- Publilius Syrus


computers / comp.os.vms / Re: Groovy on VMS x86-64

SubjectAuthor
* Groovy on VMS x86-64Arne Vajhøj
+* Re: Groovy on VMS x86-64Arne Vajhøj
|`* Re: Groovy on VMS x86-64Jake Hamby (Solid State Jake)
| `- Re: Groovy on VMS x86-64Arne Vajhøj
`- Re: Groovy on VMS x86-64Arne Vajhøj

1
Groovy on VMS x86-64

<ugn7u5$38f04$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!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 x86-64
Date: Tue, 17 Oct 2023 20:12:52 -0400
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <ugn7u5$38f04$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 18 Oct 2023 00:12:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="84d47e0ae08b5bc06707cacaca74b78c";
logging-data="3423236"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Q/8sJfAbxkx6mhqI75jZEgN7inWqV664="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:BhneQt4/7GFGokPBl2Q8CXZjtvo=
Content-Language: en-US
 by: Arne Vajhøj - Wed, 18 Oct 2023 00:12 UTC

Just tested. Groovy 4.x works fine on VMS x86-64.

groovy.com:

$ p1 = f$edit(p1, "UPCASE")
$ clz = ""
$ if p1 .eqs. "RUN" then clz = "groovy.ui.GroovyMain"
$ if p1 .eqs. "COMPILE" then clz =
"org.codehaus.groovy.tools.FileSystemCompiler"
$ if p1 .eqs. "CONSOLE" then clz = groovy.ui.Console"
$ if p1 .eqs. "SHELL" then clz = "org.codehaus.groovy.tools.shell.Main"
$ parent = "/disk2/arne/groovy"
$ ver = "4.0.12"
$ groovyhome = "''parent'/groovy-''ver'"
$ xmx = "''groovy_xmx'"
$ if xmx .eqs. "" then xmx = "256m"
$ cp = "''groovy_cp'"
$ if cp .eqs. "" then cp = "."
$ java -
"-Xmx''xmx'" -
"-Dprogram.name"="" -
"-Dgroovy.home"="''groovyhome'" -
"-Dtools.jar"="/sys$sysdevice/sys0/syscommon/java$80/lib/tools.jar" -
"-Dgroovy.starter.conf"="''groovyhome'/conf/groovy-starter.conf" -
"-Dscript.name"="''p2'" -
-classpath "''groovyhome'/lib/groovy-''ver'.jar" -
"org.codehaus.groovy.tools.GroovyStarter" -
--main "''clz'" -
--conf "''groovyhome'/conf/groovy-starter.conf" -
--classpath "''cp'" -
'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
$ if p1 .eqs. "COMPILE" then write sys$output "Run with java -cp
..:''groovyhome'/lib/* <main-class>"
$ exit

groovydef.com:

$ defdir = f$env("default")
$ groovy :== @'defdir'groovy run
$ groovyc :== @'defdir'groovy compile
$ groovyconsole :== @'defdir'groovy console
$ groovysh :== @'defdir'groovy shell
$ exit

test:

$ type test.groovy
println("It works!")
$ groovy test.groovy
It works!
$ groovyc test.groovy
Run with java -cp .:/disk2/arne/groovy/groovy-4.0.12/lib/* <main-class>
$ java -cp .:/disk2/arne/groovy/groovy-4.0.12/lib/* TEST
It works!

Arne

Re: Groovy on VMS x86-64

<ugn8iu$38idl$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.hispagatos.org!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 x86-64
Date: Tue, 17 Oct 2023 20:23:57 -0400
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <ugn8iu$38idl$1@dont-email.me>
References: <ugn7u5$38f04$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 18 Oct 2023 00:23:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="84d47e0ae08b5bc06707cacaca74b78c";
logging-data="3426741"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iYCcJiDNG+s1yhi5xP5+p4qIo9tktaww="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:eMiYgW8kS3dG/H2uq2xUufjaEMY=
Content-Language: en-US
In-Reply-To: <ugn7u5$38f04$1@dont-email.me>
 by: Arne Vajhøj - Wed, 18 Oct 2023 00:23 UTC

On 10/17/2023 8:12 PM, Arne Vajhøj wrote:
> Just tested. Groovy 4.x works fine on VMS x86-64.

For those that don't know Groovy, then it is a JVM
language.

I consider it a tier 3 language in usage (tier 1: JavaScript,
Python and Java; tier 2: C, C++, C#, PHP).

Depending on your preference you can use it as:
- a scripting language with a Java like syntax
- a Java replacement with a more compact syntax

It is a pretty powerful language and the advanced
constructs can be tricky to master, but one can also
keep it simple and easy.

A significant part of Groovy usage is for web
development via the Grails framework.

One of the more fun facts is that:
- 1.00f is a float
- 1.00d is a double
- 1.00 is a BigDecimal

Arne

Re: Groovy on VMS x86-64

<404a6b1d-57a6-48fc-ac1b-b484ea6aa57an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ad4:55ec:0:b0:66d:689:1ff0 with SMTP id bu12-20020ad455ec000000b0066d06891ff0mr81154qvb.7.1697597860123;
Tue, 17 Oct 2023 19:57:40 -0700 (PDT)
X-Received: by 2002:a54:4494:0:b0:3af:63ac:2f7e with SMTP id
v20-20020a544494000000b003af63ac2f7emr1198682oiv.9.1697597859935; Tue, 17 Oct
2023 19:57:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Tue, 17 Oct 2023 19:57:39 -0700 (PDT)
In-Reply-To: <ugn8iu$38idl$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:46b0:abc0:40f2:169b:14b5:7bf1;
posting-account=OGFVHQoAAAASiNAamRQec8BtkuXxYFnQ
NNTP-Posting-Host: 2600:1700:46b0:abc0:40f2:169b:14b5:7bf1
References: <ugn7u5$38f04$1@dont-email.me> <ugn8iu$38idl$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <404a6b1d-57a6-48fc-ac1b-b484ea6aa57an@googlegroups.com>
Subject: Re: Groovy on VMS x86-64
From: jake.hamby@gmail.com (Jake Hamby (Solid State Jake))
Injection-Date: Wed, 18 Oct 2023 02:57:40 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2982
 by: Jake Hamby (Solid St - Wed, 18 Oct 2023 02:57 UTC

On Tuesday, October 17, 2023 at 5:24:02 PM UTC-7, Arne Vajhøj wrote:
> On 10/17/2023 8:12 PM, Arne Vajhøj wrote:
> > Just tested. Groovy 4.x works fine on VMS x86-64.
> For those that don't know Groovy, then it is a JVM
> language.
>
> I consider it a tier 3 language in usage (tier 1: JavaScript,
> Python and Java; tier 2: C, C++, C#, PHP).
>
> Depending on your preference you can use it as:
> - a scripting language with a Java like syntax
> - a Java replacement with a more compact syntax
>
> It is a pretty powerful language and the advanced
> constructs can be tricky to master, but one can also
> keep it simple and easy.
>
> A significant part of Groovy usage is for web
> development via the Grails framework.
>
> One of the more fun facts is that:
> - 1.00f is a float
> - 1.00d is a double
> - 1.00 is a BigDecimal
>
> Arne

The OpenJDK port is quite solid. I discovered that my Java benchmarks could be sped up by 2-3x by increasing MIN_WSMAX and my user WSMAX to as large as possible, which ended up being 4000000 pagelets, or just under 2 GiB. If I try to set it much larger, AUTOGEN will fail in its calculations for the different memory regions.

I'll post again with the updated Renaissance JVM test suite results because the WSMAX setting made such a big difference. Since several of the benchmarks that Phoronix Test Suite uses are based on Scala, like the "dotty" compiler and Akka Actors (which is partly based on Erlang and is quite cool), so I've started looking seriously at Scala as a "better Java than Java". I already have experience with Kotlin, but Scala seems better suited for server apps.

Jake

Re: Groovy on VMS x86-64

<ugnks7$3eirg$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!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 x86-64
Date: Tue, 17 Oct 2023 23:53:43 -0400
Organization: A noiseless patient Spider
Lines: 80
Message-ID: <ugnks7$3eirg$1@dont-email.me>
References: <ugn7u5$38f04$1@dont-email.me> <ugn8iu$38idl$1@dont-email.me>
<404a6b1d-57a6-48fc-ac1b-b484ea6aa57an@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 18 Oct 2023 03:53:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="84d47e0ae08b5bc06707cacaca74b78c";
logging-data="3623792"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186Ag3zWb8/HNtCJkaIg7vnG2NKL3PngmE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:3ZRm+Y5Wt2zJvuK243k/cxby1UQ=
In-Reply-To: <404a6b1d-57a6-48fc-ac1b-b484ea6aa57an@googlegroups.com>
Content-Language: en-US
 by: Arne Vajhøj - Wed, 18 Oct 2023 03:53 UTC

On 10/17/2023 10:57 PM, Jake Hamby (Solid State Jake) wrote:
> The OpenJDK port is quite solid.

Yes.

> I discovered that my Java benchmarks
> could be sped up by 2-3x by increasing MIN_WSMAX and my user WSMAX to
> as large as possible, which ended up being 4000000 pagelets, or just
> under 2 GiB. If I try to set it much larger, AUTOGEN will fail in its
> calculations for the different memory regions.
>
> I'll post again with the updated Renaissance JVM test suite results
> because the WSMAX setting made such a big difference.

I assume this is only for benchmarks with large heap.

> Since several
> of the benchmarks that Phoronix Test Suite uses are based on Scala,
> like the "dotty" compiler and Akka Actors (which is partly based on
> Erlang and is quite cool), so I've started looking seriously at Scala
> as a "better Java than Java". I already have experience with Kotlin,
> but Scala seems better suited for server apps.

Scala runs fine on VMS x86-64.

Tested with 2.13.11.

(I don't think the latest 3.x runs on Java 8 and besides
I don't like Scala 3.x)

scala.com:

$ p1 = f$edit(p1, "UPCASE")
$ clz = ""
$ if p1 .eqs. "COMPILE" then clz = "scala.tools.nsc.Main"
$ if p1 .eqs. "RUNNER" then clz = "scala.tools.nsc.MainGenericRunner"
$ if p1 .eqs. "DOC" then clz = "scala.tools.nsc.ScalaDoc"
$ if p1 .eqs. "PRINT" then clz = "scala.tools.scalap.Main"
$ parent = "/disk2/arne/scala"
$ ver = "2.13.11"
$ scalahome = "''parent'/scala-''ver'"
$ xmx = "''scala_xmx'"
$ if xmx .eqs. "" then xmx = "256m"
$ java -
"-Xmx''xmx'" -
"-Dscala.home=''scalahome'" -
"-Dscala.usejavacp=true" -
-cp "''scalahome'/lib/*" -
"''clz'" -
'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
$ if p1 .eqs. "COMPILE" then write sys$output "Run with java -cp
..:''scalahome'/lib/* <main-class>"
$ exit

scaladef.com:

$ defdir = f$env("default")
$ scalac :== @'defdir'scala.com compile
$ scala :== @'defdir'scala.com runner
$ scaladoc :== @'defdir'scala.com doc
$ scalap :== @'defdir'scala.com print
$ exit

Test:

$ type test.scala
object test {
def main(args: Array[String]): Unit = {
println("It works!")
}
} $ scala test.scala
It works!
$ scalac test.scala
$ java -cp .:/disk2/arne/scala/scala-2.13.11/lib/* test
It works!

Arne

Re: Groovy on VMS x86-64

<urg6r4$21ek7$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!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 x86-64
Date: Sun, 25 Feb 2024 15:10:12 -0500
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <urg6r4$21ek7$1@dont-email.me>
References: <ugn7u5$38f04$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 25 Feb 2024 20:10:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3c4a04b6d33d9b58db0c804784753107";
logging-data="2144903"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qV+f6Z/vs8eDL++GNcZrdmqJeZfm7258="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:1AU6IHdvQ9Fw6J7H24KcTD48jmU=
In-Reply-To: <ugn7u5$38f04$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Sun, 25 Feb 2024 20:10 UTC

On 10/17/2023 8:12 PM, Arne Vajhøj wrote:
> Just tested. Groovy 4.x works fine on VMS x86-64.
>
> groovy.com:

> groovydef.com:

It works fine on VMS Itanium and VMS x86-64 with Java 8.

It does not work on VMS Alpha as it has only Java 5.

But I did a little research. Groovy 2.2 runs on
Java 5 and therefore on VMS Alpha.

Get the jar files and stuff them in [.lib],
copy groovy-starter.conf from a newer Groovy to
[.conf] and use the same groovy.com (customized
for location, version and Java) and groovydef.com.

And it works.

$ dir [...]

Directory DISK2:[ARNE.groovy]

groovy-2_2_2.DIR;1 groovy.com;1 groovydef.com;1

Total of 3 files.

Directory DISK2:[ARNE.groovy.groovy-2_2_2]

conf.DIR;1 lib.DIR;1

Total of 2 files.

Directory DISK2:[ARNE.groovy.groovy-2_2_2.conf]

groovy-starter.conf;1

Total of 1 file.

Directory DISK2:[ARNE.groovy.groovy-2_2_2.lib]

antlr-2_7_7.jar;1 asm-4_1.jar;1 asm-analysis-4_1.jar;1
asm-commons-4_1.jar;1 asm-tree-4_1.jar;1
asm-util-4_1.jar;1
commons-cli-1_1.jar;1 groovy-2_2_0.jar;1
groovy-2_2_2.jar;1

Total of 9 files.

Grand total of 4 directories, 15 files.

Obviously Groovy 2.2 does not have the same features
as Groovy 4.0, because the update sequence
2.2 -> 2.3 -> 2.4 -> 2.5 -> 3.0 -> 4.0 did add some
useful stuff, but 2.2 is what is possible on VMS Alpha.

Arne

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor