> Typescript to bash Literally the worst of both worlds.
bash bashing i can understand. whats wrong with ts tho?
Amber the programming language compiled to Bash/Ksh/Zsh
51–60 of 72 posts
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#52In 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?
You guys can stop down voting. This is not something we're advocating, instead talking the reality from observing across the industry.
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#53Earlier quoted context omitted.
bash scripting has ergonomics?
Regardless of where it’s deployed I can edit it and run it without any additional tools.
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#54> Typescript to bash Literally the worst of both worlds.
Bash is great for orchestrating other Unix tools into an automated workflow. Only when that workflow requires stuff that Bash doesn't have is it time to break out Python. Integrate Shellcheck into your editor, and you get automated help for writing more reliable Bash.
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#55Re: Amber the programming language compiled to Bash/Ksh/Zsh
#56Earlier quoted context omitted.
Because it's not preinstalled on every machine. Bash is a good target for portability reasons, but it's a shitty language to write in. If ever I get in the position again to have to write some bash, like for an installer or so, I'm going to be looking into Amber again.
portability but not posix shell? tsk tsk
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#57Re: Amber the programming language compiled to Bash/Ksh/Zsh
#58Earlier quoted context omitted.
Bash is great for orchestrating other Unix tools into an automated workflow. Only when that workflow requires stuff that Bash doesn't have is it time to break out Python. Integrate Shellcheck into your editor, and you get automated help for writing more reliable Bash.
ShellCheck is like a spaz hall monitor, filling my editor with useless warnings about what it believes are best practices. I thank my stars I mostly write shell scripts in zsh which it doesn't support.
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#59Earlier quoted context omitted.
How many places do you have Bash, but not AWK?
Or Perl. Or Python. How many environments have only bash and not awk, perl, or python?
So these days I almost exclusively use Go wherever bash and friends aren't enough. Compile to Linux x86 & ARM and Darwin ARM, or just "go run" if it's simple enough.
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#60Any language is a shell script if you're brave enough: https://en.wikipedia.org/wiki/Shebang_%28Unix%29