{"id":171,"date":"2009-01-29T00:00:45","date_gmt":"2009-01-29T07:00:45","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=624"},"modified":"2009-01-29T00:00:45","modified_gmt":"2009-01-29T07:00:45","slug":"nand","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=171","title":{"rendered":"NAND"},"content":{"rendered":"<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\r\nvar a:int, b:int;\r\n\r\na = 0;\r\nb = 0;\r\n\r\ntrace(int(!(a &amp; b)));\r\n\r\na = 0;\r\nb = 1;\r\n\r\ntrace(int(!(a &amp; b)));\r\n\r\na = 1;\r\nb = 0;\r\n\r\ntrace(int(!(a &amp; b)));\r\n\r\na = 1;\r\nb = 1;\r\n\r\ntrace(int(!(a &amp; b)));\r\n\r\n\/*\r\noutputs:\r\n1\r\n1\r\n1\r\n0\r\n*\/\r\n\r\n\/*\r\nNAND\r\n00    1\r\n01    1\r\n10    1\r\n11    0\r\n*\/\r\n<\/pre>\n<p>I started reading &#8220;<a href=\"http:\/\/www1.idc.ac.il\/tecs\/\">The Elements of Computing Systems: Building a Modern Computer from First Principles<\/a>&#8221; By Noam Nisan and Shimon Schocken. So far it&#8217;s a very fun read. They talk about the power of NAND in the first chapter&#8230;. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>var a:int, b:int; a = 0; b = 0; trace(int(!(a &amp; b))); a = 0; b = 1; trace(int(!(a &amp; b))); a = 1; b = 0; trace(int(!(a &amp; b))); a = 1; b = 1; trace(int(!(a &amp; b))); \/* outputs: 1 1 1 0 *\/ \/* NAND 00 1 01 1 10 1 11 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94,36],"tags":[3,4],"class_list":["post-171","post","type-post","status-publish","format-standard","hentry","category-misc","category-operators","tag-actionscript","tag-flash"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=171"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}