On a whim, I've been doodling ideas for a POSIX(ish)-shell compiled language. Seeing other people interested in such (probably useless, but fun) ideas encourages me.
Thanks OP! (I kinda wish that, of the 6 dependencies, I had heard of at least 2 of them, but beggars can't be choosers. You do you!! And though I've never done so myself, People I Respect (tm) say that Haskell/ML/OCaml are respectable tools for building parsers anyway)
The only thing better than finally accomplishing a side project, is finding someone elses side project which is close enough to yours to scratch the itch.
shc looks very close to what I was thinking. My original motivating thought was something like "if the switch in debian from bash to dash was done for init performance reasons, why are we still directly interpreting the sh, instead of JIT or precomp?" shc has the parsing elements, but one approaches an edge of the "optimization frontier" if instead you emit bytecode which is mostly syscalls, plus you can have performance savings by having pipes in process.
seriously, I owe you a few beers.
(edit: hilariously, I apparently had already starred shc on github, and even noted it in my file "for further research")
https://debconf16.debconf.org/talks/63/ https://debconf18.debconf.org/talks/90-mining-debian-maintai... https://debconf19.debconf.org/talks/105-symbolic-execution-o...