News for hackers. Stuff that matters.
Re:Why I use the D programming language for scripting by ivolimmen on Sunday July 30, 2023 @04:34AM (#36929127)
If I write an application I use Java as I am most comfortable with it. But it is not always the best choice. If I needed to write an application for windows with a GUI I would be more successful with C# as it would look more native. If I am writing a command line tool it would be a faster and smaller application if I build it in Go, Dart or Crystal. But then I would need to be good in it as well. I like seeing these kinds of posts. I often script in Groovy as I am fluent in Java. I like to experiment with other languages when I have time...
Re:Why I use the D programming language for scripting by hocuspocus on Sunday July 30, 2023 @08:46AM (#36930622)
Admittedly I don't know Groovy well and I'm a bit biased due to bad experiences with Gradle builds and Jenkinsfiles.

But if you're most comfortable with the JDK, Scala 3 with the Scala CLI provides an unmatched developer experience for small scripts and command line tools. And the output can be self-contained JAR, a GraalVM native image, or even a Scala Native binary if you use compatible libraries.

Re:Why I use the D programming language for scripting by Alifatisk on Sunday July 30, 2023 @12:17PM (#36932795)
I feel like the Dart syntax is very very close to Java!
Re:Why I use the D programming language for scripting by ivolimmen on Tuesday August 01, 2023 @07:38AM (#36954784)
If you like to experiment with a language that is similar to Java is suggest you try Vala. It looks a bit like Java but has some differences and uses ref counting instead of garbage collection. It compiles to C++ (or C?) and then to native; this makes the build extremely steep and difficult but once you get that going it is really nice.