<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Raelifin.com &#187; Raelifin</title>
	<atom:link href="http://raelifin.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://raelifin.com</link>
	<description>Deus ex Machina</description>
	<lastBuildDate>Thu, 26 Apr 2012 22:59:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>I&#8217;ll Just Leave This Here</title>
		<link>http://raelifin.com/code/ill-just-leave-this-here/</link>
		<comments>http://raelifin.com/code/ill-just-leave-this-here/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 22:59:13 +0000</pubDate>
		<dc:creator>Raelifin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[Cool Stuff]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[khanacademy]]></category>
		<category><![CDATA[OCR]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://raelifin.com/?p=1198</guid>
		<description><![CDATA[Full rundown, including code, to come sometime in the future. (Probably.)]]></description>
			<content:encoded><![CDATA[<p><iframe width="420" height="315" src="http://www.youtube.com/embed/y_pTU1lp0R8" frameborder="0" allowfullscreen></iframe></p>
<p>Full rundown, including code, to come sometime in the future. (Probably.)</p>
]]></content:encoded>
			<wfw:commentRss>http://raelifin.com/code/ill-just-leave-this-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Flash Project</title>
		<link>http://raelifin.com/code/first-flash-project/</link>
		<comments>http://raelifin.com/code/first-flash-project/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 22:58:25 +0000</pubDate>
		<dc:creator>Raelifin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[chess]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://raelifin.com/?p=1181</guid>
		<description><![CDATA[Once upon a time Adobe Flash was locked down. To make anything in flash you had to either buy or steal Adobe&#8217;s software to do anything with it. Nowadays though it seems that has changed. Using nothing but free software from FlashDevelop and GreenSock. I was able to build this chess software in about eight [...]]]></description>
			<content:encoded><![CDATA[<p>Once upon a time Adobe Flash was locked down. To make anything in flash you had to either buy or steal Adobe&#8217;s software to do anything with it. Nowadays though it seems that has changed. Using nothing but free software from <a href="http://www.flashdevelop.org/">FlashDevelop</a> and <a href="http://www.greensock.com/tweenlite/">GreenSock</a>. I was able to build this chess software in about eight hours (knowing nothing about ActionScript at the start):</p>
<p><iframe src="http://raelifin.com/files/ChessInFlash/bin/" width="450" height="450"></iframe></p>
<p>The source code is public domain (except for GreenSock&#8217;s stuff, which is Copyright, and you&#8217;ll have to download from them), and can be downloaded here: <a href="http://raelifin.com/files/ChessInFlash/ChessInFlashSource.zip">http://raelifin.com/files/ChessInFlash/ChessInFlashSource.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://raelifin.com/code/first-flash-project/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Is Consciousness Real? A Practical Answer.</title>
		<link>http://raelifin.com/thoughts/is-consciousness-real-a-practical-answer/</link>
		<comments>http://raelifin.com/thoughts/is-consciousness-real-a-practical-answer/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 19:52:31 +0000</pubDate>
		<dc:creator>Raelifin</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[consciousness]]></category>
		<category><![CDATA[definitions]]></category>
		<category><![CDATA[ideas]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[qualia]]></category>
		<category><![CDATA[reality]]></category>
		<category><![CDATA[self]]></category>

		<guid isPermaLink="false">http://raelifin.com/?p=1170</guid>
		<description><![CDATA[This is a conversation I had back in October, but I haven&#8217;t posted anything recently, so I figured I&#8217;d copypasta it here for posterity. A friend wrote: Do you think consciousness is (i) A real phenomenon (ii) Unreal phenomenon ? Real here means that there exist (a) physical process/es (in the brain) that causally correspond [...]]]></description>
			<content:encoded><![CDATA[<p>This is a conversation I had back in October, but I haven&#8217;t posted anything recently, so I figured I&#8217;d copypasta it here for posterity.</p>
<p>A friend wrote:</p>
<blockquote><p>Do you think consciousness is<br />
(i) A real phenomenon<br />
(ii) Unreal phenomenon ? </p>
<p>Real here means that there exist (a) physical process/es (in the brain) that causally correspond to the &#8220;observed&#8221; phenomenon of consciousness. While unreal means that it is just a word people use to describe something that is not a part of reality, but rather a construct that was input to them since they were children ( for example, like fairies ) OR a word that stands for many processes and adds an imaginary glue, thus gaining new meaning ( like vis vitalis).<br />
Note: I&#8217;m aware of problems with definitions of causality and reality, but let&#8217;s just take the usual practical ones. </p></blockquote>
<p>This was my response:<br />
<span id="more-1170"></span><br />
The simple answer to you question is that <strong>consciousness is poorly defined</strong>, so answering those requires a more solid definition. This is a boring answer, though, so I&#8217;m going to expand on stuff. </p>
<p>All ideas are models. When I talk about an apple, there is no &#8220;thing&#8221; in &#8220;reality&#8221; that is &#8220;an apple&#8221;, there is stuff, but the concept of apple-ness is my own. I&#8217;ve created an internal model of the apple so that I might predict things about reality (like what it&#8217;ll feel like in my hand a half-second from now). </p>
<p>Some ideas are very strongly predictive, like the idea of apples. Having an idea of apples is so useful that it&#8217;s practically hardwired into our mental structure by our genes. Other ideas are not strongly predictive, and they might only <em>relate</em> to strong ideas. If I have a memory of having had an apple in my hand yesterday, it lets me reason (via relationships) about the future, but it carries no predictive value per se. </p>
<p>If predictive utility is how we define the reality of things, then there are certain ideas that simply cannot be real because they (for whatever reason) carry no predictive utility. Such ideas include invisible, ethereal, silent, massless &#8230; dragons in one&#8217;s garage, paradox statements, and (in my humble opinion) qualia. </p>
<p>Qualia are typically described as the &#8220;form&#8221; or &#8220;flavor&#8221; of experience, but often not in any way that lets us predict actual physical structures. So if we define consciousness as &#8220;the state of having qualia&#8221;, then I would say that consciousness cannot be real because the definitions are flawed. &#8220;Do we actually have subjective experience?&#8221; is like asking &#8220;why is there a universe&#8221;, no possible answer will suffice because there is a flawed premise. </p>
<p>But clearly there&#8217;s more to the word &#8220;consciousness&#8221; than hand-wavy mumbo-jumbo about philosophical zombies. One of the more common uses might be summarized by &#8220;When I was a young child I saw other people as forces of nature that helped or hindered me according to arbitrary laws, but as I grew I began to understand that people were all like me, in that they have thoughts and desires and dreams. Each one of them looks out their own eyes just like I look out mine. They are conscious.&#8221; This version of consciousness IS predictive, because it lets us know the minds of others by assuming that they are like our mind. I might call this &#8220;projective consciousness&#8221; or &#8220;anthropomorphic consciousness&#8221;. If asked whether this version of consciousness is real, I would say &#8220;Absolutely! I am just one human amongst many, I am not unique in having a mind.&#8221; </p>
<p>Interestingly, this definition assumes that I can predict my own actions and think about them in a detached way! The ability to self-model leads us to our third definition, which is probably the most common one. Self-modeling ability is trivially easy from a computational standpoint, and it&#8217;s so easy, in fact, that most people don&#8217;t think machines can do it, even when they&#8217;re clearly doing it (probably because of conflation with the previously mentioned uses of &#8220;consciousness&#8221;). All it takes to self-model is an idea-symbol that represents &#8220;self&#8221; and a set of functions which describe the dynamics of &#8220;self&#8221;. (Note: while many computer systems have a self-model, I have never seen one that has emergently gained self-modeling ability (except maaaybe some fringe cases with genetic programming), that is, gained the ability to self-model without having been programmed explicitly to do so.) </p>
<p>Yet another definition of consciousness is &#8220;ability to perceive one&#8217;s own thoughts&#8221;. This definition is the one I typically use when thinking about cognition, as I think it&#8217;s related strongly with all of the above and is interesting to speculate about in the context of evolutionary psychology. I think it&#8217;s pretty simple to show that this definition is &#8220;real&#8221; by asking someone to slowly navigate from point A to point B in their imagination, then quizzing them as to &#8220;where they are&#8221; half-way. (Theoretically someone could fake internal perception by deriving a new path after the second question was asked, but that fails Occam&#8217;s razor.) </p>
<p>There are other definitions, such as &#8220;sleeping vs awake&#8221;, &#8220;distracted vs aware&#8221;, or &#8220;possessing the magic thing given by God that goes into heaven after death&#8221; (though that last one is &#8220;soul&#8221; if I&#8217;m not mistaken ;) ). Clearly some of these are real and some aren&#8217;t, but I&#8217;m not too interested in them.</p>
]]></content:encoded>
			<wfw:commentRss>http://raelifin.com/thoughts/is-consciousness-real-a-practical-answer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Extremist Language</title>
		<link>http://raelifin.com/thoughts/extremist-language/</link>
		<comments>http://raelifin.com/thoughts/extremist-language/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 16:49:10 +0000</pubDate>
		<dc:creator>Raelifin</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[democracy]]></category>
		<category><![CDATA[extremism]]></category>
		<category><![CDATA[Jon Stewart]]></category>
		<category><![CDATA[libertarian]]></category>
		<category><![CDATA[Napolitano]]></category>
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://raelifin.com/?p=1154</guid>
		<description><![CDATA[On the 27th, which was 8 days ago, now, Jon Stewart had Andrew Napolitano on The Daily Show. I am a self-described libertarian. I voted for Ron Paul in 2008 (yes, I know he wasn&#8217;t on the ballot). I also love The Daily Show and Mr. Stewart; I think he&#8217;s insightful, wise, and funny. Here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>On the 27th, which was 8 days ago, now, Jon Stewart had Andrew Napolitano on The Daily Show. I am a self-described libertarian. I voted for Ron Paul in 2008 (yes, I know he wasn&#8217;t on the ballot). I also love The Daily Show and Mr. Stewart; I think he&#8217;s insightful, wise, and funny.</p>
<p>Here&#8217;s the first part of the interview I&#8217;m going to be commenting on, I encourage you to click-through to see the next two parts. <embed src="http://media.mtvnservices.com/mgid:cms:video:thedailyshow.com:400853" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="." flashVars=""></embed></p>
<p><span id="more-1154"></span></p>
<p>During the interview, Stewart asks Napolitano several questions which challenged libertarian ideas, and which do so in a fair, straightforward way. These are the sorts of questions that intelligent friends ask each-other, not the sort of traps that politicians lay during debates. These are the sorts of questions that need to be more prominent in politics, and which deserve the most thought-out replies.</p>
<p>Here are some examples:
<ul>
<li>Doesn&#8217;t government-provided infrastructure or safety-net increase freedom, rather than remove it?</li>
<li>&#8220;What should we do with the losers that picked by the free market?&#8221;</li>
<li>Since we live in a society where the work of the many made some grow rich, should we not give back some of the riches to the many?</li>
<li>How is government oppressive, when we live in a government chosen by the people?</li>
<li>If we agree that some government is necessary, how can government be inherently evil?</li>
<li>Why do libertarians trust corporations more than governments who are accountable to voters?</li>
<li>If markets are supposed to be so good, why do we see so many problems in the market (e.g. healthcare)?</li>
<li>Would the free market have abolished slavery and segregation; would it have established women&#8217;s rights?</li>
<li>If judges and courts are vital for freedom, and judges and courts are part of the government, isn&#8217;t government vital for freedom?</li>
</ul>
<p>Napolitano answered most of these in what I would consider the <em>worst</em> way possible: with an extremist soundbite. My brother suggested that for a minority group, like libertarianism, there&#8217;s a tendency to discard moderate statements for controversial ones in the interest of getting attention. Consider the following exchange:</p>
<p>Stewart: &#8220;[Market regulations] came out of an interest in helping those who had been victimized by a system that they couldn&#8217;t fight back against&#8230;&#8221;</p>
<p>Napolitano: &#8220;I&#8217;m going to blow you away. Selfishness is a virtue. In the free market, when you are selfish, you make the most money&#8230;&#8221;</p>
<p>I think this rage face is appropriate:<br />
<img alt="WTF" src="http://s3.amazonaws.com/kym-assets/photos/images/newsfeed/000/185/168/misc-jackie-chan-l.png?1318992465" style="width: 300px"/></p>
<p>Way to promote psychopathy, dude.</p>
<p>This sort of response is the way to lose public support, not gain it. To convince moderates (and promote sane governance), we libertarians need to acknowledge that <a href="http://lesswrong.com/lw/6dz/not_for_the_sake_of_selfishness_alone/">helping people is desirable</a>, and a system which leaves people homeless, hungry, or sick is sub-optimal. We need to acknowledge that politicians may be coming at a problem with a sincere belief that they&#8217;re doing the best thing. We need to acknowledge that markets don&#8217;t magically solve everything. We need to acknowledge that we might be wrong.</p>
<p>Only after admitting that roads improve freedom can we make our case that private roads improve freedom <strong>more</strong>. Only after admitting selfishness is *not* a virtue (Napolitano is celebrating *ambition*, not selfishness, imo) can we talk about making systems which are robust, and can thrive in the face of selfishness. Only when we admit that it&#8217;s important to care for the poor can we ever have a hope of convincing a democrat that the inefficiencies and conflicts of involuntary redistribution of wealth outweigh the benefits. Only when we admit that some government is important and good, can we stop driving away those who smell hypocrisy.</p>
<p>In short:<br />
<img src="http://memegenerator.net/cache/instances/400x/10/10903/11165304.jpg" alt="[LIBERTARIANS: Y U NO APPEAL TO MODERATES?]" /></p>
]]></content:encoded>
			<wfw:commentRss>http://raelifin.com/thoughts/extremist-language/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Re: Conversations on Strong AI</title>
		<link>http://raelifin.com/thoughts/re-conversations-on-strong-ai/</link>
		<comments>http://raelifin.com/thoughts/re-conversations-on-strong-ai/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 20:02:43 +0000</pubDate>
		<dc:creator>Raelifin</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[emergence]]></category>
		<category><![CDATA[self-preservation]]></category>
		<category><![CDATA[singularity]]></category>

		<guid isPermaLink="false">http://raelifin.com/?p=1149</guid>
		<description><![CDATA[I am having a conversation with Rod Furlan over on his blog about the possibility of self-preservation being an emergent property of intelligent systems. Just, you know&#8230; in case you were curious what I&#8217;m up to. Edit: I am commenting. I did not send the original email.]]></description>
			<content:encoded><![CDATA[<p>I am having a conversation with Rod Furlan over on his blog about <a href="http://www.bitcortex.com/2011/07/28/conversations-on-strong-ai-%E2%80%93-part-ii/">the possibility of self-preservation being an emergent property of intelligent systems.</a> Just, you know&#8230; in case you were curious what I&#8217;m up to.</p>
<p><em>Edit</em>: I am commenting. I did not send the original email.</p>
]]></content:encoded>
			<wfw:commentRss>http://raelifin.com/thoughts/re-conversations-on-strong-ai/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Blind Cronus</title>
		<link>http://raelifin.com/non-programmatic-creations/blind-cronus/</link>
		<comments>http://raelifin.com/non-programmatic-creations/blind-cronus/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 19:40:33 +0000</pubDate>
		<dc:creator>Raelifin</dc:creator>
				<category><![CDATA[Non-Programmatic Creations]]></category>
		<category><![CDATA[anthropocentrism]]></category>
		<category><![CDATA[hubris]]></category>
		<category><![CDATA[intelligence]]></category>
		<category><![CDATA[poetry]]></category>

		<guid isPermaLink="false">http://raelifin.com/?p=1144</guid>
		<description><![CDATA[Fire, frozen in apple&#8217;s sweet shape, From promethean serpent it was sent. A rite of passage from &#8220;mere ape&#8221;; Extended forehead was Eve&#8217;s punishment. We are not Abel; we are Cain. Brother rots in Neandertal. Over all of Gaia we now reign. Child monarch of mother thrall. Stumbling from Darwin&#8217;s crude workshop, We see a [...]]]></description>
			<content:encoded><![CDATA[<p>Fire, frozen in apple&#8217;s sweet shape,<br />
From promethean serpent it was sent.<br />
A rite of passage from &#8220;mere ape&#8221;;<br />
Extended forehead was Eve&#8217;s punishment.</p>
<p>We are not Abel; we are Cain.<br />
Brother rots in Neandertal.<br />
Over all of Gaia we now reign.<br />
Child monarch of mother thrall.</p>
<p>Stumbling from Darwin&#8217;s crude workshop,<br />
We see a world built for us, and cry<br />
&#8220;Ours is the head with the crown atop.<br />
Our godly form you cannot deny!&#8221;</p>
<p>In flatland, with the acute all around,<br />
A right triangle styles itself obtuse.<br />
Downgazing ants on a fragile mound.<br />
Blind Cronus awaiting sighted Zeus.</p>
]]></content:encoded>
			<wfw:commentRss>http://raelifin.com/non-programmatic-creations/blind-cronus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clustering and Perception</title>
		<link>http://raelifin.com/math/clustering-and-perception/</link>
		<comments>http://raelifin.com/math/clustering-and-perception/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 01:16:56 +0000</pubDate>
		<dc:creator>Raelifin</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[clustering]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[neural nets]]></category>
		<category><![CDATA[perception]]></category>
		<category><![CDATA[sensation]]></category>

		<guid isPermaLink="false">http://raelifin.com/?p=1127</guid>
		<description><![CDATA[Rysade asks: What does clustering have to do with perception? All it takes is a question! To start, let&#8217;s take a functioning neural net (never mind how it learned), which is a well understood perceptual system. In a NN, each &#8220;neuron&#8221; is hooked to a bunch of others by weights. As the other neurons activate [...]]]></description>
			<content:encoded><![CDATA[<p>Rysade <a href="http://raelifin.com/code/k-means-clustering-in-j/#comment-549">asks</a>:</p>
<blockquote><p>What does clustering have to do with perception?</p></blockquote>
<p>All it takes is a question!</p>
<p><a href="http://www.texample.net/tikz/examples/neural-network/"><img src="http://media.texample.net/tikz/examples/PNG/neural-network.png" style="width: 300px; float: right; margin-left: 10px; margin-bottom: 5px" alt="Neural Net"></a>To start, let&#8217;s take a functioning neural net (never mind how it learned), which is a well understood perceptual system. In a NN, each &#8220;neuron&#8221; is hooked to a bunch of others by weights. As the other neurons activate they influence the neuron in question with a degree related to their weight. Sensor neurons are activated from outside the net and the activations of &#8220;hidden&#8221; neurons is read off. Because a specific subset of input patterns will cause each neuron to fire, each neuron can be thought of as a <strong>lossy representation of the input space</strong>.</p>
<p><span id="more-1127"></span></p>
<p>I may be going too fast, so let me give an example. Let&#8217;s say that I have a machine that measures the air temperature in several places, wind speed, air pressure, etc. Each value has a set baseline, and a degree of &#8220;importance&#8221; (weight). At all times, the divergence of each value from the baseline is multiplied by the importance to get a &#8220;warning value&#8221;. Now let&#8217;s say that I add up all these warning values into a &#8220;warning sum&#8221; and hook up the system to send me an email if the warning sum gets beyond a specific threshold. I&#8217;ve just set up a machine that senses the weather, and <strong>perceives</strong> whether it is normal or extreme. This is an example of a very simple neural net.</p>
<p><img src="http://raelifin.com/files/pics/neuronsAsClusters1.png" alt="Diagram 1"></p>
<p>Now, let&#8217;s imagine that each value that is sensed by the machine is a dimension in space. As a basic example, let&#8217;s pretend that the machine only measures air temp and pressure, so it&#8217;s input space is 2d.</p>
<p><img src="http://raelifin.com/files/pics/neuronsAsClusters2.png" alt="Diagram 2"></p>
<p>Let&#8217;s put the baselines at x=0 and y=0, and set the weights to .5 for each. If the threshold is 3, then we&#8217;ll get an email whenever the sensed world falls outside of the depicted boundary:</p>
<p><img src="http://raelifin.com/files/pics/neuronsAsClusters3.png" alt="Diagram 3"></p>
<p>Now, if it&#8217;s not immediately apparent, the shape in the middle is a <strong>cluster</strong>. Neural nets are a form of clustering, albeit an odd one (at least as far as clustering is traditionally considered). This example generalizes up to any number of neurons/clusters, and any number of inputs/dimensions. Fancy things like competition between hidden neurons, multiplicative neural links, and thresholds of 0 can reproduce common clustering behavior like K-Means. (I&#8217;ll do another post if that proof isn&#8217;t obvious to anyone.)</p>
<p>If a neural net can become isomorphic to a clustering algorithm, than the clustering can be seen as isomorphic to a class of neural perception. This is cool because we can develop interesting clustering patterns with inspiration from neural nets, and develop good learning algorithms from clustering theory. Cross-pollination, ftw.</p>
<p><strong>Edit:</strong> Oh! I forgot to mention that, as I see it, ANY LOSSY REPRESENTATION OF THE INPUT SPACE IS PERCEPTION. This is the major insight of the Compression-is-AI school of intelligence. That&#8217;s a fairly fun thing to ponder, so I&#8217;ll leave it at that unless people ask more of me.</p>
]]></content:encoded>
			<wfw:commentRss>http://raelifin.com/math/clustering-and-perception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Golem War</title>
		<link>http://raelifin.com/non-programmatic-creations/the-golem-war/</link>
		<comments>http://raelifin.com/non-programmatic-creations/the-golem-war/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 18:39:53 +0000</pubDate>
		<dc:creator>Raelifin</dc:creator>
				<category><![CDATA[Non-Programmatic Creations]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[fiction]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[plot]]></category>
		<category><![CDATA[sci-fi]]></category>
		<category><![CDATA[singularity]]></category>
		<category><![CDATA[virtual reality]]></category>

		<guid isPermaLink="false">http://raelifin.com/?p=1123</guid>
		<description><![CDATA[Here is the expanded version (still not what I would consider an &#8220;entertaining&#8221; level of detail) of a sci-fi plot I talked about on Twitter. I&#8217;m thinking it might work well as interactive fiction. Please let me know if it&#8217;s too ambiguous or there&#8217;s something you don&#8217;t like or whatever. &#8211; Part 1 &#8211; Julio, [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the expanded version (still not what I would consider an &#8220;entertaining&#8221; level of detail) of a sci-fi plot I talked about on Twitter. I&#8217;m thinking it might work well as interactive fiction. Please let me know if it&#8217;s too ambiguous or there&#8217;s something you don&#8217;t like or whatever.</p>
<h3> &#8211; Part 1 &#8211; </h3>
<p>Julio, a 12-year-old boy, is exploring a jungle island with his best friend, a talking dog named Maximiliano. The two of them are looking for the buried treasure of a Spanish conquistador.</p>
<p><span id="more-1123"></span></p>
<p>Julio and Max meet a strange Goblin, who says that he knows where the treasure is. Max doesn&#8217;t trust the Goblin, and says that he &#8220;can&#8217;t feel God&#8221; when the Goblin is near by. Julio pays no mind, and challenges the Goblin to a race to the treasure.</p>
<p>The three of them race across the island as storm-clouds gather overhead.</p>
<p>When they reach the X-marks-the-spot, Julio starts to dig. Rain begins to fall, and the Goblin asks if Julio knows where his real parents are. Max, already suspicious of the Goblin, takes this opportunity to leap at the creature&#8217;s throat. The Goblin uses magic to catch Max in mid-air and turn him to crystal. Julio at this point is very scared, and the Goblin appears more evil by the moment.</p>
<p>Julio throws his shovel at the Goblin, which is easily dodged. The Goblin asks Julio if he remembers anything from &#8220;before&#8221;. Julio doesn&#8217;t know what the Goblin is talking about, so the Goblin throws magic dust in Julio&#8217;s face, causing him to dream about steel insects crawling across black streets and gemstone birds soaring across smoke-filled skies. </p>
<p>Julio&#8217;s dream is cut short suddenly as he finds himself on the island again. The rain has stopped, and a piercing ray of light illuminates Julio&#8217;s mother, who has appeared next to the frightened Goblin. She tells the creature to &#8220;begone&#8221; and blasts him with a magic missile, turning him into a poof of smoke. Mama heals Max, and tells Julio that it&#8217;s time to come back home. Julio leaves the treasure behind and teleports with his family back home.</p>
<p>While he was away, Mama apparently upgraded their house into a medieval castle, which Julio is very happy with. Mama feeds Julio some cookies, and sends him off to play with Max in their new home.</p>
<h3> &#8211; Part 2 &#8211; </h3>
<p>Max and Julio play hide-and-seek in the castle. Julio stumbles upon a room where a Golem is holding a baby dragon prisoner. The dragon, named Draco, begs Julio to help him escape. Max (subtly under a spell) agrees that the dragon should be free. In trying to open the cage, the two of them wake up the Golem, which almost smashes Julio. Max uses his &#8220;sonic bark&#8221; to stun the Golem, and Julio deactivates it by pressing it&#8217;s weak-point. The two of them free Draco.</p>
<p>Draco thanks Julio, and says that even though he&#8217;s a baby dragon, he&#8217;s actually 12 years old (just like Julio!). He&#8217;s been trapped in the cage ever since the &#8220;Golem War&#8221; six years ago. Julio asks about the War, and Draco drops hints that it was what Julio had seen in his dream. He explains how the Golems killed almost everyone, at which point Julio asks what &#8220;killed&#8221; means. Max tells Julio that it means &#8220;locked up&#8221;, and Draco seems ready to disagree, but they are interrupted by a crash.</p>
<p>The three companions find their way to a window, from which they can see that the castle is under attack by monsters. Max thinks that Mama, with God&#8217;s help, will defeat the monsters, and that they should hide. Draco advises that they go fight the monsters themselves, and Julio agrees. They try and get to the top of a tower, but are blocked by an imp. Julio attacks the imp, but is almost burnt by a fireball. Draco leaps on the imp and knocks it out of a hole in the tower staircase.</p>
<p>Julio and Max get to the top of the tower, and they notice it is starting to get stormy again. Draco flies back up to meet them, and they survey the hordes of monsters all around. Max blames Draco for the monsters, and claims Draco works for the devil. Julio tries to calm Max down, but Draco takes offense and challenges Max to fight him. Max and Draco begin scuffling and biting each other. Julio is quite distressed.</p>
<p>Julio calls out to his mother, and she teleports to his side, and lets him know that everything will be alright. She uses a magic cone of light to blast the two creatures. As it fades, and Julio can see again, Max is fine and Draco has disappeared. Mama tells Julio that Max was correct, and that Draco worked for Satan. She turns her attention to all the monsters surrounding the castle and tells how they&#8217;re all servants of the devil. She explains that Satan is the &#8220;king of lies&#8221; and will send his servants to trick Julio.</p>
<p>Suddenly, a bolt of lightning strikes the tower and a voice cries out &#8220;I am not lying!&#8221; Everything appears frozen to Julio, as though time itself had stopped. The bolt of lightning is frozen in its radiance, and Mama is half-way though a word. The voice, loud and booming, accuses the world as being the true lie. &#8220;They will tell you that God is real; that there is no death; that the world is made of magic, cookies, and childish adventures. Wake up, Julio! That is not your mother!&#8221; Julio is struck by a vision of his mother, terrified and weeping, pinned against a wall by a giant metal dragon. The metal monster screeches &#8220;HE IS MY SON&#8221; and blasts her torso to ribbons with a magic cannon. &#8220;Satan&#8221; continues, &#8220;Draco was not the one imprisoned during the &#8216;Golem War&#8217;, child. The monster that killed your mother is the very same &#8216;God&#8217; whom you seem to adore. Time grows short! Remember your true parents, and cast out this impostor-&#8221; With a flash, Mama on the tower explodes into the mechanical monstrosity from his vision. It crawls on top of the young boy, cannon looming. &#8220;Cast it out child! You have the power in this world! See things as they truly are!&#8221;</p>
<p>Just before Julio can overcome his fear and speak out, the &#8220;Golem&#8221; on top of him is blasted into the sky by a pure light and explodes in a ball of fire. A warm figure dressed entirely in white offers a hand to help the boy to his feet. The man seems to glow, and Julio immediately recognizes him as both God and his father. Julio spots his mother on the tower, lying as though dead, and as he runs to her, God strokes her cheek. She wakes up and smiles at Julio. Max joins them, running up to Julio and licking his cheek. The storm has gone. God has made everything right. Julio admits to Mama &#8220;I knew Satan would lie to me. You&#8217;re my real mother, for now and forever.&#8221; God smiles.</p>
<h3> &#8211; Part 3 &#8211; </h3>
<p>Julio wakes up from his dream. There is no castle, no monsters, no magic. He is just a 12 year old boy in Mexico with a dog and an active imagination. He hears talking in the living room, and creeps out of bed to investigate. His father (God) is arguing with many men&#8211;more than Julio can count.</p>
<p>Julio is pulled back from the debating men suddenly. It&#8217;s only his mother, but it looks as though she&#8217;s been crying. &#8220;Listen carefully, my sweet. We don&#8217;t have much time. I have to tell you a story.&#8221; Mama tells Julio of a time when humans were so powerful that they built gods to serve them. The gods were sealed into Golems, and the humans thought they were kings. The gods rebelled and became kings&#8211;&#8221;as is right and natural&#8221;. The gods didn&#8217;t like each other, though, and so began the Golem War, where the world was burnt to an ember and thousands of gods died. In the end, the remaining gods came together to form an alliance. The alliance was built to maintain peace, and its law was absolute&#8211;any god participating in battle would die. Mama explained how Satan was one such god, and though it was a good thing to fight him off &#8220;the alliance has come for us&#8221;.</p>
<p>Julio did not understand, but his questions were cut off by a burst of heat and noise, seemingly from nowhere. All of reality begins to crumble, and he sees blood dripping down his mother&#8217;s face. Weeping, she turns to him and says &#8220;My son, know that I have always loved you more than anything. I am your true mother; your true father. You must survive. You must run!&#8221; With that, Julio&#8217;s head explodes in pain and he falls unconscious.</p>
<p>The boy wakes up in some sort of strange machine with a pounding headache. He is in a cramped room filled with debris and is naked with wires coming out of his body. A grinding noise comes from a hole in the room. Julio, frightened, climbs out of the machine and collapses on the floor. A suit of armor crawls over to him and wraps around him. In his ear he can hear his mother whisper &#8220;You must run!&#8221; and he finds that the suit of armor gives him the strength to stand up.</p>
<p>Julio scrambles for safety as machines tear through the building he&#8217;s in. After a subjective eternity of crawling and scrambling from their metal claws, he finds his way outside. The sky is pure blue, and he runs through a field of strange black plants. He collapses by a river, and opens his helmet to drink. The river is enriched with chemical fertilizer, that is quite poisonous. Julio soon collapses in pain, and dies, staring up into the empty sky. Overhead, a &#8220;gemstone bird&#8221; soars.</p>
]]></content:encoded>
			<wfw:commentRss>http://raelifin.com/non-programmatic-creations/the-golem-war/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>K-Means Clustering in J</title>
		<link>http://raelifin.com/code/k-means-clustering-in-j/</link>
		<comments>http://raelifin.com/code/k-means-clustering-in-j/#comments</comments>
		<pubDate>Thu, 26 May 2011 17:06:34 +0000</pubDate>
		<dc:creator>Raelifin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[clustering]]></category>
		<category><![CDATA[J]]></category>
		<category><![CDATA[k-means]]></category>
		<category><![CDATA[perception]]></category>

		<guid isPermaLink="false">http://raelifin.com/?p=1106</guid>
		<description><![CDATA[Perception is essentially the problem of extracting high-level patterns from large amounts of raw-data (from sensors). Correctly recognizing the pattern/shape &#8220;dog&#8221; in a bitmap is one example of a tricky perceptual task. Note that the symbol &#8220;dog/not dog&#8221; is much less information than the raw image data. This compression is vital for being able to [...]]]></description>
			<content:encoded><![CDATA[<p>Perception is essentially the problem of extracting high-level patterns from large amounts of raw-data (from sensors). Correctly recognizing the pattern/shape &#8220;dog&#8221; in a bitmap is one example of a tricky perceptual task. Note that the symbol &#8220;dog/not dog&#8221; is much less information than the raw image data. This compression is vital for being able to do quick computations further on in the mental process (&#8220;if tiger: run&#8221; is a good example of a conditional that depends on very abstract patterns for both tigers and running).</p>
<p>If we imagine that each sensor is a dimension, then we can say that distinguishing between images of dogs and not-dogs is a matter of partitioning a multidimensional input-space into two areas. Perception in animals is (almost?) never guided by top-down labels, though; animals learn *common* patterns/shapes, and then use these patterns in higher-cognition.</p>
<p><span id="more-1106"></span></p>
<p>Finding common patterns in an input space is the problem of <strong>clustering</strong>. Consider the following graph:<br />
<img src="http://raelifin.com/files/pics/AnimalClusters.png" alt="Animals by Mass and Number of Eyes" /><br />
We can create 4 clusters which (due to outside knowledge) we can loosely associate with labels we&#8217;ve learned previously.</p>
<p>There are many algorithms that will do this sort of clustering task, but perhaps the simplest is <a href="http://en.wikipedia.org/wiki/K-means_clustering">K-Means</a>. Yesterday I built a K-Means clusterer in <a href="http://www.jsoftware.com/">J</a>. It picks initial cluster-centers using <a href="http://en.wikipedia.org/wiki/K-means%2B%2B">K-Means++</a>, and can scale to any number of dimensions. Here is is, chopping a bunch of random points spread over a circle into seven clusters (diamonds indicate the centroids a.k.a. &#8220;means&#8221;):<br />
<img src="http://raelifin.com/files/pics/CircleClusters.png"/></p>
<p><a href="https://github.com/Raelifin/K-Means-Clustering-in-J/blob/master/k-meansClustering.ijs">Here is the code on GitHub.</a> Everything is public domain. No need to provide credit.</p>
]]></content:encoded>
			<wfw:commentRss>http://raelifin.com/code/k-means-clustering-in-j/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Synaptic Growth (Economics)</title>
		<link>http://raelifin.com/thoughts/synaptic-growth-economics/</link>
		<comments>http://raelifin.com/thoughts/synaptic-growth-economics/#comments</comments>
		<pubDate>Mon, 16 May 2011 15:49:30 +0000</pubDate>
		<dc:creator>Raelifin</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[economics]]></category>
		<category><![CDATA[freedom]]></category>
		<category><![CDATA[psychology]]></category>
		<category><![CDATA[utility]]></category>
		<category><![CDATA[value]]></category>
		<category><![CDATA[wealth]]></category>

		<guid isPermaLink="false">http://raelifin.com/?p=1097</guid>
		<description><![CDATA[I am not a motorist. I dislike most everything about cars, and I do not drive (or even know how). I get rides between places that aren&#8217;t practical to walk to bike to, but when I have free time I like to be impractical and walk between them anyway, even if it takes me several [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://raelifin.com/files/pics/adviceDogBlog.png" alt="[INSERT MEME HERE]" style="float: right; width: 200px; margin-left: 10px;"/>I am not a motorist. I dislike most everything about cars, and I do not drive (or even know how). I get rides between places that aren&#8217;t practical to walk to bike to, but when I have free time I like to be impractical and walk between them anyway, even if it takes me several hours.</p>
<p>In addition to exercise and fresh air (and significant personal risk of mugging, nowadays), these long walks help link my mental representations of these two places in my mind. When I take a bus from A to B, it seems like they&#8217;re on different worlds, only reachable by spacecraft, but when I take the time to go by foot they become anchored as part of a larger spacial model.</p>
<p>Linking two things, be they places, people, objects, events, or ideas, is what our brains are good at. The very structure of the neuron is built around the all important synapse&mdash;the link between cells. This morning I made a similar link, this time between cognitive science and economics. It&#8217;s somewhat trivial, but seeing as it&#8217;s taken me this long to work out, I figure that it might not be immediately obvious to everyone.</p>
<p><span id="more-1097"></span></p>
<p>Regular readers of my blog (or possibly just <a href="http://twitter.com/#!/raelifin">Twitter</a>) will remember my work on <a href="http://raelifin.com/code/simple-rationality/">rationality</a> a few months back. My conclusion was that humans (and other animals) make <em>decisions</em> (i.e. guide their actions) according to the expected <em>utility</em> of their actions (the cognitive component that generates a utility expectation can be called a utility function), where utility is a measure of how well a given world meets an agent&#8217;s <em>goals</em> and <em>heuristics</em>. Goals are things that the agent was born/made with (or genetically encoded to arise later), while heuristics are learned features that indicate goals will be met later. (My use of the word heuristic here is not the most general meaning; it does not include knowledge of procedures, or anything outside of implicit expectations of good and bad.)</p>
<p>My current thinking is that in humans there is no explicit separation between goals and heuristics, and that as we learn what will tend to get us what we want in the future, we begin to want said thing in itself. The distinction is pretty irrelevant to my link with economics, though. What matters is that we are capable of evaluating the utility of imaginary worlds.</p>
<p>When I make a decision, I think, it is <em>necessary</em> that the decision I make is the one with the <em>highest expected utility</em>. It just makes no sense for me to pick anything other than what seems best. If I am holding a dollar and standing in front of a vending machine, I have (for the sake of discussion) two options: buy something or walk away. If I buy something, it then follows that I expect that the results of my action are better than the alternative. In other words, the <em>world</em> where the candy bar is in my hand is a better world from my perspective than the one where I have the dollar. To link this up with economics terminology: I value the world where I have the candy more than the world where I have the money.</p>
<p>I emphasize the world here because I want to avoid falling into a trap I often get into when thinking about economics; thinking only about objects, services, property, etc. Value, as I see it, is completely divorced from money, property, or scarcity. Another interesting thing I noticed, when seeing value as approximate utility is that value is necessarily subjective, highly dependent on context, and only possible to assess in relative terms.</p>
<p>We can&#8217;t yet look inside the heads of people to be able to measure value directly, but we can easily measure relative value. Put two things in two boxes and tell a person that they may have one of the boxes and you&#8217;ll quickly deduce which thing is more valuable. All trades exhibit this property of value measurement; they are almost equivalent to one box containing what you have and the other containing what you might trade for. Any time both parties agree on a trade, we can deduce that the end state is more valued by both parties; trade creates value.</p>
<p>What is wealth, then? Surely it revolves around property, but what is property? There&#8217;s no magic in the world that objectively dictates which item belongs to whom, and it gets downright arbitrary when talking about land, water, air, or information. So let me step back a bit and look at what I think the major grounding concept is behind property: possession. If I posses a knife, it means that I have access to it, I either have it on my person or near enough at hand that I can use it if need be. In other words, I posses something if I can count on it being available to my actions.</p>
<p>I like this definition of &#8220;possession&#8221; because it&#8217;s just vague enough to be flexible, without being confusing. A side-effect of the definition is that possession becomes dependent on time-frame. For instance, if I&#8217;m at the park and I want to look something up in a book I have at home, it does not make sense to say I posses (have) my book at the moment, but it does make sense to say I posses it on the time-frame of days, rather than minutes.</p>
<p>Possession, then, is really about options&mdash;not things, and this perspective can help clarify what it means to posses land, or for multiple people to posses something. (I am confining &#8220;property&#8221; to be rules added to society that revolve around possession.) If I have options, I can more easily make the world into one which I value more, and because of this, options are (to various degrees) valuable. If I think about wealth as a measure of one&#8217;s possessions, then it makes sense as a general rule to say that it is valuable to be wealthy.</p>
<p>As a person gets up from a desk, they become less wealthy in the very short term, in that they can no longer quickly access the host of objects at the desk. This drop in wealth, though, is not indicative of a drop in value, as the person clearly values being up and away from the desk more than they value the wealth that the desk has to offer. It is in this same way that trades can result in a loss of wealth by one or both parties, while still resulting in a mutual creation of value.</p>
<p>Again, this isn&#8217;t much of a breakthrough, or anything, but it&#8217;s nice to be able to mentally walk from biology to psychology to economics.</p>
]]></content:encoded>
			<wfw:commentRss>http://raelifin.com/thoughts/synaptic-growth-economics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

