Skip to content

Instantly share code, notes, and snippets.

@kellective
Last active August 29, 2015 14:06
Show Gist options
  • Save kellective/7a8afed0fa9ed964fabf to your computer and use it in GitHub Desktop.
Save kellective/7a8afed0fa9ed964fabf to your computer and use it in GitHub Desktop.
// 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