HQ9funge has 11 commands:
||Print "Hello, World!"|
||Print the program's source code (Quine)|
||Print the lyrics to "99 bottles of beer"|
||Do something random|
||Print 0 once if input is 0, print 1 forever if input is 1 (Truth-machine)|
||Change a random command in the code to either H or Q|
||Increment the accumulator|
||Point the instruction pointer (IP) in a random direction|
||Choose a random program (either 99 Bottles of Beer or Hello, World!) to output from a random language (either Malbolge, C# or Piet); after that, check if the number of commands the IP has passed through is prime; if yes, continue normally; if not, teleport the IP to the first instance of |
||99% of the time: switch the user's perms to root, then execute |
| is used to separate single char programs and multichar ones.
The program can randomly have entropy, meaning that random chars can be changed at random times. The code can have entropy too (chars can be randomly changed during runtime). For example, an H command could randomly turn into an r command during runtime, which would wipe your hard drive (or zero it out), making HQ9funge the most dangerous language to use.
The name of the language as a program in that language
Hello world, quine, 99 Bottles of Beer, do something random, truth machine, change a random command in the code to either H or Q. Note that this code can always change due to entropy.
HQ9funge is obviously not Turing-complete.
There are currently no implementations of HQ9funge, however the creator doesn't want it to be implemented.
At least one of the following languages was an inspiration for HQ9funge.