74

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.

you are viewing a single comment's thread
view the rest of the comments
[-] tasankovasara@sopuli.xyz 2 points 2 days ago

Let's also remind that at least Helix the very good editor automatically runs bash stuff through Shellcheck if you have it installed, while you type. It's been amazingly useful and educational. I write a lot of bash at work and have learned many finer details from Shellcheck's hints.

It even does the Clippy thing. I'm piping something into a sed s/.../... and it tips 'try ${variable//search/replace} instead'.

this post was submitted on 26 Jul 2026
74 points (97.4% liked)

Linux

66782 readers
611 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS