- Wierd
Wierd is a graphical language developed by
Chris Pressey ,Ben Olmstead , andJohn Colagioia , in 1997.Etymology
The name "Wierd," commonly mistaken for a spelling error or a typo, actually comes from a fusing of the words "weird" and "wired." It is often pronounced like the English word "wired", but with extra stress or lengthening of the diphthong, so that it sounds more like "why-eared".
yntax and Semantics
In Wierd, there are only two symbols:
whitespace and everything else. Non-whitespace characters are followed in lines (starting in the top left corner, going southeast), and instructions are given by every turn made to the right:0 degrees NO: No operation, continue as normal. 45 degrees P1: Push a data value of 1 onto the stack. 90 degrees IF: Pop the stack. If the value is zero, continue executing as normal. If the value is nonzero, however, reverse direction. 135 degrees GP: Pop the stack. If the value is zero, pops the next two items from the stack, retrieves (gets) the value stored at the coordinates specified by these values (x, then y), and push it onto the stack. If the first value was nonzero, however, takes the value stored below the coordinates on the stack, and stores (puts) it at the coordinates. 180 degrees QU: Jump the gap, if possible. Otherwise, terminate. 225 degrees IO: Pop the stack. If the value is zero, read a character from input, pushing it onto the stack. If the value was nonzero, pop the stack, and print the value to output as a character. 270 degrees IF: See 90 degrees. Included for flexibility. 315 degrees SB: Subtract the top of the stack from the value beneath it, popping both values, and pushing the result.
(from the [http://esoteric.voxelperfect.net/files/wierd/doc/wierdspec.txt Wierd spec] ).
According to John Colagioia, it was not supposed to be legal to cross wires, but several Wierd programs are in circulation that rely on this.
Wierd was inspired by
Brainfuck andBefunge .External resources
* [http://catseye.tc/projects/wierd Wierd project site]
* [http://esoteric.voxelperfect.net/files/wierd/ Wierd files]
Wikimedia Foundation. 2010.