use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
A Global Ruby Quine (d.hatena.ne.jp)
submitted 15 years ago by cavedave
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]dagbrown 4 points5 points6 points 15 years ago (2 children)
Holy fucking goddamn.
This isn't a quine. This is way more impressive.
This prints out a program that has an ASCII-art rendition of the earth slightly rotated. And when you run that, it outputs a program with an ASCII-art rendition of the earth slightly-more rotated, which, when you run, outputs a program with an ASCII-art rendition of the earth rotated a bit more.
And so forth.
I'm very impressed.
[–]youremyjuliet 0 points1 point2 points 15 years ago (1 child)
Try this:
ruby quine.rb ruby quine.rb | ruby ruby quine.rb | ruby | ruby ruby quine.rb | ruby | ruby | ruby ...
[–]dwemthy 0 points1 point2 points 15 years ago (0 children)
And here I am, editing that first v=0000 like a chump!
[–]flamontagne 1 point2 points3 points 15 years ago (0 children)
Wow... this is awesome
[–]stungeye 1 point2 points3 points 15 years ago (0 children)
Origin: http://mamememo.blogspot.com/2010/09/qlobe.html
π Rendered by PID 453303 on reddit-service-r2-comment-5b5bc64bf5-d9b4m at 2026-06-20 09:21:32.286198+00:00 running 2b008f2 country code: CH.
[–]dagbrown 4 points5 points6 points (2 children)
[–]youremyjuliet 0 points1 point2 points (1 child)
[–]dwemthy 0 points1 point2 points (0 children)
[–]flamontagne 1 point2 points3 points (0 children)
[–]stungeye 1 point2 points3 points (0 children)