White Space
Results 1 to 4 of 4

Thread: White Space

  1. #1

    White Space

    What is 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.
    What are the advantages of Whitespace?

    Some things which are difficult in other languages are made much easier in Whitespace. For example, literate programming is simply a matter of writing your helpful comments in between program instructions. It's also easy to encrypt your programs. Simply write a misleading comment!

    Whitespace is a particularly useful language for spies. Imagine you have a top secret program that you don't want anyone to see. What do you do? Simply print it out and delete the file, ready to type in at a later date. Nobody will know that your blank piece of paper is actually vital computer code!
    What does a typical Whitespace program look like?

    Below is an extract from a program which asks for a name then outputs it (see here for the full script.

    Where can I get it?

    There is a prototype Whitespace interpreter available on this site, go to this page to download it. The source code is written in Haskell, or you can get a Linux binary. You can also read a tutorial.
    Who is responsible?

    The interpreter was written by someone who shouldn't have stayed up so late, Edwin Brady, and the language was designed by two people who shouldn't have had so much to drink, Edwin Brady and Chris Morris. No doubt Andrew Stribblehill isn't entirely blameless either. Thanks also to the residents of #compsoc for their helpful suggestions and programs.
    Have fun mucking around with this, i know i did.


  2. #2
    Senior Member
    Join Date
    Jun 2002

    Damn coolest thing I've seen in ages. Some people have way too much time on their hands

  3. #3
    Its obviously a product of tooooo much time on their hands. I think thats how computers came about anyway ^_^. Matter of fact, most things prob came about because of too much time on their hands.

  4. #4
    Senior Member
    Join Date
    Mar 2003
    central il
    there is a perl mod that dose this also...one of the best uses I ever saw was putting two programs in one file, then you chose wich one you wanted to run by the interprater...this would have been great back in the days when storage space was an issue
    Who is more trustworthy then all of the gurus or Buddha’s?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts