Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Is Inline::Java suitable for groovy

by markong (Monk)
on Jan 24, 2019 at 23:58 UTC ( #1228952=note: print w/replies, xml ) Need Help??


in reply to Is Inline::Java suitable for groovy

I would say that yes, on paper you can: I haven't tried directly but remember that Groovy is one of the very few languages to retain a seamless integration with the Java Runtime Platform: it runs inside the JVM and makes use of Java’s libraries (JRE). Groovy is only a new way of creating ordinary Java classes — from a runtime perspective, Groovy is Java with an additional JAR file as a dependency.

Thus you can write a Java wrapper for the groovy classes onto which Inline::Java can plug in.

That said: Groovy is a sort of Perl for the JVM, it's pretty powerful/feature rich, unless you have already a vast of Perl 5 code which need the Groovy script/program functionality, I'd recommend stick with it: it also supports so-called "slashy" // regular expression literals (I'll let you guess where they have "stolen" the idea) among loads of other very nice feats.

  • Comment on Re: Is Inline::Java suitable for groovy

Replies are listed 'Best First'.
Re^2: Is Inline::Java suitable for groovy
by xiaoyafeng (Chaplain) on Jan 25, 2019 at 02:24 UTC
    Many Thanks! I decide to do on the way that you point out.




    I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1228952]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2019-10-23 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?