<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Geek In Wonderland</title>
	<atom:link href="http://riffraff.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://riffraff.wordpress.com</link>
	<description>Learning Alice, one post at a time</description>
	<lastBuildDate>Thu, 10 Nov 2011 06:43:33 +0000</lastBuildDate>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='riffraff.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Geek In Wonderland</title>
		<link>http://riffraff.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://riffraff.wordpress.com/osd.xml" title="Geek In Wonderland" />
	<atom:link rel='hub' href='http://riffraff.wordpress.com/?pushpress=hub'/>
		<item>
		<title>check</title>
		<link>http://riffraff.wordpress.com/2007/05/08/check/</link>
		<comments>http://riffraff.wordpress.com/2007/05/08/check/#comments</comments>
		<pubDate>Tue, 08 May 2007 21:09:34 +0000</pubDate>
		<dc:creator>riffraff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://riffraff.wordpress.com/2007/05/08/check/</guid>
		<description><![CDATA[check that this still works<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=riffraff.wordpress.com&amp;blog=70910&amp;post=6&amp;subd=riffraff&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>check that this still works</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/riffraff.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/riffraff.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/riffraff.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/riffraff.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/riffraff.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/riffraff.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/riffraff.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/riffraff.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/riffraff.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/riffraff.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/riffraff.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/riffraff.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/riffraff.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/riffraff.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/riffraff.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/riffraff.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=riffraff.wordpress.com&amp;blog=70910&amp;post=6&amp;subd=riffraff&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://riffraff.wordpress.com/2007/05/08/check/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/248c4841bb697169ca18a33a4b982b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">riffraff</media:title>
		</media:content>
	</item>
		<item>
		<title>test</title>
		<link>http://riffraff.wordpress.com/2006/12/27/test/</link>
		<comments>http://riffraff.wordpress.com/2006/12/27/test/#comments</comments>
		<pubDate>Wed, 27 Dec 2006 14:51:48 +0000</pubDate>
		<dc:creator>riffraff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://riffraff.wordpress.com/2006/12/27/test/</guid>
		<description><![CDATA[test<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=riffraff.wordpress.com&amp;blog=70910&amp;post=5&amp;subd=riffraff&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>test</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/riffraff.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/riffraff.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/riffraff.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/riffraff.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/riffraff.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/riffraff.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/riffraff.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/riffraff.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/riffraff.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/riffraff.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/riffraff.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/riffraff.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/riffraff.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/riffraff.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/riffraff.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/riffraff.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=riffraff.wordpress.com&amp;blog=70910&amp;post=5&amp;subd=riffraff&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://riffraff.wordpress.com/2006/12/27/test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/248c4841bb697169ca18a33a4b982b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">riffraff</media:title>
		</media:content>
	</item>
		<item>
		<title>Basic Types in Alice</title>
		<link>http://riffraff.wordpress.com/2006/01/30/basic-types-in-alice/</link>
		<comments>http://riffraff.wordpress.com/2006/01/30/basic-types-in-alice/#comments</comments>
		<pubDate>Mon, 30 Jan 2006 13:24:31 +0000</pubDate>
		<dc:creator>riffraff</dc:creator>
				<category><![CDATA[basic]]></category>

		<guid isPermaLink="false">http://riffraff.wordpress.com/2006/01/30/basic-types-in-alice/</guid>
		<description><![CDATA[Well, I guess that &#8220;basic&#8221; may not be really correct, but I have not found another name for them, so I&#8217;ll stay with this. I&#8217;m talking about the basic elements which can be introduced as immediate values, such as &#8220;1&#8243; or &#8220;1.3&#8243;. There are quite a few of them, and so my first exploration has [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=riffraff.wordpress.com&amp;blog=70910&amp;post=4&amp;subd=riffraff&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well, I guess that &#8220;basic&#8221; may not be really correct, but I have not found another name for them, so I&#8217;ll stay with this.<span id="more-4"></span></p>
<p>I&#8217;m talking about  the basic elements which can be introduced as immediate values, such as &#8220;1&#8243; or &#8220;1.3&#8243;.</p>
<p>There are quite a few of them, and so my first exploration has been  related to trying them in the REPL.</p>
<p>ML has builtin boolean values, and logical operators for them:</p>
<pre>&gt; true;
val it : bool = true
&gt; false;
val it : bool = false
&gt; false andalso true;
val it : bool = false
&gt; true orelse false; val it : bool = true</pre>
<p>I don&#8217;t know why there are those strange names, but it seem that <tt>and</tt> is a keyword used somewhere else. The boolean operators are short-circuiting as in most languages.</p>
<p>Note the interesting output of the REPL, it gets read like:</p>
<pre>val [name]: [type] = [value]</pre>
<p>The <em>it</em> thing is a pseudo variable representing the last computed thing (when you don&#8217;t assign it to something else), you can refer to it explicitly like this:</p>
<pre>&gt; false;
val it : bool = false
&gt; it andalso true;
val it : bool = false</pre>
<p>You  can, obviousaly, declare your own things with the same syntax, and you can omit the type declaration since Alice will be able to <em>infer</em> it by itself looking at the value you are assigning:</p>
<pre>&gt; val myVal= true andalso false;
val myVal : bool = false</pre>
<p>ML, and thus Alice also have some types representing numbers, specifically:</p>
<p><strong>int</strong>s (signed integers) introduced as decimal or hexadecimal values in C-like format (0xDEADBEEF)</p>
<p><strong>real</strong>s introduced with the usual dotted notation (1.234) or scientific notation (1.1E2 or 1.1e2)<br />
<strong>word</strong>s (unsigned integers) inhtroduce in decimal notation as 0w1234 or hexadecimal 0wx1234aF.</p>
<p>An unusual thing is that when declaring negative values you must prepend a &#8220;~&#8221; to the value, not a &#8220;-&#8221;.</p>
<p>Basic operations are provided on these values: +,-,*, div and mod ara available for int and word values, while you can only access / with real values.</p>
<p>The comparison operators  are ,=,=, and are available on all types, but there is a difference wrt other languages, since you can&#8217;t <em>compare apples and oranges</em>, unless you explicitly transform one value into another.</p>
<p>See this:</p>
<pre>&gt; 0xff &gt;= 255;
val it : bool = true
&gt; 0wxff &gt;= 255;
1.0-1.12: mismatch on application: expression type
word * int
does not match function's argument type
word * word
because type
int
does not unify with
word</pre>
<p>If you&#8217;re wondering why the REPL writes &#8220;<strong>word * int</strong>&#8221; when we were using a comparison operator.. well, that should be considered as a type composed of the <em>product</em> of a word value and an int value. Product types are quite common, so feel free to familiarize with it.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/riffraff.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/riffraff.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/riffraff.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/riffraff.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/riffraff.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/riffraff.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/riffraff.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/riffraff.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/riffraff.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/riffraff.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/riffraff.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/riffraff.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/riffraff.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/riffraff.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/riffraff.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/riffraff.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=riffraff.wordpress.com&amp;blog=70910&amp;post=4&amp;subd=riffraff&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://riffraff.wordpress.com/2006/01/30/basic-types-in-alice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/248c4841bb697169ca18a33a4b982b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">riffraff</media:title>
		</media:content>
	</item>
		<item>
		<title>Welcome to this blog</title>
		<link>http://riffraff.wordpress.com/2006/01/24/welcome-to-this-blog/</link>
		<comments>http://riffraff.wordpress.com/2006/01/24/welcome-to-this-blog/#comments</comments>
		<pubDate>Tue, 24 Jan 2006 23:23:02 +0000</pubDate>
		<dc:creator>riffraff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://riffraff.wordpress.com/2006/01/24/welcome-to-this-blog/</guid>
		<description><![CDATA[well, this is just a test post, I hope to come up soon with something more meaningful<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=riffraff.wordpress.com&amp;blog=70910&amp;post=3&amp;subd=riffraff&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>well, this is just a test post, I hope to come up soon with something more meaningful <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/riffraff.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/riffraff.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/riffraff.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/riffraff.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/riffraff.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/riffraff.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/riffraff.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/riffraff.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/riffraff.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/riffraff.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/riffraff.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/riffraff.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/riffraff.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/riffraff.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/riffraff.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/riffraff.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=riffraff.wordpress.com&amp;blog=70910&amp;post=3&amp;subd=riffraff&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://riffraff.wordpress.com/2006/01/24/welcome-to-this-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/248c4841bb697169ca18a33a4b982b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">riffraff</media:title>
		</media:content>
	</item>
	</channel>
</rss>
