[Info-vax] Groovy on VMS
Arne Vajhøj
arne at vajhoej.dk
Sun Mar 3 12:54:11 EST 2024
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
More information about the Info-vax
mailing list