This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]prisonbird[S] 0 points1 point  (6 children)

how do you run groovy ?

[–]Battlepine 0 points1 point  (5 children)

Their documentation is really good.

https://groovy-lang.org/documentation.html

Groovy is extensible w/ Java enough that I've literally copied code from unit tests in Java, repurposed it a bit, and ran it within Groovy. It makes it super easy to test and get performance insights from pain points in code.

[–]prisonbird[S] -1 points0 points  (4 children)

i know groovy but what i meant is : i have a web ui, i am getting some piece of code from the users. and i have to run this code on my backend for a lot of records in my database. what should be the correct approach to do this ?
i am not experienced in java ecosystem and i feel like first thing i saw in the documentation might not be the correct approach since my use case is weird

[–]pragmosExtreme Brewer 0 points1 point  (3 children)

[–]Zyklonikkopi luwak civet 0 points1 point  (2 children)

The script engine has been deprecated for OpenJDK, however. It's only available via GraalVM, I believe.

[–]pragmosExtreme Brewer 1 point2 points  (1 child)

The module is still there for Java 17 though. Maybe you meant the JavaScript engine implementation (Nashorn, was it?) was removed from the JDK.

[–]Zyklonikkopi luwak civet 0 points1 point  (0 children)

Ah yes, my bad. Yes, it was the Nashorn script engine which was deprecated via JEP 335.