<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.7.4">Jekyll</generator><link href="https://sindrejohansen.no/blog/feed.xml" rel="self" type="application/atom+xml" /><link href="https://sindrejohansen.no/blog/" rel="alternate" type="text/html" /><updated>2018-11-16T21:50:16+00:00</updated><id>https://sindrejohansen.no/blog/</id><title type="html">Some Words</title><subtitle>A blog where I write about ideas I have.</subtitle><entry><title type="html">Bringing Elm’s architecture to Rust and Webassembly</title><link href="https://sindrejohansen.no/blog/willow/rust/elm/2018/11/16/willow-elm-in-rust.html" rel="alternate" type="text/html" title="Bringing Elm's architecture to Rust and Webassembly" /><published>2018-11-16T16:35:22+00:00</published><updated>2018-11-16T16:35:22+00:00</updated><id>https://sindrejohansen.no/blog/willow/rust/elm/2018/11/16/willow-elm-in-rust</id><content type="html" xml:base="https://sindrejohansen.no/blog/willow/rust/elm/2018/11/16/willow-elm-in-rust.html">&lt;p&gt;tl;dr: See &lt;a href=&quot;https://github.com/sindreij/willow&quot;&gt;https://github.com/sindreij/willow&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I really like Elm. It is a delightful language with an amazing ecosystem. It
has an interesting architecture called TEA, The Elm Architecture. TEA and Elm
are not separable, you can’t have one thing without the other. And that makes
Elm a pleasure to use. TEA has also been an inspiration for how Redux is used to
handle state in the React ecosystem.&lt;/p&gt;

&lt;p&gt;Another language I like is Rust. On paper, Rust is completely different from
Elm, but in using them both, I have seen some resemblance. They both have great
type systems that make it easier to refactor and gives few&lt;sup id=&quot;fnref:1&quot;&gt;&lt;a href=&quot;#fn:1&quot; class=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; runtime exceptions.
They have similar support for tagged unions and pattern matching. They both
handle errors using the sum-type &lt;code class=&quot;highlighter-rouge&quot;&gt;Result&lt;/code&gt;. It’s easy to see how they are
inspired by a similar set of languages.&lt;/p&gt;

&lt;p&gt;The big difference is that Elm compiles to JS and Rust compiles to machine code.
The main goal for Elm is writing frontend to be run in the browser,
while Rust can only be run natively and is primarily meant to be used for servers and
other native code.&lt;/p&gt;

&lt;p&gt;Until recently.&lt;/p&gt;

&lt;p&gt;There is something brewing, called WebAssembly, or wasm for short. It is a
compile target that makes it possible to run Rust (and C and C++ and lots of
more languages) in the browser. Rust has had support for compiling to wasm for a
while, but in the last few months the support has become really great, the
Rust team has created some amazing tools that make using Rust with wasm a
breeze.&lt;/p&gt;

&lt;h2 id=&quot;the-idea&quot;&gt;The idea&lt;/h2&gt;

&lt;p&gt;Having used both Elm and Rust I had something I wanted to try. Would it be
possible to create The Elm Architecture in Rust?&lt;/p&gt;

&lt;p&gt;This is a basic Elm app (excluding the imports):&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-elm&quot;&gt;type Msg
    = Increment
    | Decrement

type alias Model =
    { counter : Int
    }

update : Msg -&amp;gt; Model -&amp;gt; Model
update msg model =
    case msg of
        Increment -&amp;gt;
            { model | counter = model.counter + 1 }

        Decrement -&amp;gt;
            { model | counter = model.counter - 1 }

view : Model -&amp;gt; Html Msg
view model =
    div []
        [ button [ onClick Increment ] [ text &quot;+&quot; ]
        , div [] [ text (String.fromInt model.counter) ]
        , button [ onClick Decrement ] [ text &quot;-&quot; ]
        ]

main: Program () Model Msg
main =
    Browser.sandbox { init = Model 0, update = update, view = view }

&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;We have a &lt;code class=&quot;highlighter-rouge&quot;&gt;Msg&lt;/code&gt; which is the action type in Elm.
Each event in Elm creates one such Message. Then we have the &lt;code class=&quot;highlighter-rouge&quot;&gt;update&lt;/code&gt; function
which takes in a message and a model and returns the new model. We have a
&lt;code class=&quot;highlighter-rouge&quot;&gt;view&lt;/code&gt; function which takes a model and returns the HTML to render. And at last,
we have a &lt;code class=&quot;highlighter-rouge&quot;&gt;main&lt;/code&gt;-function that connects everything.&lt;/p&gt;

&lt;p&gt;If we try to translate this to Rust, it will become something like:&lt;/p&gt;

&lt;div class=&quot;language-rust highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;err&quot;&gt;#&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;derive&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Debug&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Clone&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;PartialEq&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;Eq&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)]&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;pub&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;enum&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Msg&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;Increment&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;Decrement&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;nd&quot;&gt;#[derive(Debug,&lt;/span&gt; &lt;span class=&quot;nd&quot;&gt;Clone)]&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;pub&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;struct&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Model&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;counter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;i32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;update&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;msg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Msg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;mut&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;match&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;msg&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;nn&quot;&gt;Msg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Increment&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;py&quot;&gt;.counter&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
        &lt;span class=&quot;nn&quot;&gt;Msg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Decrement&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;py&quot;&gt;.counter&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;view&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Html&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Msg&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;nf&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
        &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[],&lt;/span&gt;
        &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;
            &lt;span class=&quot;nf&quot;&gt;button&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;on_click&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nn&quot;&gt;Msg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Increment&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)],&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;+&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)]),&lt;/span&gt;
            &lt;span class=&quot;nf&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[],&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;py&quot;&gt;.counter&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.to_string&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())]),&lt;/span&gt;
            &lt;span class=&quot;nf&quot;&gt;button&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;on_click&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nn&quot;&gt;Msg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Decrement&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)],&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;-&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)]),&lt;/span&gt;
        &lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;pub&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Program&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Msg&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;nn&quot;&gt;Program&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;view&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;update&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;init&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Model&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;counter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}}&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is compilable Rust code, and using this project it will render and run exactly the
same as the Elm code. You can try it &lt;a href=&quot;http://sindrejohansen.no/willow/counter/&quot;&gt;here&lt;/a&gt;&lt;sup id=&quot;fnref:2&quot;&gt;&lt;a href=&quot;#fn:2&quot; class=&quot;footnote&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;

&lt;p&gt;Note how much the rust code resembles the Elm code. The &lt;code class=&quot;highlighter-rouge&quot;&gt;Msg&lt;/code&gt; is translated from an Elm &lt;code class=&quot;highlighter-rouge&quot;&gt;type&lt;/code&gt;
to a Rust &lt;code class=&quot;highlighter-rouge&quot;&gt;enum&lt;/code&gt;, but apart from having different names and syntax, it is exactly the same. The
&lt;code class=&quot;highlighter-rouge&quot;&gt;Model&lt;/code&gt; is becoming a Rust struct. The largest change is in the &lt;code class=&quot;highlighter-rouge&quot;&gt;update&lt;/code&gt; function. Rust has
no built-in support for immutable structures, so instead we mutate the model.&lt;/p&gt;

&lt;p&gt;Rust’s powerful borrow system means that we can control where the model is mutable, meaning that we can only
change it here in the update-function, and not for example in the view-function. Therefore
I think using mutations here will not mean that we are less safe than in Elm code.&lt;/p&gt;

&lt;p&gt;Last we have the main function, which returns a &lt;code class=&quot;highlighter-rouge&quot;&gt;Program&amp;lt;Model, Msg&amp;gt;&lt;/code&gt;. Closely resembling the same as
the &lt;code class=&quot;highlighter-rouge&quot;&gt;Program () Model Msg&lt;/code&gt; returned from the main function in the Elm app. It’s interesting
to what degree the types work out to look the same.&lt;/p&gt;

&lt;h2 id=&quot;implementation&quot;&gt;Implementation&lt;/h2&gt;

&lt;p&gt;After having formulated the idea and written up some code, I started on the implementation. The
first iteration just rendered the HTML in the DOM. I then added events and messages and needed to update
the DOM. The first “virtual diffing” just deleted the whole DOM and recreated it with the new
HTML, but I later added a “real” dom-diffing algorithm.&lt;/p&gt;

&lt;p&gt;Writing this is possible without writing any javascript-code, thanks to
the &lt;a href=&quot;https://crates.io/crates/web-sys&quot;&gt;web-sys&lt;/a&gt; and &lt;a href=&quot;https://crates.io/crates/js-sys&quot;&gt;js-sys&lt;/a&gt;
crates, which builds on &lt;a href=&quot;https://crates.io/crates/wasm-bindgen&quot;&gt;wasm-bindgen&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;All this is enough to render the TodoMVC application, but doing anything more than that will probably
mean you will miss something. For example a function &lt;code class=&quot;highlighter-rouge&quot;&gt;Html&amp;lt;A&amp;gt; =&amp;gt; Html&amp;lt;B&amp;gt;&lt;/code&gt; like Elm’s
&lt;a href=&quot;https://package.elm-lang.org/packages/elm/html/latest/Html#map&quot;&gt;Html.map&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;All in all, this is just an experiment to see how far Rust has come in doing web development.
I think the above shows it has come really far. I hope it will inspire someone to create the
next awesome web-framework using Rust, and that I one day can use Rust to write webapps in
my day-job.&lt;/p&gt;

&lt;p&gt;I have written two examples of using willow,
&lt;a href=&quot;https://github.com/sindreij/willow/blob/master/examples/counter/src/app.rs&quot;&gt;counter&lt;/a&gt;
(the code above) and &lt;a href=&quot;https://github.com/sindreij/willow/blob/master/examples/todomvc/src/app.rs&quot;&gt;todomvc&lt;/a&gt;.
TodoMVC is manually converted from Evan’s &lt;a href=&quot;https://github.com/evancz/elm-todomvc&quot;&gt;elm-todomvc&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you found a spelling mistake, feel free to correct it
&lt;a href=&quot;https://github.com/sindreij/blog/blob/gh-pages/_posts/2018-11-16-willow-elm-in-rust.md&quot;&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;div class=&quot;footnotes&quot;&gt;
  &lt;ol&gt;
    &lt;li id=&quot;fn:1&quot;&gt;
      &lt;p&gt;When a colleague proofread this, he argued that in elm case it should be “practically zero”. NoRedInk, with 200 000 lines of elm-code in production has had exactly &lt;a href=&quot;https://twitter.com/rtfeldman/status/961051166783213570&quot;&gt;one runtime exception&lt;/a&gt;. In Rust’s case, you can create “Runtime Exceptions” using &lt;code class=&quot;highlighter-rouge&quot;&gt;panic!&lt;/code&gt;, however, a panic should be a rarity. The difference in philosophy on how to handle errors is interesting when comparing these two languages. They are very similar, and at the same time very different. &lt;a href=&quot;#fnref:1&quot; class=&quot;reversefootnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:2&quot;&gt;
      &lt;p&gt;The only changes in the actual implementation of this is that the update function returns a Cmd. If Willow had a &lt;code class=&quot;highlighter-rouge&quot;&gt;sandbox&lt;/code&gt; constructor the counter code using that would be exactly as this code. The various derives are needed for the Virtual Dom diffing and just for debugging. &lt;a href=&quot;#fnref:2&quot; class=&quot;reversefootnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
&lt;/div&gt;</content><author><name></name></author><summary type="html">tl;dr: See https://github.com/sindreij/willow</summary></entry></feed>