4 ms·
Groovy is still far far far better at cli scripting in javaland. You don't even need main methods and class wrappers, can import libraries with annotations wit
by AtlasBarfed 2y ago
Groovy is still far far far better at cli scripting in javaland.
You don't even need main methods and class wrappers, can import libraries with annotations with Grape, etc.
The real failing of cli and scripting in jaba and groovy is running cli commands with access to stdin stdout stderr streams. I have figured out the dark art for groovy but it takes quite a few stack overflows to get there.
- socksy 2y agoMaybe it's sort of not the same because it's compiled with graalvm and so not trivial to add any arbitrary Java dependency, but the tech that scratches that itch for me is babashka — a proper REPL, because it's a lisp, sensible Clojure syntax, and easy IO. And all the core Java libraries, available in a much snappier form than Clojure or other compiled languages
- brabel 2y agoThe Groovy shell can be really fast if you use GroovyServ: https://kobo.github.io/groovyserv/quickstart.html https://kobo.github.io/groovyserv/quickstart.html It feels instant, no need for GraalVM.