We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

O\I

From Esolang
Jump to navigation Jump to search

O\I (Output\Infinite, name intentionally mirrored "I/O") is a simple esolang invented by User:None1 to simulate the result of any non-interactive I/O program.

Syntax

!text

Prints the text.

Other programs are Infinite loops.

Examples

Hello, world!

!Hello, world!

Infinite loop

fuck

Quine

It's impossible to construct a nonempty quine in this esolang.

Interpreter

Python

import sys
x=sys.stdin.read()
if x and x[0]=='!':
 print(x[1:])
else:
 while 1:
  pass

Computational class

Though this esolang is not Turing complete, for every non-interactive program with given input, there exists a program in this esolang that can't be distinguished from.