News for hackers. Stuff that matters.
Re:A statically typed scripting language that transpiles to ... by smoe on Friday March 25, 2022 @04:18PM (#30806636)
Felt the same. Most complete example seems to be the installer for the language which is written in it. This covers some of the things you mentioned

https://github.com/cotowali/konryu/blob/main/konryu.li

and the generated shell script

https://raw.githubusercontent.com/cotowali/konryu/dist/konry...

There is also the website, heavily under construction, but has some more documentation on the language than the readme

https://cotowali.org/

Re:A statically typed scripting language that transpiles to ... by remram on Friday March 25, 2022 @08:15PM (#30808183)
So this 366-line script compiles into 588 lines of shell, 2,229 lines if we count the parts that seem to come from the imported modules. That includes a lot of auto-generated names like `_cotowali_tmp_166` or `first8b04d5e3775d298e78455efc5ca404d5` and replacements for built-in shell functions like `eprintln` or `rm_r`. In fact that script seems to use `eprint`, `eprintln`, `println`, `print`, AND `echo` which seems a little much.

It would have been nice to see something more transparent, e.g. a type-checked extension to shell, like TypeScript is for JavaScript. Something to make it easier to write correct shell scripts, but would generate understandable, editable shell scripts.