Created
December 16, 2023 19:21
-
-
Save sploders101/a87b496e5b2c8a86fe1bb49bf618f7c1 to your computer and use it in GitHub Desktop.
Proof we live in the Matrix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Proof we live in the matrix: | |
If black holes are formed by compressing more and more matter into a | |
limited space until it gives in and sucks in everything around it, | |
then it stands to reason that this phenomenon is caused by an integer | |
overflow in the density property of that space. | |
Because integers within a computer occupy a finite space, they cannot | |
continually increment forever. When a number that is already at its | |
maximum value is incremented, it observes what is called | |
"integer overflow" and wraps to its minimum value. In the case of | |
signed integers using two's compliment, this number is deeply negative. | |
Because of nature's tendency to seek balance, it stands to reason that | |
in the event of an integer overflow on a density property, the density | |
becomes deeply negative and would consume matter until it can reach `0`. | |
To run: `gcc test.c && ./a.out` | |
(To be clear: I don't actually believe we live in the matrix; this is | |
just a satirical explanation for black holes) | |
*/ | |
#include <stdint.h> | |
#include <stdio.h> | |
int main() { | |
int8_t i = 0; | |
while (i >= 0) { | |
printf("i = %d\n", i); | |
i = i + 1; | |
} | |
printf("i = %d\n", i); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment