News for hackers. Stuff that matters.
Re:Amber – the programming language compiled to Bash by orthecreedence on Tuesday May 21, 2024 @11:50PM (#40437134)
Quick note to the creators: the website looks almost exactly like every other "here try this cool command-line utility so we can hook you and start charging a service fee for it" startup website and I instantly distrusted it. The design communicates that you're selling a product, not providing an open-source utility.

That said, very interesting syntax. I agree with others about the $...$ being kind of odd, but other than that this is really cool.

Re:Amber – the programming language compiled to Bash by chrisjharris on Wednesday May 22, 2024 @12:02AM (#40437200)
I agree. I think that these fancy visuals are not the right way to appeal to the target user base. I just want to read some text.
Re:Amber – the programming language compiled to Bash by nickm12 on Wednesday May 22, 2024 @01:37AM (#40437669)
I had the same exact reaction. Being an open source project doesn't mean the website has to be ugly or bare bones (though plenty are). But this is sending the wrong expectations about the project.
Re:Amber – the programming language compiled to Bash by karmarepellent on Wednesday May 22, 2024 @02:08AM (#40437822)
I think the project itself sounds very intriguing and I am sure to follow how it evolves. But I have to agree with you about the website. There are also some little inconveniences in there that are sure to annoy a technical minded person. Like the links on the upper right corner (GitHub etc.) that are not in fact links (<a>).
Re:Amber – the programming language compiled to Bash by chimen on Wednesday May 22, 2024 @02:09AM (#40437828)
Pretentious little princesses, get out of your imaginative worlds.
Re:Amber – the programming language compiled to Bash by Woeps on Wednesday May 22, 2024 @04:39AM (#40438752)
What does this have to do with their comment? The poster was giving feedback about a concern (maybe not a concern but something that they noticed).
Re:Amber – the programming language compiled to Bash by zxexz on Wednesday May 22, 2024 @02:42AM (#40437993)
I was more put off more by the initial example. Amber being used to calculate an age being less than 18. With sed. Seems almost like an attempt at humor, except the bit where one would laugh.
Re:Amber – the programming language compiled to Bash by forgotpwd16 on Wednesday May 22, 2024 @04:10AM (#40438532)
This is the compiled to Bash part. Sed is used because `bc -l` can return a float when integer is expected. Not sure if can be done better in generic case but it isn't unheard. Certainly can be optimized for some cases. (Here e.g. can use Bash's built-in integer arithmetic.)
Re:Amber – the programming language compiled to Bash by kwhitefoot on Wednesday May 22, 2024 @04:35AM (#40438720)
But why does it use bc in the first place? Bash does integer arithmetic perfectly well on its own.

Amber claims to be type safe so it should have enough information to avoid the the use of bc in this case.

Ah, just looked at the documentation. Amber doesn't have integer types just a number type. That means that any numerical operation in Amber is pretty much guaranteed to be very inefficient.

It's a very strange choice to make because the underlying 'machine code' supports both integers and floating point.

Re:Amber – the programming language compiled to Bash by wrasee on Wednesday May 22, 2024 @07:11AM (#40439592)
This is the first thing I noticed. Using ‘bc’ and ‘sed’ for integer comparison seems quite odd.

But then they chose this for their front page example, the one that everyone will see, so I assumed this was to demonstrate something clever I just didn’t understand.

I wonder what the motivation was to not have an integer type?

Re:Amber – the programming language compiled to Bash by queuebert on Wednesday May 22, 2024 @10:34AM (#40441525)
You could also do the extremely readable `| cut -f1 -d.` which will do nothing for an integer.
Re:Amber – the programming language compiled to Bash by ape4 on Wednesday May 22, 2024 @10:45AM (#40441641)
Its ugly code - why would they show it off.
Re:Amber – the programming language compiled to Bash by robxorb on Wednesday May 22, 2024 @04:38AM (#40438746)
Somehow I didn't get that impression from the website at all.

I thought it was clear, functional, told me everything I needed to know in the order I needed to know it, and also looked nice - tying into the "amber" branding well.

Maybe I just don't spend enough time on websites that are designed to hook me in and start charging a fee? ;)

Re:Amber – the programming language compiled to Bash by pmontra on Wednesday May 22, 2024 @05:49AM (#40439149)
It's not a big deal by I second that. I also thought, "let's see how they are making money out of this". I clicked on the github link and found out it's GPL 3.0, all of it, no open core or similar stuff.

Maybe a tiny note about it being open source could help.

Re:Amber – the programming language compiled to Bash by PartiallyTyped on Wednesday May 22, 2024 @05:58AM (#40439190)
Also a note about it being Free as in Beer.
Re:Amber – the programming language compiled to Bash by 533474 on Wednesday May 22, 2024 @07:11AM (#40439589)
Free as in Freedom, not free as in free beer...
Re:Amber – the programming language compiled to Bash by mst on Wednesday May 22, 2024 @08:11AM (#40439992)
In this case, as in both.
Re:Amber – the programming language compiled to Bash by hedora on Wednesday May 22, 2024 @10:53AM (#40441765)
GPL 3 isn't great for either. From a commercial perspective, you can only use it if you lock your stuff up in a datacenter, but not if you ship it on a device that customers own. In practice, that means GPL 3 is not only supporting surveillance capitalism, but is also banning use in commercial systems that do not spy on their users. (The US CLOUD Act says that you have to provide the government with access to all machines you have access to, even if they are overseas. In practice, that means that any commercial GPL 3 stuff that has a footprint in the US is globally subject to US-style dragnet surveillance.)

Granted, bash is now GPL 3 (which is why Apple has to ship an obsolete version, and now defaults to zsh), so you can't use Amber on machines where GPL 3 won't fly (unless it can also compile to posix shell, zsh, etc).

Anyway, if you're interested in freedom for your users, I'd suggest AGPL 3, since it prevents people from locking it up inside the cloud or shipping with proprietary operating systems. At least that way, you're not stripping users' right to privacy like GPL 3 (inadvertently?) does.

These days, Apache and BSD-style licenses are looking better than ever to me, at least when I'm at work.

[edit: You can sell machines with Coreboot (and maybe a proprietary BIOS) + bash. However, you can't ship things that use a secure boot mechanism.

From reading the FSF documentation, it's not clear to me if it's OK to ship a GPL 3 userland on a machine with secure boot enabled, even if it can be disabled later. Apple apparently decided that it is not.]

Re:Amber – the programming language compiled to Bash by pasc1878 on Wednesday May 22, 2024 @06:26AM (#40439331)
No as I really don't understand that - beer costs money.
Re:Amber – the programming language compiled to Bash by Jenk on Wednesday May 22, 2024 @06:57AM (#40439509)
It's taken from "Free as in [Free] Beer vs Free as in [Free] Speech"

Gratis vs Libre - the former is zero cost (i.e., you're not paying for the free beer), the latter is some cost (i.e., there is a price for free speech - we need to defend the right, accept we won't like everything that is said, etc.)

Re:Amber – the programming language compiled to Bash by DaSHacka on Wednesday May 22, 2024 @06:35AM (#40439391)
Precisely, beer costs money so "free as in beer" means "free as in money" as opposed to "free as in freedom" that means "free as in ideology"

Gmail is free as in beer, but not free as in freedom, while RHEL is free as in freedom, but not free as in beer.

Re:Amber – the programming language compiled to Bash by pmontra on Wednesday May 22, 2024 @06:34AM (#40439385)
Yes, that should change to Free as in Air.
Re:Amber – the programming language compiled to Bash by epidemian on Wednesday May 22, 2024 @10:59AM (#40441848)
"free beer" means something very different to "free speech". That's what the phrase refers to.
Re:Amber – the programming language compiled to Bash by 0x457 on Wednesday May 22, 2024 @02:36PM (#40444491)
It's a difference between the freedom to say "I want a beer" and a free beer given to you. That it means it's free in a monetary sense.
Re:Amber – the programming language compiled to Bash by pasc1878 on Thursday May 23, 2024 @09:06AM (#40454209)
That is the nearest to an explanation in all the answers ie saying "Beer is NOT free' all the others still confuse me as I read its literally. and 'Free as in beer' makes no sense so the whole thing just does not compute.

I do understand what GPL does and the reasons for this just not this slogan.

Re:Amber – the programming language compiled to Bash by Tao3300 on Wednesday May 22, 2024 @08:17AM (#40440046)
I think the biggest issue is the image of the floating chunk of amber plugged into computers. It looks 100% like something you'd see from yet another Ethereum hustle.
Re:Amber – the programming language compiled to Bash by SuperHeavy256 on Wednesday May 22, 2024 @08:21AM (#40440085)
I actually thought the UI was very nice, and more open source utilities need to have good UI on their websites.