News for hackers. Stuff that matters.
Re:Ivy – An interpreter for an APL-like language by eis on Sunday August 07, 2022 @06:32AM (#32375380)
Fully agreed. I stopped considering this practical in any way when I read

> 3*4+5 is 27

I'm sorry but if your calculator does not follow standard mathematical rules for operator precedence then I'm out. But the space issue takes it to another level.

I also get it, it derives from APL which is right to left and all operators have same precedence but it's just so far from practically usable for normal people... there's a reason noone uses APL today. And sure it's just a plaything but seems weird to even create apps for iPhone, iPad and Android and a logo for it.

Re:Ivy – An interpreter for an APL-like language by mananaysiempre on Sunday August 07, 2022 @09:09AM (#32376208)
Quick, what should be the order of precedence among (binary!) flip, transp, rot, rho, and iota?

APL / Ivy have so many operators a conventional precedence order would likely be completely impossible to remember or work with.

(One option I’d consider viable in general would be to define associativity and perhaps compatible groups like {+, -} or {*, /} but force explicit parentheses when operators from different groups are used, but that wouldn’t feel like a calculator.)

Re:Ivy – An interpreter for an APL-like language by iasay on Sunday August 07, 2022 @08:09AM (#32375847)
Agree with this.

I’d rather actually we used postfix notation as that not ambiguous at all. I would like a modern “dc” written in Go if I’m honest. With engineering units, BCD decimal arithmetic, blackjack and hookers.

Actually if there was a postfix notation spreadsheet with that capability it would be an interesting tool.

Re:Ivy – An interpreter for an APL-like language by kqr on Sunday August 07, 2022 @12:27PM (#32377669)
Isn't Emacs calc-mode what you're asking for? You can use it as a stand-alone application even if you don't use Emacs for anything else.
Re:Ivy – An interpreter for an APL-like language by iasay on Sunday August 07, 2022 @12:46PM (#32377797)
That’s like going to Japan to eat sushi. I’d rather make it at home :)
Re:Ivy – An interpreter for an APL-like language by kqr on Sunday August 07, 2022 @01:12PM (#32377970)
Sushi is very easy to make compared to replicating calc-mode.

It's more like going to Japan to ride a Japanese train. Would you rather build a full-scale replication in your back yard?

Re:Ivy – An interpreter for an APL-like language by iasay on Sunday August 07, 2022 @01:17PM (#32378005)
True but sometimes we do things for the journey :)