Hacker News new | ask | show | jobs
by karma_daemon 145 days ago
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

2 comments

The only thing I can think of is if you have an existing system you are integrating with thats implemented in shell script already - for example a packaging or build pack system; but I can’t really see how this could be justified even there because this could easily be a toy that becomes abandoned.
A really common use case is install/bootstrap/setup scripts. You know, those sketchy curl-to-bash things, or cloud-init scripts, or whatever you run to set up your actual higher level tools like Python.
Hi, I am one of the project maintainers :-)

As said there are use cases where you want to use only bash because you can't install scripting languages with their dependences as example.

As usual there is a tool for any user cases and Amber resolves some of them :-)

bash scripting has ergonomics?
Regardless of where it’s deployed I can edit it and run it without any additional tools.
So does an amber script after it's been compiled, that's the whole point. You can tweak it and inspect it if you want. Realistically though you'll probably regenerate it and copy the new compiled version over. But you can do both.
Is it? There is no example of what the compiled output looks like in the website or github. Just because its bash doesn't mean its suitable to be maintained in bash.
Yes?