logoalt Hacker News

Amber the programming language compiled to Bash/Ksh/Zsh

32 pointsby _superposition_last Tuesday at 7:22 PM18 commentsview on HN

Comments

BadBadJellyBeantoday at 6:21 PM

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.

show 1 reply
ivanjermakovtoday at 6:04 PM

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

show 1 reply
gdevenyitoday at 5:41 PM

> Typescript to bash

Literally the worst of both worlds.

show 1 reply
karma_daemontoday at 6:12 PM

unclear use case imo - this sacrifices the ergonomics of actual bash scripting, and hides it behind another language

If your script is complex enough to need a higher level language you might as well just switch to python

onlyrealcuzzotoday at 5:53 PM

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

wg0today at 5:40 PM

Much needed. I have hard time understanding bash.

Hammershafttoday at 5:58 PM

Another alternative for writing Bash is Babashka, which is a Clojure dialect.

serious_angeltoday at 5:35 PM

Thank you, but... why not just write in Bash, or the shell you prefer? Why learn a yet another opinionated wrapper?

Yes, Bash or any shell is a very complex and utterly environment dependent language to approach with all due care for security and compatibility, yet hence the lack of wrapper that may not even be aware of these crucial cases at all.

show 3 replies
namegulftoday at 6:19 PM

In a world where AI can generate any code for any environment, is there a need for another language?

On the other hand, we're at a point for a binary language (or standard / framework) that one AI/LLM creates and another one validates.

What are we missing?

show 1 reply