I was wandering around and I ran acrossed two very unusual programming languages. The first was interesting in that the different ways you could do the “Hello World” program. Shown belowed followed by definition:
![]()
![]()
Yes all four are programs.
Piet
Piet is a programming language in which programs look like abstract paintings. The language is named after Piet Mondrian, who pioneered the field of geometric abstract art. I would have liked to call the language Mondrian, but someone beat me to it with a rather mundane-looking scripting language. Oh well, we can’t all be esoteric language writers I suppose.
Now where the pictures as programs was interesting… this next one is just freaking weird.
Whitespace
Most modern programming languages do not consider white space characters (spaces, tabs and newlines) syntax, ignoring them, as if they weren’t there. We consider this to be a gross injustice to these perfectly friendly members of the character set. Should they be ignored, just because they are invisible? Whitespace is a language that seeks to redress the balance. Any non whitespace characters are ignored; only spaces, tabs and newlines are considered syntax.
The sample program below for Hello World just made my brain hurt. I can’t imagine trying to track down a bug.
Code:
As you can see (not see) all it is are spaces, tabs and returns.
Tags: Interesting, Programming, Weird




