News for hackers. Stuff that matters.
Re:My Ideal Array Language by nromiun on Monday August 04, 2025 @11:23AM (#44787110)

  ⊢×0≠∧˝˘∧⌜∧˝           # Marshall & Dzaima (tacit!)
  (≠⥊∧´)˘{×(⌾⍉∧)0≠} # Dzaima & Rampoina
  {×(∧˝˘∧≢⥊∧˝)0≠}     # Dzaima
Call me old fashioned and stuck in C style syntax but I can't imagine anyone describing this as beautiful art.
Re:My Ideal Array Language by badlibrarian on Monday August 04, 2025 @11:43AM (#44787406)
When the junior programmers start saying "Turing complete" or the academics build a DSL in Julia that uses RegEx to parse Logic Symbols and stuffs the result in variables that use ancient characters that don't appear on your keyboard, it's a sure sign of imminent progress. Bonus if the PhD with nine years of schooling and five months of PHP experience at Facebook starts using emoji in commit messages.
Re:My Ideal Array Language by hinkley on Monday August 04, 2025 @01:48PM (#44789169)
“irony! Oh, no, no, we don't get that here. See, uh, people ski topless here while smoking dope, so irony's not really a, a high priority. We haven't had any irony here since about, uh, '83, when I was the only practitioner of it. And I stopped because I was tired of being stared at.”
Re:My Ideal Array Language by hyperbrainer on Monday August 04, 2025 @11:36AM (#44787302)
I see it as beautiful the same way Galadriel would be beautiful as the Dark Queen. Utterly captivating and powerful, and yet something that should never be.
Re:My Ideal Array Language by KineticLensman on Monday August 04, 2025 @11:48AM (#44787499)
"All shall love me and despair"
Re:My Ideal Array Language by ashleyn on Monday August 04, 2025 @11:43AM (#44787412)
Re:My Ideal Array Language by icen on Monday August 04, 2025 @11:53AM (#44787583)
It is BQN, a descendant language
Re:My Ideal Array Language by pavlov on Monday August 04, 2025 @12:34PM (#44788151)
Why is it BQN instead of BQM? Clearly the idea was to increment every letter from APL, but then they had to go one further on the third letter.
Re:My Ideal Array Language by BoiledCabbage on Monday August 04, 2025 @03:33PM (#44790452)
This actual answer according the the author realized after he already liked the name.

He created it intending to be +1 of APL. Accidentally came up with BQN instead of BQM. Sat with that for 1hr, really liked the name, then realized that it should be BQM which he hated, so he stuck with BQN.

That said, it's and incredibly designed language. I honestly have never read any language (especially not designed by a single person) with the level of creative thought as he put into BQN. Some really incredible insights and deep understanding. It's amazing reading his posts / documentation about it. The focus on ergonomics, brand new constructs and the consistency/coherence of how all of his decisions fit together is really impressive.

Re:My Ideal Array Language by layer8 on Monday August 04, 2025 @05:31PM (#44791606)
So, you write bequations in it? ;)
Re:My Ideal Array Language by cenamus on Monday August 04, 2025 @03:21PM (#44790280)
I'm somewhat sure the author actually mentioned that that was the intention, "Big Question Notation" and basically "apl" + 1. But he realized that it didn't match up
Re:My Ideal Array Language by taolson on Monday August 04, 2025 @02:43PM (#44789853)
Supposedly it stands for "Big Questions Notation", but that could just be a backronym.
Re:My Ideal Array Language by hinkley on Monday August 04, 2025 @01:50PM (#44789193)
I’m hoping they pronounce it “beacon” but the off by one error jokes also just write themselves.
Re:My Ideal Array Language by rscho on Monday August 04, 2025 @02:54PM (#44789992)
No, it's 'bacon' :-)
Re:My Ideal Array Language by ModernMech on Monday August 04, 2025 @02:09PM (#44789471)
They were following a Fibonacci sequence.
Re:My Ideal Array Language by mlochbaum on Monday August 04, 2025 @12:43PM (#44788290)
It's just. So gross. Say it. Sudden interruption of slime coming up your throat. Like walking out the door into a spiderweb. Alphabetically I was mistaken but in every way that matters I was right.
Re:My Ideal Array Language by pavlov on Monday August 04, 2025 @12:53PM (#44788426)
Hmm. I guess it if was BQM, it would be pronounced “bequem” which means comfortable in German.

And a comfortable APL is clearly an oxymoron.

Re:My Ideal Array Language by mlochbaum on Monday August 04, 2025 @12:59PM (#44788512)
Ordinarily I'd make fun of the Germans for giving such an ugly name to a nice concept, but I've always found "comfortable" to be rather unpleasant too (the root "comfort" is fine).
Re:My Ideal Array Language by mlochbaum on Monday August 04, 2025 @12:36PM (#44788184)
Well, do you know how it works? Don't judge a book by its cover and all. Although none of these are entirely aiming for elegance. The first is code golf and the other two have some performance hacks that I doubt are even good any more, but replacing ∧≢⥊ with ∧⌜ in the last gets you something decent (personally I'm more in the "utilitarian code is never art" camp, but I'd have no reason to direct that at any specific language).

The double-struck characters have disappeared from the second and third lines creating a fun puzzle. Original post https://www.ashermancinelli.com/csblog/2022-5-2-BQN-reflecti... has the answers.

Re:My Ideal Array Language by skydhash on Monday August 04, 2025 @01:03PM (#44788569)
Array Programming is an acquired taste, but once you do, solutions can be extremely simple, both to write and to explain.

Think about using matrix to describe geometric transformations instead of using standard functions.

Re:My Ideal Array Language by badlibrarian on Monday August 04, 2025 @03:52PM (#44790639)
You mean abstracted stuff like this instead of two lines of code that actually uses x and y?

  [ cos(θ)  -sin(θ)  0  0  ]
  [ sin(θ)   cos(θ)  0  0  ]
  [ 0        0       1  0  ]
  [ 0        0       0  1  ]
Re:My Ideal Array Language by ssivark on Monday August 04, 2025 @11:22PM (#44793995)
Yes, absolutely. Once you've expressed data as appropriate tensors (not all languages make this super convenient, unfortunately), it makes the implementation very readable, and easy to ensure that it's bug-free. It lets you see what is going on. Much better than futzing around with tensor components!
Re:My Ideal Array Language by rscho on Monday August 04, 2025 @02:58PM (#44790027)
This type of syntax allows rapid iteration when looking at different implementations and experimenting with array problems. It should be thought of more as math notation than general programming.