I’ll give it a shot. Side note: the image of project founder cosplaying as Steve Jobs on front page had me dying.
Amber the programming language compiled to Bash/Ksh/Zsh
31–40 of 72 posts
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#32Thank 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?
It took my quite a while to get used to all the verbose method names, but it actually makes it pretty readable by default.
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#33Earlier quoted context omitted.
Can you change the current working directory? If not, it's not a shell script.
Presumably you can call chdir(2) from the C code? Or did you mean change the directory of the calling shell (in which case, executable shell scripts written in Bash and friends can’t do that either).
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#34Re: Amber the programming language compiled to Bash/Ksh/Zsh
#35https://docs.amber-lang.com/0.6.0-alpha/basic_syntax/importi...
it seems like automatic `--help` + named args is still not a thing? if it were, I'd be all over this
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#36Earlier quoted context omitted.
Presumably you can call chdir(2) from the C code? Or did you mean change the directory of the calling shell (in which case, executable shell scripts written in Bash and friends can’t do that either).
Well, you can "source" a script, so its effects persist in your current shell session. That's a feature of the script and your shell sharing the same language.
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#37unclear 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
bash scripting has ergonomics?
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#38In 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?
If you know of a language that is perfect for all our needs today and tomorrow, please guide us to it.
> What are we missing?
Major concerns would be i) trust in the tooling, ii) quality and accountability, iii) future investment in competent engineering.
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#39unclear 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
Re: Amber the programming language compiled to Bash/Ksh/Zsh
#40Much needed. I have hard time understanding bash.