News for hackers. Stuff that matters.
Re:Amber – the programming language compiled to Bash by hnlmorg on Wednesday May 22, 2024 @02:44PM (#40444599)
There are lots of new shells around that does support everything you’re describing. Eg:

- nushell

- elvish (was featured on HN recently)

- powershell

- murex (disclaimer: I’m the author of that one)

Re:Amber – the programming language compiled to Bash by jonathankoren on Wednesday May 22, 2024 @04:45PM (#40446299)
Yeah. Sh needs to be abandoned. There's a million better alternatives, including those without such an asinine syntax.
Re:Amber – the programming language compiled to Bash by nucleardog on Wednesday May 22, 2024 @11:48PM (#40450273)
If I’m going to install a tool to run my code, why would I pick any of these alternatives instead of going straight to a “real” programming language?

Most of the value in sh to me is that it’s ubiquitous. I write a script and the runtime is already available across most devices, operating systems, containers, and everywhere else without an extra steps.

Re:Amber – the programming language compiled to Bash by hnlmorg on Thursday May 23, 2024 @02:30AM (#40451178)
Because a shell is also REPL for interacting with command line utilities. It solves a different problem to “real programming languages”.