The colorful wolf

January 26, 2009

Piet

Filed under: Tech — randy @ 23:20

Tonight I was randomly wandering around online when I bumped into something quite peculiar: Piet. It’s a programming language named after Piet Mondriaan, the Dutch abstract art-ist. In this programming language, a program is actually an image where each color determines what to do. The color decided where the instruction pointer will go next, what to do with the stack and what to output to the user. It doesn’t serve much of a purpose, but it’s one of the most interesting esoteric programming languages I’ve encountered.  One program in particular made me smile, which I can link here as a bitmap.

piet_pi_big

Besides being a picture of a circle, this is also a Piet program that calculates the number pi. The best part is: if you increase the image size, the approximation of pi becomes more accurate. Brilliant!

</geek>

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: