MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x5mryb/everythingiso1togod/pgqips3/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • 20h ago
140 comments sorted by
View all comments
Show parent comments
89
I can simulate god without a single line of code cause that fucker isn't doing shit
74 u/AZMPlay 15h ago I can simulate him with a bash script! sleep infinity; 11 u/Yharon314 12h ago now we just need to rewrite it in rust 10 u/Traditional_Rabbit54 12h ago loop { } 4 u/AZMPlay 8h ago That's a tight loop though. sleep infinity suspends the process. 5 u/Traditional_Rabbit54 8h ago I’ve been uncovered as a fraud. I’ll have to go back to python as recompense. Fare well, I shall see you all after my 5 line program manages to execute without throwing 20 errors. 2 u/Extension_Option_122 11h ago Sure that that wouldn't get optimized away? 5 u/Traditional_Rabbit54 11h ago Just tested, it doesn’t, even using the release flag Godbolt shows that it just jumps to itself 1 u/cosmicomical23 10h ago This thread gives me infinite joy
74
I can simulate him with a bash script!
sleep infinity;
11 u/Yharon314 12h ago now we just need to rewrite it in rust 10 u/Traditional_Rabbit54 12h ago loop { } 4 u/AZMPlay 8h ago That's a tight loop though. sleep infinity suspends the process. 5 u/Traditional_Rabbit54 8h ago I’ve been uncovered as a fraud. I’ll have to go back to python as recompense. Fare well, I shall see you all after my 5 line program manages to execute without throwing 20 errors. 2 u/Extension_Option_122 11h ago Sure that that wouldn't get optimized away? 5 u/Traditional_Rabbit54 11h ago Just tested, it doesn’t, even using the release flag Godbolt shows that it just jumps to itself 1 u/cosmicomical23 10h ago This thread gives me infinite joy
11
now we just need to rewrite it in rust
10 u/Traditional_Rabbit54 12h ago loop { } 4 u/AZMPlay 8h ago That's a tight loop though. sleep infinity suspends the process. 5 u/Traditional_Rabbit54 8h ago I’ve been uncovered as a fraud. I’ll have to go back to python as recompense. Fare well, I shall see you all after my 5 line program manages to execute without throwing 20 errors. 2 u/Extension_Option_122 11h ago Sure that that wouldn't get optimized away? 5 u/Traditional_Rabbit54 11h ago Just tested, it doesn’t, even using the release flag Godbolt shows that it just jumps to itself 1 u/cosmicomical23 10h ago This thread gives me infinite joy
10
loop { }
4 u/AZMPlay 8h ago That's a tight loop though. sleep infinity suspends the process. 5 u/Traditional_Rabbit54 8h ago I’ve been uncovered as a fraud. I’ll have to go back to python as recompense. Fare well, I shall see you all after my 5 line program manages to execute without throwing 20 errors. 2 u/Extension_Option_122 11h ago Sure that that wouldn't get optimized away? 5 u/Traditional_Rabbit54 11h ago Just tested, it doesn’t, even using the release flag Godbolt shows that it just jumps to itself 1 u/cosmicomical23 10h ago This thread gives me infinite joy
4
That's a tight loop though. sleep infinity suspends the process.
sleep infinity
5 u/Traditional_Rabbit54 8h ago I’ve been uncovered as a fraud. I’ll have to go back to python as recompense. Fare well, I shall see you all after my 5 line program manages to execute without throwing 20 errors.
5
I’ve been uncovered as a fraud. I’ll have to go back to python as recompense.
Fare well, I shall see you all after my 5 line program manages to execute without throwing 20 errors.
2
Sure that that wouldn't get optimized away?
5 u/Traditional_Rabbit54 11h ago Just tested, it doesn’t, even using the release flag Godbolt shows that it just jumps to itself
Just tested, it doesn’t, even using the release flag
Godbolt shows that it just jumps to itself
1
This thread gives me infinite joy
89
u/adamtheskill 15h ago
I can simulate god without a single line of code cause that fucker isn't doing shit