Release blog post
Darklang CLI is a better replacement for bash scripts. I say AI tools that generated bash scripts, but the bash scripts had a few problems:
- bash is super hard to read, using weird variable names. While lots of us can read and write bash scripts, since there are few experts, it’s not a great language when we have to read the code generated by an AI
- lack of a package manager means the generated code has to use cli tools, which each have different interfaces, and may not be installed
- different versions of the tools might be installed with subtly different behaviour (esp gnu vs bsd)
- Or it generates low-level code eg using curl
- lack of real types and functions (which are a mess in bash) contributes to these problems
We felt that darklang could be used as a better language for AI-generated scripts, because:
- static types help ensure correctness
- immutable values (combined with static types) make code easier to understand and verify
- built-in package manager
- without an npm install step
- versioned immutable functions and packages
- easy to take a script and move it to the cloud