News for hackers. Stuff that matters.
Re:APL matrix product operator by leafario2 on Sunday September 09, 2018 @02:54PM (#17947206)
Any time I see APL code, I feel slightly stupid.
Re:APL matrix product operator by FreeFull on Sunday September 09, 2018 @03:40PM (#17947374)
For the APL-family of languages, it's generally easier to write code than it is to read it.
Re:APL matrix product operator by rpz on Sunday September 09, 2018 @04:26PM (#17947594)
Agreed. Interesting thought: Would you or anyone else here also agree that it is generally easier to write mathematical notation than to read it?

In my experience its much easier to write almost anything, whether it be code, poetry, english, etc. As opposed to reading it. I'm interested to hear your thoughts.

Edit: Maybe i shouldnt say much easier. One could argue its much easier to read a novel than it is to write one, and i'd agree :)

Re:APL matrix product operator by akira2501 on Sunday September 09, 2018 @09:14PM (#17948727)
> Would you or anyone else here also agree that it is generally easier to write mathematical notation than to read it?

Yes. In my estimation, it's due to a much higher density of conceptual ideas being expressed. I honestly prefer imperative code for stepping through a new idea because it simply can't be expressed in most dense and compressed form and probably because it's what I'm most familiar with.

> One could argue its much easier to read a novel than it is to write one, and i'd agree :)

I think it's because novels assume you're starting from a position of ignorance. Probably why I could never read Pynchon.

Re:APL matrix product operator by yiyus on Sunday September 09, 2018 @05:56PM (#17947996)
I like writing using mathematical notation. I like trying to express as much as possible using as few symbols as possible, and not as much rigour as I should. It's something that I used to do to study and I keep doing it for work now. It helps me to understand things better, but I don't think anybody else could understand what I write.
Re:APL matrix product operator by thisrod on Sunday September 09, 2018 @08:40PM (#17948608)
This is a trade off. It's always easy to write unreadable stuff, hard to write stuff that's easy to read, and very hard to write stuff that's easy to read yet long enough to say something worth hearing.
Re:APL matrix product operator by vlasev on Monday September 10, 2018 @01:38AM (#17949621)
Yes. It's quite easy to build up expressions one by one, whereas when you read those expressions, your eye and mind won't necessarily track through the same "derivation".
Re:APL matrix product operator by cnasc on Sunday September 09, 2018 @07:00PM (#17948254)
I seem to recall reading (maybe somewhere in the J docs, though I can't find it now) that some people are more content to rewrite a verb definition than to try and parse it out. That is, if you're refactoring code it's faster to write the thing again but better than it is to do small edits. Since the code is compact, I can see this. Any non-trivial refactoring of a verb is going to replace almost everything anyway.

Definitely a different way of looking at things, and probably something that can only work in such a terse language.