News for hackers. Stuff that matters.
Re:Larry Wall has approved renaming Perl 6 to Raku by tombert on Friday October 11, 2019 @04:55PM (#21228378)
Heh, escript isn't so bad once you get used to it.

Clojure would be a great language for small-ish scripts if it weren't the dog-slow startup times, and has excellent concurrency support.

I hear that GraalVM might fix that but I sadly haven't had a chance to play with that yet.

Re:Larry Wall has approved renaming Perl 6 to Raku by cutler on Saturday October 12, 2019 @12:41AM (#21230730)
Even if GraalVM fixes startup times aren't JVM languages just too long-winded for scripting? Perl, Python and Ruby dominate the scripting world for a reason - standard libraries for file, dir and pathname manipulation written in a concise language. Scripting is a style of coding, not just a means to an end. It is here that dynamic languages excel. Clojure is the leanest of the JVMs but doesn't it still rely on Java for file, dir and pathname manipulation?
Re:Larry Wall has approved renaming Perl 6 to Raku by dragonwriter on Saturday October 12, 2019 @01:59AM (#21230971)
> Even if GraalVM fixes startup times aren't JVM languages just too long-winded for scripting? Perl, Python and Ruby dominate the scripting world for a reason

Ruby is a JVM language, in that JRuby is a very complete competitive, current, and widely-used-in-production Ruby implementation.

Re:Larry Wall has approved renaming Perl 6 to Raku by cutler on Saturday October 12, 2019 @11:06AM (#21233702)
By JVM languages I really meant those designed originally for the JVM, ie. Java, Clojure, Scala, Kotlin & Groovy.
Re:Larry Wall has approved renaming Perl 6 to Raku by dragonwriter on Saturday October 12, 2019 @03:28PM (#21235611)
Even so, Clojure and Groovy aren't particularly long-winded, nor is Scala despite static typing.
Re:Larry Wall has approved renaming Perl 6 to Raku by zmmmmm on Saturday October 12, 2019 @04:24PM (#21235958)
You should definitely educate yourself about Groovy. It's my favorite scripting language, particularly because it enables a true scripting style, but actually works well as a full application development language too (though I would always want a backbone of static typed code).
Re:Larry Wall has approved renaming Perl 6 to Raku by slifin on Saturday October 12, 2019 @06:44AM (#21232046)
It relies on the implementation of its runtime, JVM, .net, JavaScript, BeamVM etc but uses it's own language for those operations, slurp/barf etc

So as a developer it's all the same until you start leveraging the features of your particular runtime but this does make code sharing viable

Re:Larry Wall has approved renaming Perl 6 to Raku by davidw on Saturday October 12, 2019 @12:49AM (#21230759)
There are JVM versions of Python, Ruby and Tcl, so it's not really about the VM itself.
Re:Larry Wall has approved renaming Perl 6 to Raku by didibus on Friday October 11, 2019 @11:50PM (#21230529)
Ya, GraalVM fixes it. But it requires a compile step, so it's not as nice for scripts.

My favourite for scripting right now is Joker: https://github.com/candid82/joker

Joker is a Clojure dialect which is interpreted, thus it starts super fast (but runs slower, but fast enough for scripts). Its design is to be batteries included for all things scripting. So it's just a self contained executable with everything you need for scripting. It's implemented in Go.

I use it wherever I would have used bash or powershell prior.

There is also Babashka: https://github.com/borkdude/babashka which is a similar idea, it's an interpreted dialect of Clojure with fast start times designed for scripting. The difference with Joker is that it is newer and more experimental, and it is implemented in JVM Clojure, compiled with GraalVM and has no Windows support for now.

Anyways, I really recommend the use of Joker. Its awesome for scripting. I just put its binary in all my bin folders and script with it. It's great.

Re:Larry Wall has approved renaming Perl 6 to Raku by jdminhbg on Friday October 11, 2019 @06:23PM (#21229040)
GraalVM does in fact fix that. There's a (new-ish) project called babashka that lets you do some basic scripting for example: https://github.com/borkdude/babashka