The J source code is pretty terrible by colonwqbang in programming

[–]swiz0r 2 points3 points  (0 children)

I didn't understand why APL had that notation until I saw this video. The terse notation only makes sense to me in the context of a computer that prints out everything you type onto paper. If you're using a modern machine, it makes more sense to me to use more space to say the same thing as long as it makes it faster to comprehend.

The J source code is pretty terrible by colonwqbang in programming

[–]swiz0r 6 points7 points  (0 children)

In a paper you see something like

f = m * a

and then a paragraph saying that f is force, m is mass, and a is acceleration. But in a program, you can have longer, more meaningful variable names. Why not use them?

Edit: let me use some actual apl to make my point clearer. In apl, if you want a vector of numbers, you use ι. So the command

ι 5

gives you back

1 2 3 4 5 

But some keyboards don't have that fancy character, so you can say iota instead. But if you are going to use a word, why not something that says more about what it does? ι5 is much shorter than range(5) but that only really matters if space is a premium. I'd only prefer the first one if my terminal is like ten characters wide.

The J source code is pretty terrible by colonwqbang in programming

[–]swiz0r 52 points53 points  (0 children)

Looks like the J code I write, so at least it's consistent.

Reddit, What's the Best White Elephant / Gag Gift That You've Ever Seen? by calikings20 in AskReddit

[–]swiz0r 0 points1 point  (0 children)

They decided that "flavored fortified wines" were bad for society, so banned them all. You can't buy them in Worcester Massachusetts.

Reddit, What's the Best White Elephant / Gag Gift That You've Ever Seen? by calikings20 in AskReddit

[–]swiz0r 0 points1 point  (0 children)

It's banned in Worcester, Massachusetts because the local government decided it causes homelessness.

Happy Birthday to Me: 50 Plus 1 Things I've Learned The Hard Way by reallyshortone in ADHD

[–]swiz0r 5 points6 points  (0 children)

I opened and closed this 6 times without reading it. That's on me, though.

New MIT programming language claims 4x speed-ups for parallel computing by amc22004 in programming

[–]swiz0r 0 points1 point  (0 children)

Another thing about hadoop, it tries very hard to move the computation instead of the data.

Hell of a throw. by stengebt in UNBGBBIIVCHIDCTIICBG

[–]swiz0r 14 points15 points  (0 children)

Did you just assume her gender?

her

BUSTED

Happy international programmers day! by GreenKronic in programming

[–]swiz0r 1 point2 points  (0 children)

Voting is really hard. You have to, like, go to a place and stand in line and stuff. We need to ease the suffrage.

Too advanced to write music by oooskar in iamverysmart

[–]swiz0r 11 points12 points  (0 children)

Getting overwhelmed by the choices sounds like ADD to be honest.

How would AIs trained by each of the major subreddits fair in the Turing test? by Stofflees in AskReddit

[–]swiz0r 0 points1 point  (0 children)

There was a paper a while ago that showed that, in the context of porn, it's pretty easy to pass the turing test. From my own personal experience, I had a porn bot on tumblr that people would hit on.

So, r/sexyrobots would win.