0 bytes XD
Jump to navigation
Jump to search
Designed by | None1 |
---|---|
Appeared in | 2023 |
Dimensions | zero-dimensional |
Computational class | unknown |
Reference implementation | See page |
Influenced by | 9 bytes :I |
Influenced | -5 bytes ;) |
File extension(s) |
0 bytes XD is an esolang by User:None1 and inspired by 9 bytes :I which is inspired by 13 bytes :D which is inspired by 16 bytes :P which is inspired by 25 bytes o:. 0 bytes XD effectively views truth machines as interpreters.
Syntax
There are 2 programs:
0
Outputs 0
1
Outputs 1 infinitely.
Behavior of programs other than 0 and 1 are undocumented.
Examples
Quine
0
Truth Machine
<input goes here>
Replace <input goes here>
with the input.
Interpreter
™ type 3
User:Nomad was here. And yes, I spent a whole minute writing this.
Node.js:
while (process.argv[2]?.[0]) process.stdout.write(1); // Save to a file and call 'node <filename> <code>'
Python3
i=input() if i=="0": print(0) if i=="1": while True: print(1)
See also
- The page Truth Machine, provides a long list of implementations of 0 bytes XD in other languages.