News for hackers. Stuff that matters.
Re:Java for Everything (2014) by quasarj on Sunday April 25, 2021 @03:05PM (#26935570)
Oh my GOD he is writing shell scripts in Java?

This man has the patience of the gods. Not because of the writing, but because he actually has the time to wait for Java programs to start when he wants to run a small shell script?

You could run 5000 bash scripts in the time it takes java to load. You could run 500 python scripts.

What is this guy smoking!

Re:Java for Everything (2014) by selfhoster11 on Monday April 26, 2021 @08:13AM (#26941690)
Beanshell starts up pretty quickly. Besides, Bash scripts take an eternity to write safely and aren't really suitable for any sort of heavy calculations or string manipulation without resorting to arcane syntax. I would say it's an all-around good alternative to Python scripts when one outgrows Bash due to requirements.
Re:Java for Everything (2014) by mtmmtm on Monday April 26, 2021 @11:54AM (#26943916)
I have also written some shellscripts in java (i did not smoke anything). If startuptime would be an issue (normally it is not) i would just use graal-vm to compile it. Just do this: "native-image script"