Network Headache
Jump to navigation
Jump to search
Network Headache is an esoteric programming language invented by User:Zzo38.
The purpose of this programming language is that all variables are shared with all Network-Headache programs running, everywhere. Every step (a fixed amount of time), a list of all running programs is made, ordered randomly, and one step is executed of each program, in that order. Variable names are all uppercase letters, nothing else. Numbers are infinitely long non-negative integers.
Operators
a-b
: Subtraction, absolute valuea*b
: Multiplicationa$b
: INTERCAL minglea~b
: INTERCAL selecta?
:(a) XOR (2a)
. So binary[10010111]?=[110111001]
(like INTERCAL)(a)
: Value ofa
, used to control precedence.- Numbers are in base ten, variable names can be used anywhere numbers can.
Commands
SET a=b
: Sets the value of variablea
tob
.IN a
: Reads input, and stores it in variablea
.OUT a
: Outputsa
.SKIP
: Skips a command in the next program which will execute a step. Wastes its turn, and its line.LABEL a
: Labels the current location as numbera
.DO a
: If the labela
exists, push the current location to stack and go toa
.FORGET a
: Works like INTERCAL forget command.EXIT
: Works like INTERCALDO RESUME #1
. If the stack is empty, ends program execution.
External resources
- Network Headache in the file archive (contains implementation, but you have to run the server yourself; the old server is gone)