<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title><![CDATA[Jordan Lewis]]></title>
  <link href="http://jordanlewis.github.com/atom.xml" rel="self"/>
  <link href="http://jordanlewis.github.com/"/>
  <updated>2016-09-26T13:53:03-04:00</updated>
  <id>http://jordanlewis.github.com/</id>
  <author>
    <name><![CDATA[Jordan Lewis]]></name>
    <email><![CDATA[jordanthelewis@gmail.com]]></email>
  </author>
  <generator uri="http://octopress.org/">Octopress</generator>

  
  <entry>
    <title type="html"><![CDATA[Exercises from PFDS Section 2.2]]></title>
    <link href="http://jordanlewis.github.com/blog/2012/12/04/pfds-section-2-dot-2-exercises/"/>
    <updated>2012-12-04T18:48:00-05:00</updated>
    <id>http://jordanlewis.github.com/blog/2012/12/04/pfds-section-2-dot-2-exercises</id>
    <content type="html"><![CDATA[<p>Section 2.2&#8217;s exercises define some optimizations to the section&#8217;s unbalanced
tree set implementation.</p>

<h2>Exercise 2.2</h2>

<p>The implementation of <code>member</code> that Okasaki gives for binary search trees in
section 2.2 performs <code>2d</code> comparisons for a tree of depth <code>d</code> in the worst
case, when searching for a number that is the farthest to the right on the
tree, and when the right path in the tree is of depth <code>d</code> itself. This is
because every call of <code>member</code> checks whether <code>x &lt; y</code> and, if not, whether <code>y &lt;
x</code>. This strategy allows immediate detection of the case in which the value
being searched for is contained in the current node, permitting short-circuit
cases like where the searched-for value is in the root node, at the cost of
requiring double the comparisons when traversing rightward.</p>

<p>Exercise 2.2 proposes a strategy in which the second comparison is delayed
until the bottom of the tree. This removes the <code>2d</code> worst-case number of
comparisons, at the cost of raising the minimum number of comparisons to the
number of nodes in the shortest path from the root to a leaf. The implementation
is relatively straightforward:</p>

<div><script src='https://gist.github.com/4206836.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<p>We introduce a new parameter to <code>member</code>, <code>c: Option[T]</code>, which is <code>None</code> when
there is not yet a candidate for equality, and <code>Some(d)</code> when <code>d</code> is a candidate
for equality. Then, when we reach a leaf node, we check to see whether our
candidate is equal to the value we&#8217;re searching for.</p>

<h2>Exercise 2.3</h2>

<p>Exercise 2.3 proposes an optimization to <code>insert</code>. The implementation given by
Okasaki performs wasteful path copying when the value being inserted is already
in the tree. If the value being inserted is present in a particular node, the
only thing that&#8217;s done is to short-circuit the operation and return the node
as it exists, which doesn&#8217;t reverse any of the path copying performed while
traversing the tree down to the node.</p>

<p>Throwing an exception in the case where the element being inserted already
exists avoids the wasteful path copying. Okasaki requires that the function
establish only one exception handler per insert, not per function call, so we
catch the exception in the helper <code>insert</code> method of the UnbalancedTreeSet
class.</p>

<div><script src='https://gist.github.com/4206895.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<h2>Exercise 2.4</h2>

<p>Exercise 2.4 is to integrate the improvements to <code>member</code> from exercise 2.2
into the improved version of <code>insert</code> from 2.3. This is straightforward: we
follow the pattern established by 2.2, threading an equality candidate through
the recursive calls, and checking for equality only at the end. Now <code>insert</code>
performs no unnecessary path copying if inserting a pre-existing element, and
performs at most <code>d + 1</code> comparisons along the way.</p>

<div><script src='https://gist.github.com/4207683.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<h2>Exercise 2.5</h2>

<p>Exercise 2.5 is about generating balanced binary trees that share as much as
possible. The exercise assumes that all of the values in the trees are the same,
which doesn&#8217;t make much sense for the set abstraction, but ensures that all
subtrees of the same size are identical.</p>

<p>For the first part, we implement a function <code>complete</code> that creates a complete
tree of <code>d</code> levels. As a binary tree, it should have <code>2^d - 1</code> values inside.
The implementation is a straightforward recursive function. The base case, a
binary tree of 0 levels, is just a leaf node. The recursive case creates an
internal node whose children are both the result of recursing with one less
level.</p>

<p>For the second part, we implement a function <code>balanced</code> that creates a tree
with <code>d</code> values that is as balanced as possible: every internal node&#8217;s subtrees
differ in size by at most 1.</p>

<p>I put both of these methods directly on BinaryTree&#8217;s companion object. I think
this is idiomatic, but it&#8217;s not really clear to me: there are so many different
ways to do things in Scala.</p>

<div><script src='https://gist.github.com/4210143.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<p>I wrote a few tests for the tree generation functions in a normal
assertion-based style before remembering the existence of
<a href="https://github.com/rickynils/scalacheck">ScalaCheck</a> and its obvious
applicability for this kind of thing. I&#8217;ve been itching to use a
QuickCheck-style testing framework for a while. If you haven&#8217;t seen it before,
you should definitely check it out. It allows you to write tests in a
declarative style, without specifying individual test cases. The framework
will generate random test cases for you, either by using built-in random
generators for simple cases like arbitrary strings or integers, or by using
a user-defined random object generator.</p>

<p>In this case, since I wanted my test cases to vary the number of levels or
nodes in a balanced tree, I was able to just use the built-in random integer
generator. Writing tests in this way is concise and fun. Here&#8217;s what they ended
up looking like:</p>

<div><script src='https://gist.github.com/4210365.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<h2>Exercise 2.6</h2>

<p>This exercise asks the reader to modify UnbalancedTreeSet so that it represents
a map instead of a set. This is very straightforward, if tedious: we must add
another data member to <code>BinaryTreeNode</code> that represents the value of an entry
in the map, change <code>member</code> to <code>lookup</code> and have it return the value data
member instead of true, and throw an exception instead of false, and finally
change <code>insert</code> to <code>bind</code>, give it an extra value argument, and set the
<code>BinaryTreeNode</code>&#8217;s value field to that argument. I didn&#8217;t implement this.</p>

<p>As usual, the new code&#8217;s on <a href="https://github.com/jordanlewis/PFDScala">GitHub</a>.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[PFDS Section 2.2]]></title>
    <link href="http://jordanlewis.github.com/blog/2012/05/01/pfds-section-2-dot-2/"/>
    <updated>2012-05-01T16:33:00-04:00</updated>
    <id>http://jordanlewis.github.com/blog/2012/05/01/pfds-section-2-dot-2</id>
    <content type="html"><![CDATA[<p>Section 2.2 presents immutable sets implemented with unbalanced binary search
trees, a slightly more complex example of immutable data sharing than the list
example in <a href="http://jordanlewis.github.com/blog/2012/01/27/chapter-1-dot-1/">Section 2.1</a>. My
first challenge was to reimplement Okasaki&#8217;s base implementation of unbalanced
binary search tree sets using idiomatic Scala. I had to learn a fair amount
more about Scala&#8217;s type system to be able to write such an implementation, so I
figured I&#8217;d write up some of the things I learned about Scala in the process as
well as the implementation.</p>

<h2>A generic trait for sets</h2>

<p>Okasaki&#8217;s set interface contains two methods, <code>insert</code> and <code>member</code>. Similar to
the generic stack trait implementation that I wrote about
<a href="http://jordanlewis.github.com/blog/2012/01/31/abstract-generic-collections-section-2-dot-1-redux/">last time</a>
, it&#8217;s easy to create this interface as a generic trait in Scala.</p>

<div><script src='https://gist.github.com/2565386.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<h2>Unbalanced binary search trees</h2>

<p>Unbalanced binary search trees are a great choice for a simple implementation
of Okasaki&#8217;s set interface, since <code>insert</code> and <code>member</code> in an unbalanced binary
search tree both take on average <code>O(log n)</code> time in the number of elements in
the tree, or <code>O(n)</code> time in the pathological case where each subsequent insert
is greater than the last.</p>

<p>I decided to follow Okasaki&#8217;s functor-like pattern for the implementation, so
I wrote a simple binary tree data type using case classes. This allowed me to
use Scala&#8217;s pattern matching feature in my implementation of the binary search
tree.</p>

<div><script src='https://gist.github.com/2573618.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<p>Binary search trees rely on the ordering of the type of element that they&#8217;re
storing, so a generic binary search tree implementation similarly must require
that its type parameter has an order. In Scala, this can be accomplished with
either of two methods: either by using a <em>view bound</em> on the type parameter to
require that it be implicitly convertable to an Ordered type, or by requiring
an instance of Ordering, parameterized on the binary tree&#8217;s input type, as a
value parameter.</p>

<p>In trying to write the most Scala-idiomatic version of the data structure, I
ended up investigating both methods before deciding on one, since it wasn&#8217;t
obvious at first which method would be the simplest. If you&#8217;re already familiar
with Scala view bounds and type orderings, or if you just want to get to the
implementation of the 2.2 data structures already, then you should skip right
ahead to <a href="#implementation">the implementation</a>.</p>

<h3>View bounds</h3>

<p>A view bound is specified by the <code>&lt;%</code> operator. Specifying <code>T &lt;% U</code> in a type
parameter adds the restriction that the type parameter <code>T</code> must be <em>implicitly
convertible</em> to <code>U</code>, which is true when there exists a method</p>

<pre><code>implicit def t2u(t: T): U
</code></pre>

<p>somewhere in the current scope. In our case, we&#8217;re interested in view bounding
<code>T</code> by <code>Ordered[T]</code>, which will give us access to the comparison methods (<code>&lt;</code>,
<code>&gt;</code>, etc) defined on the <code>Ordered[T]</code> type for values of type <code>T</code>.</p>

<p>For example, to implement a generic less-than function lt that utilizes the
<code>&lt;</code> method on the input type&#8217;s <code>Ordered</code> implementation, we write</p>

<pre><code>def lt[T &lt;% Ordered[T]](x: T, y: T): Boolean = x &lt; y
</code></pre>

<p>Without specifying the view bound on <code>T</code>, we would not have access
to the <code>&lt;</code> method on <code>x</code>, since it is not defined for any arbitrary
type <code>T</code>.</p>

<h3>Ordering instances</h3>

<p>The other Scala-idiomatic way to provide or access the ordering of a type <code>T</code>
is through objects that implement the trait <code>Ordering[T]</code>. An object that
implements <code>Ordering[T]</code> provides the <code>compare(x: T, y: T)</code> method, which acts
as the underlying implementation for the trait&#8217;s other methods, which include
<code>lt(x: T, y: T)</code>, <code>gt(x: T, y: T)</code>, and the like.</p>

<p>For example, to implement a generic less-than function lt that utilizes the
<code>lt</code> method on the input type&#8217;s <code>Ordering</code>
implementation, we could write the curried method</p>

<pre><code>def lt[T](x: T, y: T)(implicit val ordering: Ordering[T]): Boolean = ordering.lt(x, y)
</code></pre>

<p>Note that we don&#8217;t have to specify a type bound on <code>T</code>, but we still ensure
that <code>T</code> is comparable at the type system level by requiring as an argument an
ordering object that&#8217;s parameterized on <code>T</code>. We make the ordering an implicit
and curried argument, so that if <code>T</code> has an implicit conversion to
<code>Ordering[T]</code>, as most of Scala&#8217;s comparable types do, the user doesn&#8217;t have to
explicitly pass in the ordering.</p>

<p>Using instances of <code>Ordering[T]</code> makes your code slightly less pretty, as you
can no longer write <code>x &lt; y</code>, you have to instead write <code>ordering.lt(x, y)</code>, but
it makes more explicit what&#8217;s going on under the hood. It wouldn&#8217;t necessarily
be obvious that writing <code>x &lt; y</code> where <code>x</code> and <code>y</code> are instances of type <code>T &lt;%
Ordered[T]</code> actually invokes the <code>&lt;</code> method on whatever <code>Ordered[T]</code> object <code>x</code>
and <code>y</code> are implicitly convertible to. I think I prefer the more explicit
version using <code>Ordering[T]</code>, but that&#8217;s probably because using implicit
conversions at all leaves me with a funny taste in my mouth. It seems to me
that overusing implicit conversions would lead to a special hell of confusing
spaghetti code.</p>

<p><a id="implementation"></a></p>

<h2>Scala implementation of unbalanced binary tree sets</h2>

<p>For the implementation, I wrote the actual <code>insert</code> and <code>member</code> logic as
private methods on a utility object. The class that actually implements the Set
trait uses the utility object as its underlying implementation. I used Scala&#8217;s
<em>companion object</em> idiom to structure the whole thing in an elegant way.</p>

<p>Here&#8217;s the companion object that contains the underlying implementation logic:</p>

<div><script src='https://gist.github.com/2573799.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<p>And here&#8217;s the class that actually implements the Set interface using the
companion object:</p>

<div><script src='https://gist.github.com/2573976.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<p>You can see the code in its entirety, as well as a small unit test, on
<a href="https://github.com/jordanlewis/PFDScala">GitHub</a>. Next time I&#8217;ll implement
solutions for section 2.2&#8217;s exercises.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Abstract Generic Collections: PFDS Section 2.1 Redux]]></title>
    <link href="http://jordanlewis.github.com/blog/2012/01/31/abstract-generic-collections-section-2-dot-1-redux/"/>
    <updated>2012-01-31T00:34:00-05:00</updated>
    <id>http://jordanlewis.github.com/blog/2012/01/31/abstract-generic-collections-section-2-dot-1-redux</id>
    <content type="html"><![CDATA[<p>At the end of my last post, I mentioned that I ended up reusing Scala&#8217;s build-in
List collection to implement the exercises instead of writing a generic abstract
Stack and sample implementations of those. Since then, I&#8217;ve spent some time
learning about how to implement generic collections in Scala. I came up with
a Stack trait, <em>a la</em> Okasaki&#8217;s Stack signature, and three implementations: the
first two are straightforward translations of the SML structures given in the
book, and the third is a more Scala-idiomatic implementation.</p>

<p>On an organizational note, I&#8217;ve also started a
<a href="https://github.com/jordanlewis/PFDScala">PFDScala repository</a> on GitHub for
this blog series, so I can have a centralized place to put all of the code I
write for the exercises and examples. I&#8217;ll still put the relevant snippets in
gists so I can embed them here.</p>

<h2>A Generic Trait for Stacks</h2>

<p>Scala traits are very powerful. They&#8217;re basically like mixin classes from Ruby,
in that your class can extend from multiple traits without having the troubles
that plague C++-style multiple inheritance.</p>

<p>Abstract traits can be used like Java interfaces. This is just what we need to
write a generic interface for Stacks:</p>

<div><script src='https://gist.github.com/1709179.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<p>For those of you unfamiliar with Scala, this is similar to a Java interface or
a SML signature: we&#8217;re defining a type-parameterized trait/interface/signature
with a bunch of method signatures that classes which extend this trait must
implement themselves. What&#8217;s up with the weird type annotations, though?</p>

<p>In Scala, annotating a type parameter with &#8220;+&#8221; marks it as a covariant type
parameter. This means that if we have a type C[+T], a type with a single
covariant type parameter, and if type A is a subtype of type B, then type C[A]
is a subtype of C[B]. We can similarly annotate a type parameter with &#8220;-&#8221; for
the opposite effect.</p>

<p>The &#8220;>:&#8221; type operator is the supertype relationship: the type on the left of
it has to be a supertype of the type on the right of it.</p>

<p>So why do we need to annotate our types like this here? In Scala, by default,
types are invariant in their type parameters. This means if we had a
List[Integer], and List&#8217;s type parameter was invariant, then that list would
not be a subtype of a List[Number], even though it seems like it would be fine
because a List of Integers is just a specialized List of Numbers. The same thing
goes for our Stack type, so we mark its type parameter up as covariant.</p>

<p>However, to keep compile-time type checking sound, Scala has to impose some
restrictions on the types of methods in classes with covariant type parameters,
due to the problem of mutability: a mutable array of type T is actually
<em>contravariant</em> in its type parameter, because if you had an Array of type
Any, updating one of its cells to be a subtype of Any like String is not always
legal. So, in our Stack example, we can no longer simply say</p>

<pre><code>def cons(x: T) : Stack[T]
</code></pre>

<p>because the x is appearing in a <em>contravariant</em> position, meaning that it has
the potential to mutate state in a way that could break type safety.</p>

<p>Luckily, we can get around this problem of contraviariant position by imposing
a bound on the type of cons&#8217;s parameter: we say</p>

<pre><code>def cons(x: U &gt;: T) : Stack[U]
</code></pre>

<p>to ensure that the input type of cons is a supertype of the stack&#8217;s type. This
prevents any type safety issues caused by the potential contravariance of the
formal parameter, and allows users to generalize the type of a Stack by consing
a more general type onto it. For example, one could cons a String onto a
Stack[Int] and get out a Stack[Any].</p>

<h2>Implementation 1: Using builtin Lists as the backing store</h2>

<p>This class uses the builtin List implementation to provide the underlying
storage for the Stack. It also uses Scala&#8217;s <em>companion object</em> feature to
provide a static factory method for creating new ListStacks.</p>

<div><script src='https://gist.github.com/1709271.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<h2>Implementation 2: Using a custom List case class as the backing store</h2>

<p>This class uses a custom implementation of List as the backing store. It&#8217;s the
same idea as the first one, except we use a set of case classes to match on
instead of just wrapping List&#8217;s functions.</p>

<div><script src='https://gist.github.com/1709288.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<p>This shows off Scala&#8217;s case classes a little bit: they&#8217;re just like datatypes
in SML, except a bit more verbose to specify. The abstract class LIST is like
the name of the datatype, and the case classes that inherit from it are like
the datatype&#8217;s constructors. Making LIST <em>sealed</em> restricts classes from
extending it unless they&#8217;re in the same file: this allows the compiler to detect
non-exhaustive matches.</p>

<h2>Implementation 3: Implementing the Stack functions within case classes</h2>

<p>This implementation is a bit different from the other two: instead of storing
the actual Stack data as a data member inside of a single StackImpl class, this
puts the implementation inside of case classes that extend the implementation
class, which is made abstract.</p>

<p>This strategy seems the most idiomatic of the implementations I wrote. It
defines its own internal datatype like the custom List implementation, without
the mess of having to match on each of the cases of the custom List every time
it&#8217;s necessary to operate on the data. I think it produces the most compact
and readable code out of all three implementations.</p>

<div><script src='https://gist.github.com/1709315.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<h2>Conclusion</h2>

<p>That was a long-winded post for what was just defining a simple custom
collection interface and a few simple implementations. Again, all of this code is available in the
<a href="https://github.com/jordanlewis/PFDScala">PFDScala GitHub repo</a>. Next time
we&#8217;ll proceed with the next section, 2.2. Hopefully it will be easier to
implement the examples and exercise solutions with the improved understanding
of Scala&#8217;s type system that I gathered by writing this post.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[PFDS Section 2.1]]></title>
    <link href="http://jordanlewis.github.com/blog/2012/01/27/chapter-1-dot-1/"/>
    <updated>2012-01-27T22:09:00-05:00</updated>
    <id>http://jordanlewis.github.com/blog/2012/01/27/chapter-1-dot-1</id>
    <content type="html"><![CDATA[<p>This is the inaugural post of the PFDS series.</p>

<p>Section 2.1 discusses the ramifications of implementing lists and stacks in a
functional and immutable manner. Using the operation of <em>list catenation</em>
as a motivator, Okasaki introduces the idea of data sharing. We see that to
catenate two lists, we can share the second list, which doesn&#8217;t get modified,
but must copy all of the nodes in the first list just to modify the last one.</p>

<p>In Scala, the function catenate on the built-in list type looks like the
following:</p>

<div><script src='https://gist.github.com/1692508.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<p>Updating a single element of the list is similar. We have to copy all of the
elements in the list up to the element to be updated, and then we can point the
tail of the element we updated to the pre-existing tail of the old element,
thus sharing as much data as possible.</p>

<div><script src='https://gist.github.com/1692539.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<h3>Exercise 2.1</h3>

<p>This exercise is straightforward: we must write a function that takes a generic
list and returns a list of all of the suffix lists of the input list,
from longest to shortest. We must show that this function operates in linear
time and linear space with respect to the size of the input list.</p>

<p>Since no elements are being updated, it&#8217;s easy to see that all we have to do is
return a new list whose elements are every cons cell in the input list. This
is O(n) in time, as we are performing one cons operation for each element in the
input list, and O(n) in space, as we&#8217;re saving one cons cell per cons cell in
the input list.</p>

<div><script src='https://gist.github.com/1692330.js'></script>
<noscript><pre><code></code></pre></noscript></div>


<p>This was a pretty simple section, serving mainly as a refresher course in
functional programming fundamentals.</p>

<p>For this post, I reused Scala&#8217;s built-in List type to implement the exercise
and example functions. I had intended to define my own abstract generic Stack,
and show how it can be implemented with either the build-in List type or a set
of case classes Nil and Cons, like Okasaki does using Standard ML. However, I&#8217;m
still a Scala novice, and I ran into some difficulties with the type system
that go over my head at this point. I plan to revisit this at a later date once
I&#8217;ve learned a little bit more about Scala&#8217;s type system.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Notes on Purely Functional Data Structures]]></title>
    <link href="http://jordanlewis.github.com/blog/2012/01/03/notes-on-purely-functional-data-structures/"/>
    <updated>2012-01-03T01:24:00-05:00</updated>
    <id>http://jordanlewis.github.com/blog/2012/01/03/notes-on-purely-functional-data-structures</id>
    <content type="html"><![CDATA[<p>I heard a lot of good things about Mike Okasaki&#8217;s <a href="http://www.amazon.com/gp/product/0521663504/ref=as_li_qf_sp_asin_tl?ie=UTF8&tag=jordanlewisor-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0521663504">Purely Functional Data Structures</a><img src="http://www.assoc-amazon.com/e/ir?t=jordanlewisor-20&l=as2&o=1&a=0521663504" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> at UChicago, but didn&#8217;t ever take the time to check it out. Lately I&#8217;ve missed the heady joy of reading and writing code in a strongly typed functional programming language like Standard ML, so when one of my coworkers at Knewton mentioned he was going to read the book I decided to get a copy for myself.</p>

<p>I&#8217;m going to try to read through the whole book and complete as many of the exercises that I can. To help myself keep the commitment, I&#8217;m going to follow in Eli Bendersky&#8217;s footsteps and post reading notes and exercise solutions along the way, as <a href="http://eli.thegreenplace.net/2007/06/19/introducing-the-sicp-reading-notes/">he did for SICP</a>.</p>

<p>The notes will be categorized under <a href="http://jordanlewis.github.com/blog/categories/pfds/">pfds</a>.</p>

<p>Also, I&#8217;ve recently begun to learn Scala, a strongly typed functional language on the JVM with nice features such as algebraic datatypes in the form of case classes, pattern matching, and lazy values. Given the usefulness of these language amenities for exploration of Okasaki&#8217;s concepts, I&#8217;m going to do the exercises in Scala instead of Standard ML or Haskell.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Hello World]]></title>
    <link href="http://jordanlewis.github.com/blog/2012/01/02/hello-world/"/>
    <updated>2012-01-02T01:50:00-05:00</updated>
    <id>http://jordanlewis.github.com/blog/2012/01/02/hello-world</id>
    <content type="html"><![CDATA[<p>Hi internet! I&#8217;ve gotten with the program and bloggified my website with the help of the pretty rad <a href="http://octopress.org">Octopress</a> framework. Hope you enjoy it.</p>
]]></content>
  </entry>
  
</feed>
