I fuck, you fuck
Rude sentences on unbounded numbers, written to solve Project Euler.
None1, 2023 · Turing complete: yes · ●●○ moderate · esolangs.org
Tested with 5 known programs · Test method
Run it
The idea
None1 made this pseudonatural language in 2023. Every command is a short sentence. The specification says it is for insulting others and crosses that out, then says it is for doing Project Euler problems. Its variables are unbounded and never go below 0, and there are powers, division and remainders. That is enough for 2 to the 1000th or 100 factorial and the sums of their digits.
The machine
| Sentence | Does |
|---|---|
There's a fucker named X | Declare X, set to 0 |
I fuck X, I unfuck X | Add 1, subtract 1 |
Fuck X 7 times | Add 7 |
X fucks Y, X unfucks Y | Y = Y + X, Y = Y − X |
X fucks Y again | Y = Y × X |
X fucks Y over and over | Y = X to the power Y |
X unfucks Y again | Y = X / Y |
X unfucks Y over and over | Y = X modulo Y |
You fuck X (again) | Read a number (a character) |
X fucks you (again) | Print a number (a character) |
fuck "SGk=" | Print base64 text |
while / if X is fucked ... end fuck | Loop or branch while X is not 0 |
Blocks also test is unfucked, is more fucked than the Y and is less fucked than the Y, and an if can have else fuck.
Example
The second is the Project Euler 16.
The second is the Project Euler 16. It sets a to 2 to the 1000th, then adds up its last digit and divides it by 10 until nothing is left.
Ideas it shows
See also
Pseudonatural
Write your own in Run Convert a program from I fuck, you fuck
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: i-fuck-you-fuck.
Command line
shib run i-fuck-you-fuck -e 'fuck "SGVsbG8sIFdvcmxkIQ=="'shib manual i-fuck-you-fuckSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/i-fuck-you-fuck.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org