On Mon, 6 Dec 2004 14:37:26 +0900, Brian Mitchell <binary42 / gmail.com> wrote:
> This one has a random rule set and a randomized initial generation.
> Not very good at all. I posted to IRC to see what could get shortened
> and got this from Christian Neukirchen (chris2 on freenode):
> 
> # no random and using rule 110
> # This is probably better suited for a sig
> t="."*60<<?#;loop{s,t,c=t,'',-1;s.each_byte{t<<(%'### #..
> ...'.include?((".#{s}..")[c+=1,3])?'.':'#')};puts t;sleep 0.1}
> 
> Quite impressive regrading readability :)

Come on, this is really readable compared some some Perl around...
and did you already see my dc(1) hack? :)

> Do you guys have any neat one liners? Can you improve on this one?

How about this nice, 134 bytes CGI blog?:

puts"Content-type: text/html\n\n<h1>Blog",Dir["*.entry"].sort_by{|f|-File.
mtime(f).to_i}.first(9).map{|f|'<h2>'+File.read(f)+'<hr>'}

Happy hacking,
Christian Neukirchen