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.
kxgxyo
| Designed by | Gas |
|---|---|
| Appeared in | 2026 |
| Computational class | Unknown |
| Reference implementation | Unimplemented |
kxgxyo is an esoteric programming language based on digital occultism, symbolic transformations and abstract concepts of existence. It uses a stack-based execution model combined with a small set of cryptic instructions.
The language was designed around the idea that computation is a ritual: instructions are invocations, data is energy, and the stack is a vessel.
The name kxgxyo has no officially defined meaning.
Philosophy
kxgxyo is based on five symbolic concepts:
- K — Creation.
- X — Transformation.
- G — Knowledge.
- Y — Expression.
- O — Oblivion.
These concepts are represented by the language's instruction set.
A program is called a ritual, and executing a program is called an invocation.
Syntax
kxgxyo programs consist of whitespace-separated instructions.
The language is case-sensitive. All instructions must be written in lowercase.
Numbers are represented using decimal notation.
Comments begin with # and continue until the end of the line.
Instructions
kxgxyo uses a stack-based architecture.
| Instruction | Description |
|---|---|
k n |
Pushes integer n onto the stack.
|
x |
Pops two values and pushes their sum. |
g |
Duplicates the top stack value. |
y |
Pops the top value and outputs it as an ASCII character. |
o |
Pops and discards the top value. |
a |
Reads one character from standard input and pushes its ASCII value. |
z |
Starts a loop. If the top value is zero, jumps after the matching r.
|
r |
Ends a loop. Jumps back to the matching z.
|
Stack
The stack follows the LIFO (Last In, First Out) principle.
For example:
k 5 k 7 x
Results in:
[12]
The rightmost element represents the top of the stack.
Looping
Loops are constructed using z and r.
k 3 z k 1 x r
The loop checks the top stack value before each iteration.
Since the value is never reduced to zero, this program does not terminate.
Computational model
kxgxyo is a stack-based imperative language.
It supports:
- Integer values.
- Stack manipulation.
- Addition.
- Character input and output.
- Conditional loops.
Its computational power depends on the implementation's numeric model and semantics. The instruction set as presented is not established to be Turing-complete.