Categories

Posts in this category

Mon, 24 Aug 2009

Starry Perl 6 obfu


Permanent link

I decided to have some fun with Perl 6 and wrote my first obfu. So here it is, broken to 50 columns per line:

<(*+*)*(*+* +*/*) **** ** * * *+*+*/* **** ** * *
*+*-*/* **** ** * * *+* ****-* **** ** * * *-(*-*/
*) ** (*+*/*) **** ** * * *-* **** ** * * *-*+*/*
**** ** * * *+* **** ** * * *-* * * ***((* - */*)
** * * *-*/*) * * **** ** * * *+*/* ****-* ***(*-*
/*)**(*+*/*) * * ***((*-*/*)** * * *-*/*) * * ****
** * * *+*/* **** ** * * *+*+*/*-* * *>.split(<***
>).map: {eval("(* ** *+*+*-*/*+$_)(<* * *>)").chr\
.print}

(Not syntax-hilighted as I usually do here because the syntax hilighter does this one oh so wrong, it would only enhance confusion).

It works on today's Rakudo build, but I'm not aware of any feature that I use which wasn't available in the 2009-08 release.

Have fun figuring it out!

Update: Since it has caused a bit of confusion on #perl6, it does not print the usual obfu text, but rather a minor variation.

[/perl-6] Permanent link

Comments / Trackbacks:

Trackback URL: /blog-en/perl-6/starry-obfu.trackback

brunorc wrote

All in vain
Now nobody is going to believe me, that Perl 6 will be clear, user friendly, easy for beginners and will *never* hurt your brain :-)

Write a comment

The comments on this blog post have been disabled; the comment form below will not work.

 
Name:
URL: [http://www.example.com/] (optional)
Title: (optional)
Comments:
Save my Name and URL/Email for next time