News for hackers. Stuff that matters.
Re:APL at Volvo by stirfish on Thursday February 22, 2024 @01:57PM (#39471430)
I wanted to do some statistics, so I accidentally learned J (thinking it was R). J is like APL, but with digraphs (multiple characters) instead of special characters as symbols.
Re:APL at Volvo by clusterhacks on Thursday February 22, 2024 @02:01PM (#39471479)
Ok, so this is kind of funny but I also want to know - did/do you feel productive with J for stats work?

Did you ever switch to R? If so, how would you describe the two languages to a non-programmer?

Re:APL at Volvo by stirfish on Thursday February 22, 2024 @04:02PM (#39473193)
I don't think I ever actually did any stats with J, but I did play with it for a long time.

J is like an old school text adventure where you start with a blank screen that reads "You are in the woods" and, before you know it, it's Monday morning and you're considering calling out of work because you've almost decoded some elvish runes you found on a rock.

R is the single player campaign of a modern first person shooter, where you have infinite lives and your health regenerates if you sit and think for a while.

This isn't a perfect analogy. Maybe J is high school Spanish class, and R is Google translate? I remember enjoying J as a language and R as a tool. It's exciting to express new things in J. It's easy to do familiar things in R.

R also is really well documented - there was a time where experts were asking basic questions on Stack Overflow and answering them themselves, because that's where people look for documentation.

Re:APL at Volvo by airstrike on Thursday February 22, 2024 @04:48PM (#39473754)
> This isn't a perfect analogy.

It's pretty damn good!

Re:APL at Volvo by ngcc_hk on Thursday February 22, 2024 @05:23PM (#39474165)
Yes. I like the wool and first personal shooter more.
Re:APL at Volvo by persnickety on Thursday February 22, 2024 @02:01PM (#39471481)
How does one accidentally learn a different programming language?
Re:APL at Volvo by mandarax8 on Thursday February 22, 2024 @02:13PM (#39471646)
On the J website the first sentence is: 'J is a high-level, general-purpose programming language that is particularly suited to the mathematical, statistical, and logical analysis of data.'

So I can see him thinking he has the correct language.

Re:APL at Volvo by 0xdeadbeefbabe on Thursday February 22, 2024 @02:15PM (#39471661)
Sounds like a Neal Stephenson beginning.
Re:APL at Volvo by kstrauser on Thursday February 22, 2024 @03:05PM (#39472354)
"The analyst's cheeks warmed as she looked around the room, realizing they were talking about something different than she expected."
Re:APL at Volvo by infostud on Saturday February 24, 2024 @07:28AM (#39491019)
I've been trying to improve my J skills by doing the https://adventofcode.com/2022 puzzles. I got stuck on day 7 because recursion in J is possible but an advanced level incantation. Day 1 was five short lines of code for Part One and another two lines for Part Two. Each line of code needed four or five long lines of documentation.