In short, Amber is a programming language with Rust like syntax that compiles down to bash. More details here: https://amber-lang.com/

On the surface, it seems nice. Cleaner syntax, types, compile-time safety checks, etc. So you get to write in something nicer than bash but get the portability of bash.

My wonder is if there are pitfalls that make it worse than instead writing it in something like Python or even bash itself. I’d guess the generated bash code probably isn’t the prettiest to look at or debug.

  • False@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    11 hours ago

    Eh, go is really good for this kind of stuff. It compiles to a single binary you can just execute from shell

      • False@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 hour ago

        I’d say no. Even C needs external libraries.

        I guess Rust does this too though - in which case transpiling rust to bash is even less appealing :shrug:

    • CameronDev@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      3 hours ago

      Rust is the same mostly. One upside of bash is that if binary signing was enabled, go and rust binaries would get blocked, but bash would be fine.