Raku is pretty damn Cool
felix-knorr.net
felix-knorr.net
#!/usr/bin/env raku
run «git switch $_», :!out, :!err and last for <main master>;
run «git branch -d $_» for run(<git branch --merged>, :out).out.lines».trim.grep: !*.starts-with: '*';
> and because you will want to use external libraries for that, and package management for scripting languages is terrible.I'm not sure Raku can be called a scripting language, although it can be used as one.
Also I would like to know which parts of package management in Raku are terrible, I'm sure it helps people improve it, since Raku implementation and tooling are young.
If you cannot just run a script, scripting languages lose most of their appeal. At least for me. And package managing has exactly this effect.
PS: also thanks for pointing out how to reduce that to two lines. :D
----
There's been discussion for a decade of the need for bundling up a single executable that includes everything. Not merely the modules a script needs but also the Rakudo compiler itself.
(One can even imagine it one day being combined with Cosmopolitan[1] for a radically portable bootstrapping solution. But that's getting way ahead of things -- let's hope we get there later this decade.)
A decade ago there were a bunch of things that needed to be done to get to the end goal of a practical solution for a single executable that bundles dependencies and just works.
Since then almost all of the "todo list" for that has been done.
But as yet no one has gotten to the end goal of making creation of a single executable a practical thing. (And then making it become a standard part of Rakudo.)
Imo, even if all you did was start another discussion of where we're at regarding reaching that end goal, you'd be helping things along. Maybe not here but, say, reddit (r/rakulang).