{"id":1114,"date":"2005-08-12T05:39:04","date_gmt":"2005-08-12T09:39:04","guid":{"rendered":"http:\/\/junk.alanv.org\/?p=1114"},"modified":"2011-11-11T23:50:39","modified_gmt":"2011-11-12T04:50:39","slug":"termination","status":"publish","type":"post","link":"https:\/\/junk.alanv.org\/?p=1114","title":{"rendered":"Termination"},"content":{"rendered":"<p>Alan: dan losing == roxors<br \/>\nAlan: while(doesLose(dan)) alan.setMood(&#8220;Happy&#8221;);<br \/>\nAlan: \ud83d\ude42<br \/>\nDan: while (doesLose(dan) &#038;&#038; alan.isHappy()) dan.kick(alan);<br \/>\nDan: \ud83d\ude1b<br \/>\nAlan: while(dan.kick(alan)) alan.holdUpObject(&#8220;Dan&#8217;s Computer&#8221;);<br \/>\nDan: while (alan.isHolding(&#8220;Dan&#8217;s Computer&#8221;)) dan.steal(&#8220;Alan&#8217;s Computer&#8221;);<br \/>\nAlan: while(alan.getComputer.isStolen()) alan.holdHostage(mars);<br \/>\nDan: !!!!<br \/>\nDan: grrr you force me to play dirty<br \/>\nDan: while (mars.isHostage()) dan.burn(&#8220;tcgs&#8221;);<br \/>\nAlan: while(dan.isBurning(&#8220;tcgs&#8221;)) alan.steal(dan.getGundamStuff());<br \/>\nDan: compiler error &#8211; method getGundamStuff() does not exist in the dan class &#8211; none of it lives at cmu \ud83d\ude1b<br \/>\nAlan: hmm<br \/>\nAlan: while(dan.isBurning(&#8220;tcgs&#8221;)) throw new OutOfObjectError(&#8220;Chicken strips, hot dogs, and fries&#8221;);<br \/>\nDan: try { dan.eat(&#8220;fast food&#8221;); } catch(OutOfObjectError oooe) { dan.cook(&#8220;ramen&#8221;); }<br \/>\nAlan: if(dan.cook(&#8220;ramen&#8221;)) throw new OutOfObjectError(&#8220;ramen&#8221;);<br \/>\nDan: try { dan.eat(); } catch(OutOfObjectError oooe) { dan.leadDaringCommandoRaidToSecureMars(); }<br \/>\nAlan: while(dan.isLeadingCommandoRaid()) dan = People.AGENT_SMITH;<br \/>\nDan: System.out.println(&#8220;You know, Alan, the good thing about being me is that there are so many mes.&#8221;); while (mars.isHostage()) { dan.copy(); }<br \/>\nAlan: you didnt set dan.copy() to anything<br \/>\nAlan: System.gc();<br \/>\nAlan: System.out.println(&#8220;Byebye copies&#8221;);<br \/>\nDan: ok fine i&#8217;ll make a linked list of dans, keep adding a new one, and then use an iterator to make them attack you \ud83d\ude1b<br \/>\nAlan: ill take your linked list and set the head to null<br \/>\nDan: i&#8217;ll set yuor mom to null \ud83d\ude1b then with the root gone, her child node is also garbage collected \ud83d\ude1b<br \/>\nAlan: i already nullified dan though<br \/>\nDan: grrr&#8230; um&#8230; mars did it while you were busy nulling me!<br \/>\nAlan: hmm<br \/>\nAlan: oh well<br \/>\nAlan: thats ok<br \/>\nAlan: we&#8217;re both garbage collected then<br \/>\nDan: yay! mutual terminatino!<br \/>\nDan: strange game &#8211; the only winning move is not to play<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Alan: dan losing == roxors Alan: while(doesLose(dan)) alan.setMood(&#8220;Happy&#8221;); Alan: \ud83d\ude42 Dan: while (doesLose(dan) &#038;&#038; alan.isHappy()) dan.kick(alan); Dan: \ud83d\ude1b Alan: while(dan.kick(alan)) alan.holdUpObject(&#8220;Dan&#8217;s Computer&#8221;); Dan: while (alan.isHolding(&#8220;Dan&#8217;s Computer&#8221;)) dan.steal(&#8220;Alan&#8217;s Computer&#8221;); Alan: while(alan.getComputer.isStolen()) alan.holdHostage(mars); Dan: !!!! Dan: grrr you force me to play &hellip; <a href=\"https:\/\/junk.alanv.org\/?p=1114\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"quote","meta":{"footnotes":""},"categories":[9],"tags":[5,32,11],"class_list":["post-1114","post","type-post","status-publish","format-quote","hentry","category-quotes","tag-alanv","tag-danp","tag-im","post_format-post-format-quote"],"_links":{"self":[{"href":"https:\/\/junk.alanv.org\/index.php?rest_route=\/wp\/v2\/posts\/1114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/junk.alanv.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/junk.alanv.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/junk.alanv.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/junk.alanv.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1114"}],"version-history":[{"count":1,"href":"https:\/\/junk.alanv.org\/index.php?rest_route=\/wp\/v2\/posts\/1114\/revisions"}],"predecessor-version":[{"id":1115,"href":"https:\/\/junk.alanv.org\/index.php?rest_route=\/wp\/v2\/posts\/1114\/revisions\/1115"}],"wp:attachment":[{"href":"https:\/\/junk.alanv.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/junk.alanv.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/junk.alanv.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}