Science Fair Projects Ideas - Spoon programming language

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Spoon programming language

Spoon is an esoteric programming language written by S. Goodwin in 1998. Spoon is based on Brainfuck. To compose a Spoon program, the programmer strings together a sequence of tokens comprised of nothing but the textual characters "0" and "1".

It was designed by converting the 8 instructions of brainfuck to binary sequences using Huffman coding, and then adding two new instructions: EXIT (which immediately terminates execution) and DEBUG (which outputs the entire memory array). This gives the following instructions:

Spoon instruction Brainfuck equivalent Meaning
1 + increment the byte at the pointer.
000 - decrement the byte at the pointer.
010 > increment the pointer.
011 < decrement the pointer.
0011 ] jump back to the command after the corresponding [ if the byte at the pointer is nonzero.
00100 [ jump forward to the command after the corresponding ] if the byte at the pointer is zero.
001010 . output from the byte at the pointer (in ASCII).
0010110 , input to the byte at the pointer (in ASCII).
00101110 None ("DEBUG") output the entire memory array
00101111 None ("EXIT") immediately terminate execution

The language also allows some other characters to be substituted for '0' and '1', or even for '0' and '1' to be swapped (as long as the interpreter is told this on execution). It is thus possible to create Spoon programs which are also ASCII art.

Hello world

The hello world program is written in Spoon as follows:

0101111111110010001111111111010000001101100101001011111110010001111110
1000000110111001010111111100101000101011100101001011111111111001000110
0000000000000000001000000110110000010100000000000000000000000000000000
0000000101001011111111111001000111111101000000110110010100101111110010
0011111101000000110110010101110010100000000000000000000010100000000000
0000000000000000101001011111111111001000110000000000000000000100000011
011000001010

External links

10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice