[Chicago-talk] OT: Procrastination

Kent Cowgill kent at c2group.net
Tue Feb 13 08:45:00 PST 2007


Been there, done that.

Here's a mildly golfed brainf*ck interpreter in 123b of perl:

%c=qw|> --$p; < ++$p; + ++$$p; - --$$p; [ ${ ] }while$$p; .
print+chr$$p; , $$p=shift;|;map{$r.=$c{$_}for split//}<>;eval$r

I'd golf it further, but I've been putting it off.

-Kent Cowgill

C2 Group, Inc.                                             
kent at c2group.net
http://www.c2group.net                                         
312.804.0160


On Feb 13, 2007, at 10:27 AM, Jim Thomason wrote:

> On 2/12/07, Chris McAvoy <chris.mcavoy at gmail.com> wrote:
>> On 2/12/07, Joshua McAdams <joshua.mcadams at gmail.com> wrote:
>>> Okay, so this has nothing to do with Perl, but it really struck  
>>> me as
>>> hilarious.  It is a video about procrastination.... time to learn a
>>> new computer language instead of doing something useful in the ones
>>> that I already know :)
>
> I was going to post this video...but I never got around to it...
>
> It's much much worse when you procrastinate by learning truly useless
> languages. I think I wasted the better part of a day once learning the
> intricacies of brainfuck (http://en.wikipedia.org/wiki/Brainfuck),
> including writing not just a brainfuck interpreter, but a brainfuck ->
> C translator so I could compile my useless little programs for insane
> crazy raw power.
>
> -Jim....
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>



More information about the Chicago-talk mailing list