[Info-vax] Groovy on VMS
Craig A. Berry
craigberry at nospam.mac.com
Mon Mar 4 11:10:13 EST 2024
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.
More information about the Info-vax
mailing list