2026: The Year of Java in the Terminal?
1–10 of 191 posts
Re: 2026: The Year of Java in the Terminal?
#2Re: 2026: The Year of Java in the Terminal?
#3I would use this instead, https://babashka.org/
Re: 2026: The Year of Java in the Terminal?
#4The moment you introduce the jvm, is the moment people flee.
Graal would be needed and then your binaries would be huge.
No thanks. Go is much simpler. Rust is much smaller. Java can go die in the office storage closet.
Re: 2026: The Year of Java in the Terminal?
#5I didn't know about JBang, it looks awesome. Does it work somewhat like uv?
Re: 2026: The Year of Java in the Terminal?
#6I would use this instead, https://babashka.org/
came here to say the same
Re: 2026: The Year of Java in the Terminal?
#7Java startup time shouldn't really be an issue with a terminal program. I have written some pretty complex Java and Rust and C++ terminal programs, they are basically indistinguishable on run time. The reason Java starts up slow for most people is that they are running webapps with Spring and 50 dependencies and loading Tomcat, not because they are just booting a JVM and running through some functions.
Getting AoT compiled Java programs has been a life saver. Running java -jar main.java -foo -bar is very annoying and not friendly. It needs to be packaged so you can just run tool -foo -bar
Re: 2026: The Year of Java in the Terminal?
#8Very clearly written by AI. Java in the terminal sounds awful. Programming Java is awful.
No thank you.
Re: 2026: The Year of Java in the Terminal?
#9Very clearly written by AI. Java in the terminal sounds awful. Programming Java is awful. No thank you.
When did you last program Java? It’s changed a lot from the Java 8 days.
I am not in the ecosystem anymore but it did a lot of things right.
Re: 2026: The Year of Java in the Terminal?
#10Agree, Java also had straight single file execution forever now. Java foo.java. I use it instead of scripts all the time. Solid language with a lot of flexibility, Oracle has done a good job in last few years. Newer Java frameworks are fairly easy and light to use. We have natively image Lambda functions in production. Work well.