Post Reply 
Whitespace is a programming language...
Author Message
ZiNgA BuRgA
Smart Alternative

Posts: 17,024.1882
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1887
Offline
Post: #1
Whitespace is a programming language...
Quote:Whitespace is an esoteric programming language developed by Edwin Brady and Chris Morris at the University of Durham. It was released on 1 April 2003 (April Fool's Day). Contrary to most languages, which often ignore most whitespace characters, the Whitespace interpreter ignores any non-whitespace characters. Only spaces, tabs and newlines are considered syntax. An interesting consequence of this property is that a Whitespace program can easily be contained within the whitespace characters of another language, making the same code a polyglot.

The language itself is an imperative stack-based language. The virtual machine on which programs run has a stack and a heap. The programmer is free to push arbitrary width integers onto the stack (only integers, currently there is no implementation of floating point numbers). The user can also access the heap as a permanent store for variables and data structures.

Humorously, Whitespace has been called a great language for secretive programs. Important code can be printed onto plain sheets of white paper and stored safely without worry of discovery by inspection (or of ever being recovered by anyone, including the intended recipient).

:O
I never knew that...
17/03/2007 05:13 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Whitespace is a programming language... - ZiNgA BuRgA - 17/03/2007 05:13 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: