Last active
August 29, 2015 14:06
-
-
Save kellective/7a8afed0fa9ed964fabf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// There was a | |
function Planet() { | |
// called | |
this.name = 'Saturn' | |
// It weigh 95 Earths | |
this.mass = 5.6846e26 | |
// and was 9.5 times as large | |
this.diameter = 60268 | |
} | |
// This is what they had in mind | |
function consume( planet ) { | |
while( planet.mass-- ) | |
continue | |
while( planet.diameter-- ) | |
continue | |
return void planet | |
} | |
// It turns out they didn't plan to leave... | |
function hangout( state ) { | |
let time = Infinity / 0 | |
while( time ) | |
state | |
} | |
// And so it began: a new state was created. | |
let state = consume( new Planet() ) | |
// What happened next, can only be | |
// described to CPUs as 'loop: jmp loop' | |
hangout( state ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment