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.

UserPage crapper from explain xkcd 3

From Esolang
Jump to navigation Jump to search

UserPage crapper from explain xkcd 3 is an esolang created by user:tommyaweosme. The full name of UserPage crapper from explain xkcd 3 can be generated by running this html program inside a supercomputer:

<script>
	var a = "crap ";
	function rep(x,y){
		var b = x;
		while (b > 0) {
			document.write(a);
			b = b - 1;
		}
		if(x>2){
			rep(x-1,y);
			rep(x-2,y);
		}else{
			if(y>2){
				rep(y+1,y-1);
				rep(y+2,y-2);
			}
		}
	}
	rep(1000000,1000000);
</script>

Syntax

Branches

UserPage crapper from explain xkcd 3 runs every branch at once and plays all the audio from every branch at the same time.

Memory

UserPage crapper from explain xkcd 3 stores information in the plane. The plane has infinite dimensions, and things can be stored at any coordinate in them. When an uninitialized coordinate is referenced without being set by a command that sets, it removes a random character from the program. Whenever the documentation says a command SETS a coordinate, the coordinate right after can be uninitialized and it's just set to that instead of removing a random character. For example, assuming {2} and {2,1} have something in them while every other coordinate is uninitialized, +{1}{2,1}{2} just sets {1} to {2,1} plus {2}, but +{1}{2}{3} removes a random character.

Case-by-case per command, the uninitialized coordinate being set is assumed to be:

+ 0
- 0
/ 1
sq 1
& 1
' 1
! 0
d 0

Number type

UserPage crapper from explain xkcd 3 only has one type. It has arbitrary precision, and can store complex and irrational numbers, as well as arrays.

Number Determinism

d{1} permanently changes {1} into a deterministic point. Deterministic points have a 50% chance of running operations done on them, and splits reality into two branches.

Space

The program starts in space. The ip starts at 0 and gets incremented by 1 every time the ; signal is ran.

References

% references the ip
^^ references microseconds since program first ran
= references an array where the first item is the unix time down to the microsecond, the second item is the longitude, and the third item is the latitude. To properly take arbitrary inputs, constantly pause and unpause the program while moving around earth and using a time machine.
{a,b...} references a point stored in certain coordinates of the plane

Commands

{1}, {2}, and so on will be used from now on to denote any reference mentioned in references. Every new character that isn't a reference starts a new command to be ran either randomly before or after the previous one if inside the same standard command form. For example, +{1}{2}&{1,1}{2,1} does NOT set {1} to {1}+{2}+({1,1}*{2,1}), it sets {1} to {1}+{2} and sets {1,1} to {1,1}*{2,1}

5{1} sets {1} to 5
+{1}{2}{3}... sets {1} to {1}+{2}+{3}...
-{1} sets {1} to a sign flip of {1}
/{1} sets {1} to the reciprocal of {1}. Division by zero results in BB(100).
sq{1} sets {1} to the square root of {1}
d{1} sets {1} to the deterministic version of {1}
&{1}{2}{3}... sets {1} to {1}*{2}*{3}...
'{1}{2}{3}... sets {1} to ...{3}st item of the {2}st item of {1}. If it tries referencing an item out of bounds, say item {x}, then it sets ip to x and teleports back to the start of the program.
!{1}{2}{3}... sets {2} and {3}... all to {1}
aw{1} waits {1} microseconds
t{1}{2}{3}... sets the current audio output to {1}hz and {2}hz and {3}hz... all playing at the same time
s{1} stops the program. The {1} here isn't a reference, you literally have to put "s{1}" to stop a program. It doesn't matter if {1} is uninitialized. It stops the branch of reality that runs into it.

Signals

[q,c] is standard command form. c is just the command(s) ran in random order, making a new branch of reality for every possible order, but q is the instruction name. a command will not be run unless the ip is currently equal exactly to q. q can be a reference or a whole number.
< teleports back to the start of the program
( teleports back to the start of the program while running another thread that didn't teleport. ip is shared by every thread.

History

This esolang's name is based off of User:Page crapper from explain xkcd and User:Page crapper from explain xkcd 2.

Programs

600hz for 1 second

 [0,5{1}];[1,+{2}{1}];[2,/{2}];[3,&{2}{1}5{3}];[4,+{1}{1}];[5,+{3}{2}];[6,&{3}{1}{1}];[7,t{3}];[8,&{4}{1}{1}{1}{1}{1}{1}];[9,aw{4}-{1,1}];[10,t{1,1}];[11,s{1}]

Inteperertation Standards

A proper interpreter of this language should be written in JSFuck encoded Pyfuck, Pyfuck encoded Luafuck, or Luafuck encoded JSFuck.

If BB(100) is its own thing instead of actually the number BB(100), then a sacrifice must be made to appease Page Crapper for them to not come back. You must give up one two-character sequence from your interpreter that you can't use again. Think carefully, because if you choose the wrong one and need to use it, to get a different one you must start over from scratch and delete all copies you have of the old code.

You must use real location and time data, and you must not let branches of reality get desynced by any amount, even the smallest portion of a microsecond.