Live data from Hacker News

Amber: Programming language compiled to Bash

amber-lang.com

231–240 of 330 posts

Re: Amber: Programming language compiled to Bash

#231

Earlier quoted context omitted.

Why would I ever use perl5 instead of just using AWK? /s

Silly comment. Awk is nonstandardized, different in different environments. Perl5 is the same everywhere. don't you recall that that's actually the main reason perl was invented, as a more powerful and more uniformly compatible replacement for awk?

> Awk is nonstandardized, different in different environments.

Awk has been standardized in posix since 1985.

Re: Amber: Programming language compiled to Bash

#233

Earlier quoted context omitted.

I'm trying to help people here. I know some young people may not even be aware of older options and not realize this problem has already been solved repeatedly. They are free to disregard my advice, so I find your objection more nonsensical

How does this help though? Why should we stick to old software? Why advocate for inertia?

Because solving new, current problems is more valuable than re-solving old ones? Is the new thing good? Yes. Is the old thing good? Yes. Both can be true. And, there is some value in better solutions to old problems.

But if you're looking for "reason" I think that falls on not re-doing the same thing over and over again.

Re: Amber: Programming language compiled to Bash

#234

Earlier quoted context omitted.

Why would I ever use perl5 instead of just using AWK? /s

Silly comment. Awk is nonstandardized, different in different environments. Perl5 is the same everywhere. don't you recall that that's actually the main reason perl was invented, as a more powerful and more uniformly compatible replacement for awk?

I've written some fairly complicated programs meant to run on a very wide range of Awks, and while there are minor differences between dialects, it isn't hard to stick to the POSIX-standard core language.

Re: Amber: Programming language compiled to Bash

#235

Earlier quoted context omitted.

Have you tried perl or are you just judging it based on strreotypes? The only weird syntax relative to something like JavaScript is $ at the front of variables. There's a lot of funky syntax and features available but you do not have to use any of them. If you are writing a new script from scratch it is easy to make it look almost the same as JavaScript but with every variable having a $ on front. Also, amber is a ne…

> There's a lot of funky syntax and features available but you do not have to use any of them. The problem is that it's difficult to know which features you should use and which you shouldn't. And good luck enforcing your desired style if you're working with other developers (it's possible, but painful). Perl is a highly complicated language with many sharp edges that catch out even experienced Perl devs. The Perl ec…

You're arguing against Perl or JavaScript?

Re: Amber: Programming language compiled to Bash

#236

Earlier quoted context omitted.

Have you tried perl or are you just judging it based on strreotypes? The only weird syntax relative to something like JavaScript is $ at the front of variables. There's a lot of funky syntax and features available but you do not have to use any of them. If you are writing a new script from scratch it is easy to make it look almost the same as JavaScript but with every variable having a $ on front. Also, amber is a ne…

> There's a lot of funky syntax and features available but you do not have to use any of them. The problem is that it's difficult to know which features you should use and which you shouldn't. And good luck enforcing your desired style if you're working with other developers (it's possible, but painful). Perl is a highly complicated language with many sharp edges that catch out even experienced Perl devs. The Perl ec…

Perl was literally reborn with "Perl Best Practices". Perl::Critic has more rules that you'd ever wish for, Perl::Tidy is the most configurable code formatter there is. This had been true for 10-15 years already. Which part do you find painful and is this your idea of "no decent tooling"?

Re: Amber: Programming language compiled to Bash

#237

Cool idea. In practice: they already did this and it's called PERL! Why would I ever use this instead of just using perl5, which solves all these problems already and is preinstalled on every Unix machine I've ever seen (and I've seen a lot from HPUX to AIX) since there's always some ancient innards component that depends on it, so it's basically impossible to remove... And even if you don't know perl, you're better…

Does PERL compile to bash? I thought it had its own interpreter. I can't figure out if you're one of those weird people that try to derail threads or if PERL is unique in a way that I never realized.

Re: Amber: Programming language compiled to Bash

#238
post #13

Earlier quoted context omitted.

and i dont like how it's inconsistent that echo is not using the $ syntax (which makes sense internally, as it's a built-in, rather than executing the $echo command). Overall, it is cute and neat, but i find that if you are looking to write bash scripts that require this level of programming, you'd be better off writing it in python, or perl. Only in very austere environments can this be utilized, but the requirement…

> the requirement of having `bc` installed means you must also have the ability to run package installation I don't remember ever installing bc, but I use it frequently and it's always there. Are you sure it's not already part of most base systems?

It's part of posix and should be available anywhere a posix like environment is offered.

Re: Amber: Programming language compiled to Bash

#239

Cool idea. In practice: they already did this and it's called PERL! Why would I ever use this instead of just using perl5, which solves all these problems already and is preinstalled on every Unix machine I've ever seen (and I've seen a lot from HPUX to AIX) since there's always some ancient innards component that depends on it, so it's basically impossible to remove... And even if you don't know perl, you're better…

[deleted]

Re: Amber: Programming language compiled to Bash

#240

Why does the documentation need WebGL? I have WebGL disabled in my main browser for privacy reasons (super-easy to fingerprint), and I only get to see 'Application error: a client-side exception has occurred (see the browser console for more information).' with an error about ThreeJS initialization in the console. I assume it's for the fancy animation, and I find that ridiculous. Loading a whole 3D library just to sh…

[deleted]
Post reply on HN