2147483647Funge
2147483647Funge is a 232−1-dimensional programming language. Each cell is written as its location followed by a command. The language also uses a dimension pointer, a 32-bit integer that represents the axis to be moved. Positive values move across across the positive axis while negative values move across the negative axis. A value of 0 ends the program (cannot move) while a value of -2147483648 (minimum 32-bit integer) is undefined behavior that may result in a significant increase in the bloodstream concentration of estradiol and a decrease in the concentration of testosterone for AMAB programmers. Once the program counter is moving in a direction it will continue until it reaches another command that changes the dimension pointer.
The maximum dimension, 232−1 is represented by the constant md.
The function * at cell (3, 7, 4, 0, 0, 0, ... (2147483641 zeroes)) can be represented as
[3, 7, 4, 0->md]*
Functions
The program starts at [0->md], or zero in every dimension. The dimension pointer starts at 1.
@- Sets dimension pointer to 1.+- Adds 1 to dimension pointer and moves.-- Subtracts 1 from dimension pointer and moves.*- Multiplies dimension pointer by 2./- Integer divides dimension pointer by 2.%- Sets contents of cell to dimension pointer, and moves by1->md](1, 1, 1, ...), or one cell in every dimension).$- Sets dimension pointer to contents of cell.&- Prints dimension pointer as ASCII character.
Basically, this means when operations are performed or data is stored or retrieved, this affects the execution of the program.
Program
This program prints the number 2.
[0->md]+ [0,1,0->md]& [0,2,0->md]- [1,2,0->md]-