What modern alternatives to `.sh` scripting exist? Tcl? Is Fish objectively better than Bash and ZSH? Are there any thin wrappers and transpilers on top of sh? Or maybe just good old Perl?
And how does this project address normal pain points of shell scripting, like using arrays and iterating on them for example?
I was thinking a lot on the topic lately and currently have no good answers (never studied the topic in detail). I suppose just replacing `sh` scripting with Golang is also an option. Not the strongest typed or least verbosive language out there but it has a very good cross-compilation story, compiles really fast and produces single binaries that are easy to distribute. So might go with that.
Python is out because startup time wasn't great last I used it for CLI tools (might be an outdated info however, any metrics)? Ruby is also a pretty solid candidate; the lack of static typing is, eh, 50/50 -- might not be important after all.
I also know a guy who replaced Python with OCaml for quick scripting which is rather bizarre to me but knowing a bit more about OCaml nowadays, that actually can work just fine -- and OCaml is very terse.
I would prioritize speed of startup and terse code over everything else. Static typing I want but can very likely do without. I don't care much how portable the program/runtime is; I can distribute it to my machines and I have some influence in my work about what tooling to use.
Any practical recommendations?