Amber: A Modern, Type-Safe Language Compiled to Bash, Ksh, and Zsh

Amber the programming language compiled to Bash/Ksh/Zsh

Amber: A Modern, Type-Safe Language Compiled to Bash, Ksh, and Zsh

I built Amber to bring modern programming features like strong typing and compile-time error checking to shell scripting. This language compiles directly to Bash, Ksh, and Zsh, offering an ECMA Script-like syntax while ensuring runtime safety. With a built-in standard library and automatic documentation, Amber allows developers to write safer, more maintainable scripts without losing the power of the shell.

A modern, type-safe programming language that catches bugs and errors at compile time.
  1. awinter-py

    I tried this or something similar a while ago and really wanted a better argument parsing experience

    https://docs.amber-lang.com/0.6.0-alpha/basic_syntax/importi...

    it seems like automatic `--help` + named args is still not a thing? if it were, I'd be all over this

  2. ivanjermakov

    Any language is a shell script if you're brave enough: https://en.wikipedia.org/wiki/Shebang_%28Unix%29

  3. BadBadJellyBean

    This looks great. We have a lot of bash tools because it's the only stable interpreter that we have readily available on all our systems. But bash is a pain to write so this might actually make things easier.

  4. onlyrealcuzzo

    Just wanted to say that I think you did a great job with your examples showing why someone might be interested in this language.

  5. xyst

    I’ll give it a shot.

    Side note: the image of project founder cosplaying as Steve Jobs on front page had me dying.

More from this day

2026-07-11