ANN: 2005 International Obfuscated Ruby Code Contest (IORCC)

Dear Fellow Rubists,

My name is Todd Nathan, and it is with great pleasure
to annouce the opening of 2005 IORCC. The Official
International Obfuscated Ruby Code Contest Rules and
FAQ are now online. Please consider entering your
most obfuscated Ruby program, or becoming a judge.

The Official IORCC site: http://iorcc.dyndns.org/

Warm regards,

Todd Nathan
IORCC Founder/Judge
(SeaForth) irc://irc.freenode.net/
http://iorcc.dyndns.org/

···

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Todd Nathan wrote:

it is with great pleasure to annouce the opening of 2005 IORCC.

1st price: "Advanced Obfuscation: Perl for Ruby Programmers"
2nd price: "More Awkward Obfuscation: AWK for Ruby Programmers"
3rd price: "Obfuscation by Parenthesis: Lisp for Ruby Programmers"
4th price: "How to shoot yourself in the foot"

An ORCC doesn't seem to be a good idea. I already hear them saying "See
this? They keep on saying that Ruby code is much cleaner than Perl code.
Don't believe their lies."

Josef 'Jupp' Schugt

···

--
Currently running Aurox 10.1 Quicksilver.

ruby -e 'def x(n,m)z=n;(m-1).times{|x|z*=n};z;end
def f(n)d=2;r=;while(d*d)<n do t=0;while((n%d)==0)do
n=(n/d).to_i;t+=1;end;while(t>0)do t-=1;r<<d;end;d+=(1+(d%2));end
(r<<n)if(n>1);r;end;p f((x(3,2).to_s+x(2,5).to_s).to_i).inject{

···

x,y|x+y}.to_s.split(//).inject(1){|a,b|a*b.to_i}'

--
Lloyd Zusman
ljz@asfast.com
God bless you.

you're just annoyed cus you can't write crap code!
well i can! so let me at it! yay! yay me! etc. oh.
erm. ummm. la la la

···

On Feb 22, 2005, at 10:37 PM, Josef 'Jupp' Schugt wrote:

An ORCC doesn't seem to be a good idea. I already hear them saying "See
this? They keep on saying that Ruby code is much cleaner than Perl code.
Don't believe their lies."

Hi,

···

In message "Re: ANN: 2005 International Obfuscated Ruby Code Contest (IORCC)" on Wed, 23 Feb 2005 06:37:50 +0900, Josef 'Jupp' Schugt <jupp@gmx.de> writes:

An ORCC doesn't seem to be a good idea. I already hear them saying "See
this? They keep on saying that Ruby code is much cleaner than Perl code.
Don't believe their lies."

Well, it is a good chance to prove them we can write pretty unreadable
code as well as readable code.

              matz.

Josef 'Jupp' Schugt írta:

Todd Nathan wrote:

it is with great pleasure to annouce the opening of 2005 IORCC.

1st price: "Advanced Obfuscation: Perl for Ruby Programmers"
2nd price: "More Awkward Obfuscation: AWK for Ruby Programmers"
3rd price: "Obfuscation by Parenthesis: Lisp for Ruby Programmers"
4th price: "How to shoot yourself in the foot"

An ORCC doesn't seem to be a good idea. I already hear them saying "See
this? They keep on saying that Ruby code is much cleaner than Perl code.
Don't believe their lies."

Josef 'Jupp' Schugt

Obfuscated codes promote exactly two things, not less, not more:
1, the flexibility of the target language
2, the talent and creativity of the author

I can only look up to those who write such high quality codes :slight_smile: It does not mean that they are
not capable to write clean, well-structured ones, on the contrary, most of the times it shows their
deep understanding of both "sides".

For another point, any idea which puts ruby in the spotlight is more than welcomed, I think, for
what ruby needs now more than anything else is popularity... and fun around it, like this obfuscated
contest or the ruby quiz is exactly the thing for it - improving morale, stirring up any still water, etc.

Regards,
Ochronus

Josef 'Jupp' Schugt <jupp@gmx.de> writes:

Todd Nathan wrote:

it is with great pleasure to annouce the opening of 2005 IORCC.

1st price: "Advanced Obfuscation: Perl for Ruby Programmers"
2nd price: "More Awkward Obfuscation: AWK for Ruby Programmers"
3rd price: "Obfuscation by Parenthesis: Lisp for Ruby Programmers"
4th price: "How to shoot yourself in the foot"

An ORCC doesn't seem to be a good idea. I already hear them saying "See
this? They keep on saying that Ruby code is much cleaner than Perl code.
Don't believe their lies."

I wonder how the perl community reacted on books like "Object-oriented
Perl" by Conway... :stuck_out_tongue:

Seriously, a deobfuscation contest of the winners is planned, too.

···

Josef 'Jupp' Schugt

--
Christian Neukirchen <chneukirchen@gmail.com> http://chneukirchen.org

Lloyd Zusman <ljz@asfast.com> writes:

ruby -e 'def x(n,m)z=n;(m-1).times{|x|z*=n};z;end
def f(n)d=2;r=;while(d*d)<n do t=0;while((n%d)==0)do
n=(n/d).to_i;t+=1;end;while(t>0)do t-=1;r<<d;end;d+=(1+(d%2));end
(r<<n)if(n>1);r;end;p f((x(3,2).to_s+x(2,5).to_s).to_i).inject{
>x,y|x+y}.to_s.split(//).inject(1){|a,b|a*b.to_i}'

Now, that's a lotta code to calculate 6*9. :slight_smile:

···

--
Christian Neukirchen <chneukirchen@gmail.com> http://chneukirchen.org

Quoting matz@ruby-lang.org, on Wed, Feb 23, 2005 at 08:07:49AM +0900:

Hi,

>An ORCC doesn't seem to be a good idea. I already hear them saying "See
>this? They keep on saying that Ruby code is much cleaner than Perl code.
>Don't believe their lies."

Powerful languages allow obfuscation. Weak languages only allow garbage
code.

Anybody looking at the code in an obfuscated coding contest as an
example of how unreadable a language is severely misses the point.

Sam

···

In message "Re: ANN: 2005 International Obfuscated Ruby Code Contest (IORCC)" > on Wed, 23 Feb 2005 06:37:50 +0900, Josef 'Jupp' Schugt <jupp@gmx.de> writes:

Hi --

···

On Wed, 23 Feb 2005, Yukihiro Matsumoto wrote:

Hi,

In message "Re: ANN: 2005 International Obfuscated Ruby Code Contest (IORCC)" > on Wed, 23 Feb 2005 06:37:50 +0900, Josef 'Jupp' Schugt <jupp@gmx.de> writes:

>An ORCC doesn't seem to be a good idea. I already hear them saying "See
>this? They keep on saying that Ruby code is much cleaner than Perl code.
>Don't believe their lies."

Well, it is a good chance to prove them we can write pretty unreadable
code as well as readable code.

Is that "pretty" as in "somewhat", or "pretty" as in "nice-looking"?
:slight_smile:

David

--
David A. Black
dblack@wobblini.net

There are already too many Ruby books that I can't read. :slight_smile:

-- Matt
Nothing great was ever accomplished without _passion_

···

On Wed, 23 Feb 2005, Yukihiro Matsumoto wrote:

Well, it is a good chance to prove them we can write pretty unreadable
code as well as readable code.

as far as i can tell more people (e.g me) in the ruby community
have read books such as that than people in the perl community.

sad ain't it?

Alex

···

On Feb 23, 2005, at 2:02 PM, Christian Neukirchen wrote:

I wonder how the perl community reacted on books like "Object-oriented
Perl" by Conway... :stuck_out_tongue:

Christian Neukirchen wrote:

I wonder how the perl community reacted on books like
"Object-oriented Perl" by Conway... :stuck_out_tongue:

"Who needs yet another way to do it?" I suppose.

Josef 'Jupp' Schugt

Alexander Kellett wrote:

An ORCC doesn't seem to be a good idea. I already hear them saying "See
this? They keep on saying that Ruby code is much cleaner than Perl code.
Don't believe their lies."

> you're just annoyed cus you can't write crap code!

It only seems more natural to use C for that. The following is a quick and dirty hack to compute n! I wrote yesterday - without having obfuscation in mind. It's simply my way of writing C. Blame it on my tutorial - K&R.

#include <stdio.h>
#include <stdlib.h>
int main(int argc,char*argv){
   unsigned long long i,fac;
   for(i=fac=atoi(argv[1]);i>2;fac*=(--i));
   return(printf("%ll\n",fac)==1);
}

To me Ruby is a tool for elegant solutions:

ruby -e 'puts (1..10).inject{|f,x| f*x}'

Josef 'Jupp' Schugt

···

On Feb 22, 2005, at 10:37 PM, Josef 'Jupp' Schugt wrote:

Christian Neukirchen <chneukirchen@gmail.com> writes:

Lloyd Zusman <ljz@asfast.com> writes:

ruby -e 'def x(n,m)z=n;(m-1).times{|x|z*=n};z;end
def f(n)d=2;r=;while(d*d)<n do t=0;while((n%d)==0)do
n=(n/d).to_i;t+=1;end;while(t>0)do t-=1;r<<d;end;d+=(1+(d%2));end
(r<<n)if(n>1);r;end;p f((x(3,2).to_s+x(2,5).to_s).to_i).inject{
>x,y|x+y}.to_s.split(//).inject(1){|a,b|a*b.to_i}'

Now, that's a lotta code to calculate 6*9. :slight_smile:

Hey, this is nothing. They had a planet-sized computer working for
nearly 10 million years on that calculation.

Life ... don't talk to me about life ...

···

--
Lloyd Zusman
ljz@asfast.com
God bless you.

How about "pretty" and "pretty unreadable"?
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/124391

I'm still impressed by that one (obviously)

···

On Wed, 23 Feb 2005 08:23:08 +0900, David A. Black <dblack@wobblini.net> wrote:

Hi --

On Wed, 23 Feb 2005, Yukihiro Matsumoto wrote:

> Hi,
>
> In message "Re: ANN: 2005 International Obfuscated Ruby Code Contest (IORCC)" > > on Wed, 23 Feb 2005 06:37:50 +0900, Josef 'Jupp' Schugt <jupp@gmx.de> writes:
>
> >An ORCC doesn't seem to be a good idea. I already hear them saying "See
> >this? They keep on saying that Ruby code is much cleaner than Perl code.
> >Don't believe their lies."
>
> Well, it is a good chance to prove them we can write pretty unreadable
> code as well as readable code.

Is that "pretty" as in "somewhat", or "pretty" as in "nice-looking"?
:slight_smile:

--
Bill Guindon (aka aGorilla)

Both, of course. I'm glad you've found the pun.

              matz.

···

In message "Re: ANN: 2005 International Obfuscated Ruby Code Contest (IORCC)" on Wed, 23 Feb 2005 08:23:08 +0900, "David A. Black" <dblack@wobblini.net> writes:

Well, it is a good chance to prove them we can write pretty unreadable
code as well as readable code.

Is that "pretty" as in "somewhat", or "pretty" as in "nice-looking"?
:slight_smile:

Matt Lawrence <matt@technoronin.com> writes:

Well, it is a good chance to prove them we can write pretty unreadable
code as well as readable code.

There are already too many Ruby books that I can't read. :slight_smile:

Now, "Ruby, the language where the documentation is more unreadable
than the source" wouldn't be that good news, probably. :slight_smile:

···

On Wed, 23 Feb 2005, Yukihiro Matsumoto wrote:

-- Matt

--
Christian Neukirchen <chneukirchen@gmail.com> http://chneukirchen.org

Alexander Kellett <ruby-lists@lypanov.net> writes:

I wonder how the perl community reacted on books like "Object-oriented
Perl" by Conway... :stuck_out_tongue:

as far as i can tell more people (e.g me) in the ruby community
have read books such as that than people in the perl community.

sad ain't it?

Now, *that* would explain lots... }:slight_smile: Excellent book, btw.

···

On Feb 23, 2005, at 2:02 PM, Christian Neukirchen wrote:

Alex

--
Christian Neukirchen <chneukirchen@gmail.com> http://chneukirchen.org

#include <stdio.h>
#include <stdlib.h>
int main(int argc,char*argv){
  unsigned long long i,fac;
  for(i=fac=atoi(argv[1]);i>2;fac*=(--i));
  return(printf("%ll\n",fac)==1);
}

dunno why anyone would find that wierd...
you should see some of my c/c++ code with
method-template/class-template/macros mixes
it makes most c++ coders ask for explanations...

To me Ruby is a tool for elegant solutions:

i think the point here is "to me"
to me ruby is a tool for having fun
while making useful stuff :slight_smile:

Alex

···

On Feb 24, 2005, at 11:30 PM, Josef 'Jupp' Schugt wrote: