Live data from Hacker News

Amber the programming language compiled to Bash/Ksh/Zsh

amber-lang.com

1–10 of 72 posts

Re: Amber the programming language compiled to Bash/Ksh/Zsh

#2
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.

Re: Amber the programming language compiled to Bash/Ksh/Zsh

#3

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.

If you don't want to use it, don't use it

Re: Amber the programming language compiled to Bash/Ksh/Zsh

#4

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.

bash is really painful to use for anything beyond the most rudimentary logic. Bourne and Mashey were terrible language designers. (By contrast, Thompson's V6 shell is very elegant, if limited.)

That said, this should just be a shell itself and not something that generates into other shell dialects. Otherwise, why not use Ruby or something like it that has actual expressive power?

Re: Amber the programming language compiled to Bash/Ksh/Zsh

#6

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.

Your argument is down to the weights.

There are other communities where movement in the language came from outside tooling that built extensions on top of the language, such as Sass or TypeScript.

Re: Amber the programming language compiled to Bash/Ksh/Zsh

#8

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.

Your argument is down to the weights. There are other communities where movement in the language came from outside tooling that built extensions on top of the language, such as Sass or TypeScript.

It always comes to be a social problem. Sort of. I want to use X instead of Y, but maybe everyone does not want the same, or adaption of X is harder in technology wise. So I use wrapper Z that compiles to Y, and avoid some problems, but bring new problems. Maybe these problems are smaller ones than just keeping to use Y directly.
Post reply on HN