News for hackers. Stuff that matters.

Show HN: FizzBuzz in an esoteric programming language.

I've been contemplating applying for HackerSchool, so I was looking at the application and saw the piece about FizzBuzz. I'd somehow never heard of this before. It is a trivial task in a conventional language, so I thought I would have some fun on a long internet-less train ride back to Rochester.

"Piet is a programming language in which programs look like abstract paintings" http://www.dangermouse.net/esoteric/piet.html

Doesn't it look kinda beautiful? http://benbrittain.com/imgs/fizzbuzzLarge.png

here is a picture of the execution so you can see what is actually code. http://benbrittain.com/imgs/trace.png

to the best of my knowledge, I'm the first person to write FizzBuzz by hand in Piet. (one guy built a code generator)

( 4 comments | 17 points | on HN )
Re:Show HN: FizzBuzz in an esoteric programming language. by jdotjdot89 on Monday April 09, 2012 @07:20PM (#3819801)
Possible that you're the first. I was going to do Piet but then saw your post, so I settled for Befunge instead to keep some two-dimensionality in there.
Re:Show HN: FizzBuzz in an esoteric programming language. by vitno on Tuesday April 10, 2012 @08:36AM (#3821851)
wow... does everyone do this? I was hoping it would give a little uniqueness to my submission... oh well. It was a blast to write though.
Re:Show HN: FizzBuzz in an esoteric programming language. by apawloski on Saturday April 07, 2012 @11:33PM (#3812935)
Cool! I was a smartass and wrote mine in COBOL.
Re:Show HN: FizzBuzz in an esoteric programming language. by vitno on Sunday April 08, 2012 @08:39AM (#3813699)
I like it! best of luck to you!