esolang

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

Expected: Hello, World!

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

SentenceDoes
There's a fucker named XDeclare X, set to 0
I fuck X, I unfuck XAdd 1, subtract 1
Fuck X 7 timesAdd 7
X fucks Y, X unfucks YY = Y + X, Y = Y − X
X fucks Y againY = Y × X
X fucks Y over and overY = X to the power Y
X unfucks Y againY = X / Y
X unfucks Y over and overY = 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 fuckLoop 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.
Expected: 1366

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.

Further

Ideas it shows

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-fuck

Source

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