Can someone correct me if I'm wrong?
Looking at the front page of HN, I think it's pretty safe to say it's moved a fair distance from news of only VCs, startups and such to the realm of what we find interesting. This is interesting. It's not useful, particularly well built or even presentable at a sales meeting. But it is interesting.
What function is the Mona Lisa accomplishing behind layers of glass, with security guards posted 'round the clock, in a museum in France?
[edited to improve wording]
And this program, my friends? This is art.
Nor will I, or much of anyone else, I imagine. I respect it because it stimulates my mind. My imagination is moved by it in much the same way that it's moved by holding an acorn in my hand while contemplating a fully grown oak tree. Or studying the math that causes z <- z^2 + C to describe a ridiculously intricate shape. Or implementing my own minimal Lisp interpreter from scratch. Or trying to understand the Banach-Tarski paradox. These things stimulate my sense of wonder because they're like a magic trick, but there's no trickery involved. And when I contemplate them, I learn more about the world. Art cannot aspire to much more than that.
Eli Siegel explains in his great essay "The Serious Aspect of Snobbery":
Snobbery is the unwillingness to like something, unless at the same time it
makes one feel more important;...
[It] is the inability or lack of desire to appreciate justly.Also, in what way is this exercise not exploratory?
I hope you're just being sarcastic.
I would however claim that the vast majority of art does stimulate the mind, though it may not stimulate yours without some additional effort. Indeed just about anything in the world is capable of stimulating your mind if you look closely enough at it, to paraphrase John Cage.
[1] ... or, if we take a 'vibrant matter' / 'object oriented ontology' view of the world, stimulate something.
The point of contention here is that someone of that level of intellect has "wasted" their talent on art, rather than productivity, which "should" come first.
For varying definitions of "should" and "wasted", of course.
P.S. Knitting a sweater takes forever too. Especially if it has buttons.
What is sad is that the author probably has no plan to explain how it was accomplished, which prevents anyone from learning from this.
In the "spoiler" section:
""" Normally quines are made like this:
s = (something that generates your own source code)
puts s
At the same time, a Ruby program that outputs a Perl program looks like this: puts "print(\"...\");"
If you combine these with quine methods, you get a multi-quine that goes between Ruby and Perl: s = (something that generates your own source code)
puts "print(\"#{ s }\");"
Theoretically you just repeat this process. Except, there are the following practical problems: - Need proper escaping
+ Lots of old languages do not support C style of escape sequences.
+ Depending on languages, you need to escape interpolations.
- Cobol and Fortran programs have troublesome constraints
+ Need 7 spaces on the left and less than 80 columns per line, etc.
- Naive escaping will cause intermediate files to get too large.
+ JVM Strings have 64K size limit.
+ Languages like Intercal and Whitespace will become unbearably slow.
In order to avoid these, Perl requires something like ppencode, Java needs LZW compression to avoid string size limits. Cobol's line length limit was satisfied using Closure generator, Fortran's line length limit was satisfied using Coffeescript generator. People who are interested should see the generated code.
"""In general, there isn't any standard method to making quines. You just keep on tweaking the code until the input and output matches, mostly by trial and error.
I don't think so.