Live data from Hacker News

Quine Relay

github.com

41–50 of 187 posts

Re: Quine Relay

#41
post #8
post #6

Why's there a Star of David in the middle?

a) The author is Jewish b) It's semantically relevant (Probably the latter. Same goes for the typo in the copyright notice in the end.)

He's Japanese, and one of the authors of the Ruby programming language

Re: Quine Relay

#43
post #3

In case someone is able to run this beast, I'd appreciate an upload of the intermediate source files.

I gave it a (very) quick go, but failed and I don't have neither the time nor skill to debug it, I'll throw up what got generated so far if you're interested. https://twitter.com/sikhnerd/status/356920512770867200

Re: Quine Relay

#44
post #38
post #4

Earlier quoted context omitted.

I'm sorry, how is that sad?

possibly that someone clearly very smart wasted his/her intellect doing this, rather than advancing the species by curing obesity, heart disease and cancer?

Which is a silly notion. Everyone needs entertainment and to have fun. Some people do it in different ways than others.

Re: Quine Relay

#46
post #38
post #4

Earlier quoted context omitted.

I'm sorry, how is that sad?

possibly that someone clearly very smart wasted his/her intellect doing this, rather than advancing the species by curing obesity, heart disease and cancer?

The first two are already curable (with food).

Re: Quine Relay

#47
post #15

Earlier quoted context omitted.

Per the explanation linked in the discussion [1], the initial file generates code in another language. That code, when executed, generates code in yet another language. The process continues until the output is the code of the original file. [1] https://github.com/mame/quine-relay

What is unclear to me is how the final program manages to represent the entire code (thus the entire language loop). Wouldn't doing that make the source code recursive and infinite? Or am I missing something important?

If you look at the ruby source file[1], you'll see that the first thing it does is take all of its source and put it in a variable $s. Then it evaluates the source code in that variable, with that source having access to itself as a string. All of the intermediate representations could easily contain this string in its entirety (and they likely do). Hopefully you can see now how it's not so impossible (but still ridiculously awesome!)

[1] https://github.com/mame/quine-relay/blob/master/QR.rb

Re: Quine Relay

#48
I know we shouldn't care about the source, crazy-insane as he obviously is, but FWIW, the author is Yusuke Endoh, one of the Ruby core members. RubySource had an interview with him here:

http://rubysource.com/meet-fifteen-ruby-core-committers/

He lists his "hobby in programming" as: "writing a Quine and enjoying esoteric programming."

Re: Quine Relay

#49
post #38
post #4

Earlier quoted context omitted.

I'm sorry, how is that sad?

possibly that someone clearly very smart wasted his/her intellect doing this, rather than advancing the species by curing obesity, heart disease and cancer?

Do you feel the same way when someone bakes a cake, takes a walk, watches a sporting event, knits a sweater, or writes a poem?

Re: Quine Relay

#50
post #38
post #4

Earlier quoted context omitted.

I'm sorry, how is that sad?

possibly that someone clearly very smart wasted his/her intellect doing this, rather than advancing the species by curing obesity, heart disease and cancer?

I also know plenty of people who waste their intellect painting canvases, when they could be advancing the species by doing something practical. Shall we shed a tear for their wasted efforts as well? But of course not. Art is its own justification.

And this program, my friends? This is art.

Post reply on HN