Tried porting a small script to Janet. It's a tiny Clojure-like Lisp implementation with functional programming not enforced. It doesn't have Clojure's immutable data structures either.

It's the same number of lines as the Python version of the script and just as readable. I used spork and sh libraries in Janet, though not required. The core isn't batteries-included, but just 1 MB.

P.S. There's a Raku version of the script that's only half the lines. Bash script can be a one-liner.

#JanetLang

(2/2) Uploaded the Janet script as a snippet in Debian Salsa. I had to use curl because the spork library can't do HTTPS yet.

https://salsa.debian.org/freedombox-team/toolbox/-/snippets/807

This also includes a Raku version I wrote last year. The original Python version is in the repository itself.

#JanetLang #RakuLang

apply-mr in other scripting languages ($807) · Snippets · FreedomBox / toolbox · GitLab

Tools to help with development, code reviews and support activities for FreedomBox.

GitLab
@njoseph good stuff. 🤓