Hacker News new | past | comments | ask | show | jobs | submit login

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.




Maybe 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


The Groovy shell can be really fast if you use GroovyServ: https://kobo.github.io/groovyserv/quickstart.html

It feels instant, no need for GraalVM.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: