News for hackers. Stuff that matters.
Re:Learning APL by throwaway675309 on Friday August 06, 2021 @07:24PM (#28093956)
With modern day IDEs, auto suggestions would likely lead most developers to easily discovering the exact syntax for "product".

Additionally, words that describe the inherent function makes reading the source A THOUSAND TIMES easier.

If A new developer sees the word max/min/sum, they can almost assuredly guess the meaning versus a random pictograph. And even after learning that ‰ means reduce (for example), it's just one more thing that I have to remember.

Re:Learning APL by rak1507 on Friday August 06, 2021 @07:35PM (#28094051)
> With modern day IDEs, auto suggestions would likely lead most developers to easily discovering the exact syntax for "product".

Sure. I don't doubt this. However, if your language is good enough, it's unnecessary. I don't want to rely on an IDE for something as straightforward as taking the product of a list of numbers.

> words that describe the inherent function makes reading the source A THOUSAND TIMES easier

If your functionality is complicated, this is probably true! No one's saying not to use descriptive function names in APL. You absolutely can (and probably should) for things used multiple times more complicated than a couple of symbols. However, in general I don't think this is true. Have you tried?

With regards to guessing the meaning, you do have a good point. If you show someone some APL, and they've never seen it before, it will most likely be completely unreadable, unless they've defined some sort of custom DSL. It doesn't mean they can't pick it up though.

Comparing q and APL again, if I see the word 'raze' in q, without knowing what that is already (looking at docs etc) it's basically impossible to guess. In APL, that would be ,/ instantly readable as 'reduce by concatenation'.

> it's just one more thing that I have to remember

Yes, you'll have to remember the symbol for reduce. But you won't have to remember the word for sum, product, any, all, raze, max, min...

Seems worth it to me!

Re:Learning APL by dzaima on Friday August 06, 2021 @07:41PM (#28094098)
To note is that, while it's easy to remember the word for sum/product/any/all/raze/max/min, you have to know that there's a word for it in the first place.

In contrast, in APL, once you know about reduce, there's just one way any of those could be written, and it's obvious. And after you learn about scan (cumulative reduction), you also know the cumulative version for all of those!

Re:Learning APL by dzaima on Friday August 06, 2021 @07:33PM (#28094039)
in APL you have ~80 of such "pictographs" (and many you'd already know from regular maths). Sure, it's something you have to remember, but not much, really. Words can definitely help new english-speaking devs understand code, but, after getting used to the symbols, they just provide so much flexibility.
Re:Learning APL by nuclearnice1 on Friday August 06, 2021 @11:02PM (#28095308)
In practice, how do you type the pictographs when coding?
Re:Learning APL by razetime on Saturday August 07, 2021 @12:37AM (#28095723)
In general programming I like to use a keyboard layout which allows typing APL glyphs with Right Alt: https://github.com/abrudz/Kbd
Re:Learning APL by Jtsummers on Friday August 06, 2021 @11:58PM (#28095560)
Depends on the editor. https://tryapl.org

Hover over the characters at the top to get a sample of a couple ways it might be done.

Re:Learning APL by yiyus on Saturday August 07, 2021 @06:42AM (#28097532)
> words that describe the inherent function makes reading the source A THOUSAND TIMES easier

I disagree. Using add instead of +, for example, does not make code more readable at all, on the contrary.