14 ms·
A crazy Ruby quine: a spinning globe.
- vito 16y agoEqually impressive: http://d.hatena.ne.jp/ku-ma-me/20090916 http://d.hatena.ne.jp/ku-ma-me/20090916 A Ruby -> Python -> Perl -> Lua -> OCaml -> Haskell -> C -> Java -> Brainfuck -> Whitespace -> Unlambda -> Ruby quine!
- chrisaycock 16y agoA polyglot quine! There should be special obfuscated contest just for that.
- jpadvo 16y agoDoes anyone know what kind of process was used to create this?
- softbuilder 16y agoPort from the original Perl version.
- itsnotvalid 16y agoWhere is the original Perl version?
- roadnottaken 16y agoHere is one: http://www.perlmonks.org/?node_id=332609 http://www.perlmonks.org/?node_id=332609
- riffraff 16y agoI don't think that's the same thing: the perl code is a spinning world visualization, the ruby code is code producing other code that in the end produces the original one, where the different programs _also_ are visualization of the world, which is a tad cooler :)
- JonnieCache 16y agoWith this kind of thing, I think there is a strong case for the idea that you really do need to be born with the right kind of brain.
- SlyShy 16y ago1. Copy one of the above as a.rb. 2. Run while true; do clear; ruby a.rb | tee b.rb; sleep 1; mv -f b.rb a.rb; done
- exch 16y agoThis is certainly an amazing piece of work.
- rbxbx 16y agoAt least the Japanese rubyists remember how to have fun :)
- donniefitz2 16y agoThat is truly impressive.
- roadnottaken 16y agoThat is pretty cool, but the ultimate work of this type that I've seen is this mandelbrot fly-through in perl: http://www.perlmonks.org/?node_id=329492 http://www.perlmonks.org/?node_id=329492 Seriously -- try it.
- orangecat 16y agoAwesome. Works perfectly on OS X.
- gommm 16y agoHis translated version of the article http://mamememo.blogspot.com/2010/09/qlobe.html http://mamememo.blogspot.com/2010/09/qlobe.html (not that there is much to read :-) ) It's really impressive :-)
- oshow 16y agoHere is his presentation video about quine at RubyKaigi2010: http://vimeo.com/14817369 http://vimeo.com/14817369 (Japanese)