News for hackers. Stuff that matters.
Re:A raytracer in 7 lines of 'K' by gruseom on Monday November 16, 2009 @12:09PM (#944745)
Except that a machine language program would be thousands if not millions of times as long.

Readability is relative. Java is unreadable to my grandmother. Turkish is unreadable to me. In other words, the opinion of someone who hasn't learned a language regarding its readability is irrelevant.

It is true that the way you read a language like this is different from the way you read Java. You don't expect to grok a line of code atomically, then move to the next line. It's more like reading math: you work with each line, understanding what makes it tick. No doubt that doesn't appeal to everyone. But the APL/K/J people do amazing things.

The ultimate answer as to whether or not this is just line noise? http://kx.com/Customers/end-user-customers.php

Re:A raytracer in 7 lines of 'K' by jacquesm on Monday November 16, 2009 @12:18PM (#944772)
> Readability is relative. Java is unreadable to my grandmother. Turkish is unreadable to me. In other words, the opinion of someone who hasn't learned a language regarding its readability is irrelevant.

What a gem!

I should start a collection of those, every now and then you get these things you can just frame and look at three times a day here.

Re:A raytracer in 7 lines of 'K' by gruseom on Monday November 16, 2009 @12:35PM (#944820)
I'm just glad somebody got my point. It seems so obvious, yet it must not be, because the contrary is much more common. It especially bears repeating in the context of a largely undiscovered gem like K.
Re:A raytracer in 7 lines of 'K' by Luc on Monday November 16, 2009 @02:08PM (#945038)
> Except that a machine language program would be thousands if not millions of times as long.

Oi, I seriously doubt that. Seriously, millions? It's all math. Take a couple of assembler instructions per operation. I bet there's 256 byte assembler demo's out there...

Re:A raytracer in 7 lines of 'K' by gruseom on Monday November 16, 2009 @04:32PM (#945335)
You're probably right. I was thinking maybe millions of 0s and 1s (if those count as tokens at the lowest level) but that's getting silly.