FAGI
Three words, fagi, pasuni and animale, run a tape, a register and a stack.
Lucaz37, 2025 · Turing complete: yes · ●○○ easy · esolangs.org
Tested with 2 known programs · Test method
Run it
The idea
Lucaz37 created FAGI in 2025, from an inside joke with a friend. It is also known as Fagi Assisted General Interface. Every command is two to five of three words, so a program reads like a chant. Under the words is a brainfuck tape with two additions, a register and a stack with arithmetic.
The machine
| Words | Does |
|---|---|
fagi fagi fagi pasuni | Move left; move right |
fagi animale fagi fagi animale pasuni | Add one; take one |
pasuni fagi pasuni pasuni | Print the cell as a character; read one |
pasuni animale fagi | Copy the cell to the register |
pasuni animale pasuni | Copy the register to the cell and clear it |
animale fagi animale pasuni | Push the cell; pop into the cell |
animale animale fagi | Duplicate the top |
animale animale pasuni | Add the two top values |
animale animale animale fagi | Subtract |
animale animale animale pasuni | Multiply |
animale animale animale animale fagi | Divide |
animale animale animale animale pasuni | Start a loop, skipped when the cell is 0 |
animale animale animale animale animale | End the loop, back while the cell is not 0 |
-- starts a comment. The Lua interpreter is not in the specification, so some things are chosen. Subtraction and division take the top value first, and division rounds down as Lua does. Cells and the stack hold integers without bound, and the end of the input reads as 0.
Example
The cat reads one character and prints it.
The cat reads one character and prints it.
Printing an A. Eight goes on the stack, is duplicated and multiplied to 64, and comes back into the cell, which then gets one more.
The other program, Sound, adds one seven times and prints character 7, the bell.
Patterns it teaches
- Turing tarpit: brainfuck under a different set of words.
- Stack machines: the stack does the arithmetic the tape cannot.
Further
See also
Also in Turing tarpits
Write your own in Run Convert a program from FAGI
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: fagi.
Command line
shib run fagi -e 'pasuni pasuni
pasuni fagi' --input 'x'shib manual fagiSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/fagi.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org