<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>Jb in a nutshell</title>
    <link>http://evain.net/blog/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description />
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/jbevain" /><feedburner:info uri="jbevain" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
      <title>What's new to extend Visual Studio 11</title>
      <description>&lt;p&gt;After my somewhat long &lt;a href="http://evain.net/blog/articles/2012/02/27/visual-studio-youre-doing-it-wrong"&gt;rant about Visual Studio&lt;/a&gt;, I took some time to compile my different notes into one blog post.&lt;/p&gt;&lt;p&gt;The following is the list of information we have about managed APIs that changed or have been added between Visual Studio 2010 and Visual Studio 11 to easily extend Visual Studio with a sane and managed language:&lt;/p&gt;


&lt;ul&gt;&lt;li&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;
&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;
&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;
&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;
&lt;center&gt;&lt;img src="http://cdn.memegenerator.net/instances/400x/16911331.jpg"/&gt;&lt;/center&gt;&lt;img src="http://feeds.feedburner.com/~r/jbevain/~4/9niaj8RodDs" height="1" width="1"/&gt;</description>
      <pubDate>Fri, 23 Mar 2012 15:21:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:a8cf86c8-113d-44fa-972a-4f8fa1e6ef91</guid>
      <author>Jb Evain</author>
      <link>http://feedproxy.google.com/~r/jbevain/~3/9niaj8RodDs/whats-new-to-extend-visual-studio-11</link>
      <trackback:ping>http://evain.net/blog/articles/trackback/1116</trackback:ping>
    <feedburner:origLink>http://evain.net/blog/articles/2012/03/23/whats-new-to-extend-visual-studio-11</feedburner:origLink></item>
    <item>
      <title>Visual Studio, you're doing it wrong</title>
      <description>&lt;p&gt;If there&amp;#8217;s one thing I&amp;#8217;ve come to learn about life, it&amp;#8217;s that most things are neither completely black nor completely white. There&amp;#8217;s an infinity of shade of grays in between.&lt;/p&gt;


	&lt;p&gt;And if the announce of the Visual Studio (VS from now on) 11 beta taught me something, it is that &lt;span class="caps"&gt;VS 11&lt;/span&gt; is exactly that. Neither completely black, nor completely white. But very gray. Oh so gray.&lt;/p&gt;


&lt;center&gt;&lt;img src="http://h.images.memegenerator.net/instances/400x/15292639.jpg"&gt;&lt;/center&gt;

	&lt;p&gt;I won&amp;#8217;t comment about the new look here, as the object of my ire with VS and its apparent roadmap lies at a completely different level. And boy am I annoyed to see where the VS team puts its focus.&lt;/p&gt;


	&lt;p&gt;Do you remember &lt;a href="http://news.ycombinator.com/item?id=3101876"&gt;Steve Yegge&amp;#8217;s rant about the need of a programmable platform&lt;/a&gt; at Google? It&amp;#8217;s a tad long (euphemism of the day), but it&amp;#8217;s well worth the read. And with Visual Studio, Microsoft is exactly failing at that.&lt;/p&gt;


	&lt;p&gt;Visual Studio 11 will be the sixth iteration of Visual Studio with .net support. And for a .net programmer like myself, it&amp;#8217;s still a terrible platform to extend. I want to be able to have complete control over my environment by programming it. I&amp;#8217;m a firm believer in meta-programming, I want to be able to program my &lt;span class="caps"&gt;IDE&lt;/span&gt; all around, automate tasks, manipulate my projects and my code, and complement the UI myself. Have you ever tried to write a plugin for Visual Studio? To keep on going with euphemisms, let say it&amp;#8217;s not a pleasant experience at all.&lt;/p&gt;


	&lt;p&gt;It&amp;#8217;s quite a shame from the company that brought us the .net framework and C#. Most of the APIs to plug into VS are poorly documented &lt;span class="caps"&gt;COM&lt;/span&gt; wrappers from another age. &lt;span class="caps"&gt;VS 2010&lt;/span&gt; introduced some managed APIs that are addressable from &lt;span class="caps"&gt;MEF&lt;/span&gt;, and they&amp;#8217;re actually pretty cool, but they only cover a small surface of what VS has to offer. And even those too are poorly documented, compared to the level of documentation for the .net framework. Roslyn is also going to somewhat improve things. But it&amp;#8217;s not planned for &lt;span class="caps"&gt;VS 11&lt;/span&gt;, and it&amp;#8217;s also restricted to a subset of what VS offers.&lt;/p&gt;


	&lt;p&gt;If you want to interact with the project system for system, you can use the disgrace that the &lt;span class="caps"&gt;MPF&lt;/span&gt; (Managed Project Framework) is. It&amp;#8217;s a buggy piece of code that you have to dig from codeplex, with terrible documentation. If googling for documentation about it brought you to the &lt;span class="caps"&gt;MSDN&lt;/span&gt;, you can read that the types there are in:&lt;/p&gt;


&lt;pre&gt;
Assembly: MPF.Project.NonShipping (in mpf.project.nonshipping.dll)
&lt;/pre&gt;

	&lt;p&gt;How friendly. And because no one really knows about all those obscure APIs, your only source of knowledge is the Microsoft VS extensibility forum. Which is also another source of frustration entirely : you have to wait for MS employees to help you out.&lt;/p&gt;


	&lt;p&gt;For anyone who wrote eclipse plugins for instance, VS is a huge step back. No wonder the plugin ecosystem of eclipse is so flourishing, it has been designed to be pluggable.&lt;/p&gt;


	&lt;p&gt;I think it is actually hurting VS itself, and as a consequence, the .net platform as a whole. I really think that the experience of the .net programmer would be quite different if from the beginning VS would have exposed a proper managed &lt;span class="caps"&gt;API&lt;/span&gt;, with the same quality and care that you can find for the  .net framework. Or if at least, they would have seriously worked towards that during the years.&lt;/p&gt;


	&lt;p&gt;Folks from Microsoft said they value feedback for betas. Here&amp;#8217;s one: invest in making Visual Studio a great platform for the .net programmer. Expose real managed APIs, let us plug into as much features as possible. .net programmers all around will take care of improving the experience of developing with Visual Studio much faster than what it takes you to add a better search into VS.&lt;/p&gt;


&lt;center&gt;&lt;img src="http://h.images.memegenerator.net/instances/400x/15292567.jpg"/&gt;&lt;/center&gt;

	&lt;p&gt;Also, don&amp;#8217;t value feedback only during betas. Interacting with microsoft connect most of the time result in huge frustration. It&amp;#8217;s the only place where I, a customer, have been told that my bug &lt;a href="https://connect.microsoft.com/VisualStudio/feedback/details/561724/visual-studio-version-selector-fails-if-the-sln-file-contains-n-line-returns"&gt;won&amp;#8217;t be fixed because someone was scared of getting customer complaints&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/jbevain/~4/m0k2au_HZyQ" height="1" width="1"/&gt;</description>
      <pubDate>Mon, 27 Feb 2012 17:20:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:9fc8f869-bcaa-452f-9b0d-d80f9371252f</guid>
      <author>Jb Evain</author>
      <link>http://feedproxy.google.com/~r/jbevain/~3/m0k2au_HZyQ/visual-studio-youre-doing-it-wrong</link>
      <category>Personal</category>
    <feedburner:origLink>http://evain.net/blog/articles/2012/02/27/visual-studio-youre-doing-it-wrong</feedburner:origLink></item>
    <item>
      <title>SyntaxTree</title>
      <description>&lt;p&gt;&lt;i&gt;Or “What I have been up to since last September”.&lt;/i&gt;&lt;/p&gt;


	&lt;p&gt;It is no secret that the middle of 2011 was a bumpy time for the Mono team. But let&amp;#8217;s not babble about something that happened months ago. Suffices to say that September the 15th was my last day at Novell.&lt;/p&gt;


	&lt;p&gt;I started contributing to Mono in 2005. In 2007, at 24, after being part of the two very first editions of the &lt;a href="http://code.google.com/soc/"&gt;Google Summer of Code&lt;/a&gt;, I was hired full-time. I had an amazing time working this long on a project I deeply care about.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m proud of what we&amp;#8217;ve accomplished during this time. And I&amp;#8217;m super happy to see how great my friends at &lt;a href="http://www.xamarin.com"&gt;Xamarin&lt;/a&gt; are doing. Yesterday I was stuck on a plane for quite a long time, and a guy in front of me tinkered for an entire hour in &lt;a href="http://icircuitapp.com/"&gt;iCircuit&lt;/a&gt;, an amazing application based on &lt;a href="http://ios.xamarin.com/"&gt;MonoTouch&lt;/a&gt;. As a member of the original MonoTouch team, it felt awesome!&lt;/p&gt;


	&lt;p&gt;Yet, after the dust settled, I felt like it was time to try something new. Something I&amp;#8217;ve been thinking about for quite a while now. Even though I&amp;#8217;ve been doing a lot of thinking and planning, it took quite a leap of faith, and quite a bit of work.&lt;/p&gt;


&lt;h3&gt;Introducing SyntaxTree&lt;/h3&gt;

	&lt;p&gt;&lt;a href="http://syntaxtree.com"&gt;SyntaxTree&lt;/a&gt; is a company whose mission is twofold: write great developer tools and help other companies doing so. We obviously have a very strong background on the &lt;a href="http://www.microsoft.com/net"&gt;Microsoft .NET&lt;/a&gt; and Mono platforms, but we&amp;#8217;ve already been helping clients target some very different platforms. You&amp;#8217;re more than welcome to check &lt;a href="http://syntaxtree.com/services/"&gt;SyntaxTree&amp;#8217;s services page&lt;/a&gt; out to have a look at the kind of work we&amp;#8217;ve been doing.&lt;/p&gt;


&lt;center&gt;&lt;a href="http://syntaxtree.com"&gt;&lt;img src="http://syntaxtree.com/img/black-logo.png" /&gt;&lt;/a&gt;&lt;/center&gt;

	&lt;p&gt;And today &lt;a href="http://syntaxtree.com/blog/2012/02/22/announcing-unityvs/"&gt;we announce our first product&lt;/a&gt;, &lt;a href="http://unityvs.com"&gt;UnityVS&lt;/a&gt;, bridging two amazing tools, &lt;a href="http://unity3d.com"&gt;Unity&lt;/a&gt;, and &lt;a href="http://www.microsoft.com/visualstudio/"&gt;Visual Studio&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;If you don&amp;#8217;t already know about it, &lt;a href="http://en.wikipedia.org/wiki/Unity_(game_engine)"&gt;Wikipedia defines Unity&lt;/a&gt; as “an integrated authoring tool for creating 3D video games or other interactive content such as architectural visualizations or real-time 3D animations”. It uses &lt;a href="http://www.mono-project.com"&gt;Mono&lt;/a&gt; as a scripting engine and Unity has been part of the Mono community for a long while now.&lt;/p&gt;


	&lt;p&gt;Our product, &lt;a href="http://unityvs.com"&gt;UnityVS&lt;/a&gt; adds support in Visual Studio for the languages that programmers can use in Unity to write scripts for their game: &lt;a href="http://unity3d.com/support/documentation/ScriptReference/index.html"&gt;UnityScript&lt;/a&gt; and &lt;a href="http://boo.codehaus.org/"&gt;Boo&lt;/a&gt;. &lt;a href="http://unityvs.com"&gt;UnityVS&lt;/a&gt; also adds support for debugging your scripts inside Visual Studio, even when running inside Unity&amp;#8217;s editor.&lt;/p&gt;


	&lt;p&gt;I can not stress enough how big of a &lt;a href="http://unity3d.com"&gt;Unity&lt;/a&gt; fan I am. I think that what those guys are achieving, especially towards beginners, is nothing short of amazing. Would Unity have been around when I was 15, instead of writing &lt;span class="caps"&gt;PHP&lt;/span&gt; and JavaScript code, I&amp;#8217;m pretty sure I would have spent nights tinkering in Unity, and my career would have ended up to be quite different.&lt;/p&gt;


	&lt;p&gt;And they happen to have a fantastic taste when it comes to third party code. Using Mono as a scripting engine? Awesome. Using a JavaScript like language based on the Boo compiler infrastructure? Still awesome. Using &lt;a href="http://github.com/jbevain/cecil"&gt;Mono.Cecil&lt;/a&gt; to the point that they use the word “to cecil [in|out]” as a verb internally? Even more awesome. Using &lt;a href="http://ilspy.net"&gt;ILSpy&amp;#8217;s engine&lt;/a&gt; to retarget .net code to ActionScript for their Flash port? Mind blowing.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m very excited to work on a product which complements the Unity ecosystem, I hope you&amp;#8217;ll like it.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/jbevain/~4/-NFGQCICIcY" height="1" width="1"/&gt;</description>
      <pubDate>Wed, 22 Feb 2012 14:00:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:62d42dae-d5f5-48d6-a537-177159f0a95f</guid>
      <author>Jb Evain</author>
      <link>http://feedproxy.google.com/~r/jbevain/~3/-NFGQCICIcY/syntaxtree</link>
      <category>Personal</category>
      <trackback:ping>http://evain.net/blog/articles/trackback/1107</trackback:ping>
    <feedburner:origLink>http://evain.net/blog/articles/2012/02/22/syntaxtree</feedburner:origLink></item>
    <item>
      <title>IL fun fact: not is not !</title>
      <description>&lt;p&gt;Picture yourself working on crafting a specific piece of &lt;span class="caps"&gt;CIL&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;You need to write the compiled equivalent of:&lt;/p&gt;


&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
bool b = ...;
bool n = !b;
&lt;/pre&gt;

	&lt;p&gt;It would be tempting to write:&lt;/p&gt;


&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
ldloc b
not
stloc n
&lt;/pre&gt;

	&lt;p&gt;Except that it would not always work. &lt;a href="http://msdn.microsoft.com/en-us/library/system.reflection.emit.opcodes.not.aspx"&gt;not&lt;/a&gt; doesn&amp;#8217;t negate booleans, it computes the bitwise complement of the value on the stack. It&amp;#8217;s also not to be confused with the &lt;a href="http://msdn.microsoft.com/en-us/library/system.reflection.emit.opcodes.neg.aspx"&gt;neg&lt;/a&gt; opcode, which negates a value, as in a multiplication by -1.&lt;/p&gt;


	&lt;p&gt;The usual pattern to negate a boolean is:&lt;/p&gt;


&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
ldloc b
ldc.i4.0
ceq
stloc n
&lt;/pre&gt;

	&lt;p&gt;But that&amp;#8217;s not really fun, is it?&lt;/p&gt;


	&lt;p&gt;Actual fun fact: there&amp;#8217;s a misused “not” in the &lt;span class="caps"&gt;ECMA 335&lt;/span&gt; in the  example of the section 14.5 of the partition II.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/jbevain/~4/abV_Tgo9rCk" height="1" width="1"/&gt;</description>
      <pubDate>Mon, 30 Jan 2012 16:00:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:dab1a8a5-faa6-449a-a783-93913a0ede94</guid>
      <author>Jb Evain</author>
      <link>http://feedproxy.google.com/~r/jbevain/~3/abV_Tgo9rCk/il-fun-fact-not-is-not</link>
      <category>Cecil</category>
      <trackback:ping>http://evain.net/blog/articles/trackback/1102</trackback:ping>
    <feedburner:origLink>http://evain.net/blog/articles/2012/01/30/il-fun-fact-not-is-not</feedburner:origLink></item>
    <item>
      <title>Fun fact: C# methods whose bodies span over multiple source files</title>
      <description>&lt;p&gt;While working on &lt;a href="http://github.com/jbevain/cecil"&gt;Mono.Cecil&lt;/a&gt; (your lovely library to analyze and manipulate .net binaries that is used by &lt;a href="http://github.com/jbevain/cecil/wiki/Users"&gt;legions&lt;/a&gt;), one thing that struck me as odd for a while, was the fact that a method could have debug symbols for instructions that are defined in multiple files.&lt;/p&gt;


	&lt;p&gt;Cecil has this type, Instruction. When you&amp;#8217;re analyzing a module with &lt;a href="https://github.com/jbevain/cecil/wiki/Debug-symbols"&gt;debug information&lt;/a&gt; (think .pdb or .mdb files), an Instruction may have its SequencePoint property set. A sequence point is nothing but the location of the code in a file that relates to the instruction.&lt;/p&gt;


	&lt;p&gt;What got me wondering, is that the APIs to retrieve those sequence points make it so that a method can have sequence points in different documents. So be it, this is how I ended up representing it in Cecil, but it&amp;#8217;s only recently that I stumbled upon a case where indeed, a C# method had instructions defined in multiple files:&lt;/p&gt;


Foo.Bar.cs:
&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
public partial class Foo {
    private List&amp;lt;Bar&amp;gt; _bars = new List&amp;lt;Bar&amp;gt;();
}
&lt;/pre&gt;

	&lt;p&gt;Foo.Baz.cs:&lt;/p&gt;


&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
public partial class Foo {
    private Baz _baz;

    public Foo (Baz baz)
    {
        _baz = baz;
    }
}
&lt;/pre&gt;

	&lt;p&gt;Do you see what&amp;#8217;s going on here?&lt;/p&gt;


	&lt;p&gt;The constructor of Foo is defined in Foo.Baz.cs, but there&amp;#8217;s a field initializer in Foo.Bar.cs that is going to be compiled inside Foo&amp;#8217;s constructor. When you debug the constructor, you&amp;#8217;ll effectively end up jumping between the two files. Crazy right?&lt;/p&gt;


	&lt;p&gt;Can you think of another case where a C# (or VB.NET for that matters) method would have instructions defined in different files?&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/jbevain/~4/jPGiaxRXsr4" height="1" width="1"/&gt;</description>
      <pubDate>Thu, 19 Jan 2012 22:00:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:4104df95-9f4f-4b20-9125-0bf8d21cb7ec</guid>
      <author>Jb Evain</author>
      <link>http://feedproxy.google.com/~r/jbevain/~3/jPGiaxRXsr4/fun-fact-c-methods-whose-bodies-span-over-multiple-source-files</link>
      <category>Cecil</category>
      <trackback:ping>http://evain.net/blog/articles/trackback/817</trackback:ping>
    <feedburner:origLink>http://evain.net/blog/articles/2012/01/19/fun-fact-c-methods-whose-bodies-span-over-multiple-source-files</feedburner:origLink></item>
    <item>
      <title>Constraining generic constraints</title>
      <description>&lt;p&gt;This is the last part of an update about &lt;a href="http://github.com/jbevain/mono.linq.expressions"&gt;Mono.Linq.Expressions&lt;/a&gt;, a tiny helper library to complement the System.Linq.Expressions namespace for .net 4 and Mono.&lt;/p&gt;

&lt;p&gt;And it's not really about Mono.Linq.Expressions itself. If you're interested about it though, you can read the part about &lt;a href="http://evain.net/blog/articles/2012/01/11/mono-linq-expressions-update"&gt;fluently creating expression trees&lt;/a&gt;, and the other one about &lt;a href="http://evain.net/blog/articles/2012/01/12/mono-linq-expressions-update-2"&gt;combining lambda expressions together&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;Proper generic constraints&lt;/h3&gt;

&lt;p&gt;&lt;br /&gt;
Have a look at the signature of the factory method Expression.Lambda&lt;T&gt;:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
public static Expression&amp;lt;TDelegate&amp;gt; Lambda&amp;lt;TDelegate&amp;gt; (
    Expression body,
    params ParameterExpression [] parameters) {}
&lt;/pre&gt;

&lt;p&gt;And at the signature of Expression&amp;lt;T&amp;gt;:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
public sealed class Expression&amp;lt;T&amp;gt; : LambdaExpression {}
&lt;/pre&gt;

&lt;p&gt;Given the post title, and the &amp;lt;h3&amp;gt; a few lines up there, it's obvious where I'm going: those generic parameters have no constraint. A C# compiler will happily compile:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
class Potato {}

Expression&amp;lt;Potato&amp;gt; e = Expression.Lambda&amp;lt;Potato&amp;gt; (
    Expression.Constant (new Potato ()));
&lt;/pre&gt;

&lt;p&gt;Of course this won't get you far, but it sure is a heart breaker that because of a little language oddity, you delay to until runtime the problem resolution: this code will throw, Potato sure isn't a Delegate type, and Expression.Lambda, the only way to create an Expression&amp;lt;T&amp;gt; is making sure of that.&lt;/p&gt;

&lt;p&gt;So much for type safety, generics!&lt;/p&gt;

&lt;p&gt;Another famous issue is the following. Again, for the compiler, it's perfectly legit to write:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
int i;
if (!Enum.TryParse ("42", out i))
    Console.WriteLine ("This is so unfair!");
&lt;/pre&gt;

&lt;p&gt;And why is that? Because of the signature of Enum.TryParse:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
public static bool TryParse&amp;lt;TEnum&amp;gt; (string value, out TEnum result) where TEnum : struct {}
&lt;/pre&gt;

&lt;p&gt;To sum the issue up, C# doesn't allow generic constraints on delegates and enums. And why am I rumbling about this? Because Mono.Linq.Expressions has this method:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
public static Expression&amp;lt;T&amp;gt; Combine&amp;lt;T&amp;gt; (
    this Expression&amp;lt;T&amp;gt; self,
    Func&amp;lt;Expression, Expression&amp;gt; combinator)
&lt;/pre&gt;

&lt;p&gt;And if Expression&amp;lt;T&amp;gt; is not constrained on Delegate, then I sure as hell won't let this stand in my own public API! Which is why the actual signature of the Combine method is:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
public static Expression&amp;lt;T&amp;gt; Combine&amp;lt;[DelegateConstraint] T&amp;gt; (
    this Expression&amp;lt;T&amp;gt; self,
    Func&amp;lt;Expression, Expression&amp;gt; combinator) where T : class
&lt;/pre&gt;

&lt;p&gt;And all of this was just a perfect excuse to write a little &lt;a href="http://github.com/jbevain/cecil"&gt;Mono.Cecil&lt;/a&gt; based utility tool, appropriately named &lt;a href="https://github.com/jbevain/mono.linq.expressions/blob/master/tools/patch-constraints.cs"&gt;patch-constraints&lt;/a&gt;, that is used as a post-compile step to fixup the Delegate and Enum constraints of any generic parameter decorated respectively with a DelegateConstraintAttribute or EnumConstraintAttribute, turning them into actual constraints to delegates and enums, which, funnily enough, the C# compiler is more than happy to honor. &lt;/p&gt;

&lt;p&gt;Obviously I could have used the most famous &lt;a href="http://msmvps.com/blogs/jon_skeet/archive/2009/09/10/generic-constraints-for-enums-and-delegates.aspx"&gt;Jon Skeet&lt;/a&gt;'s &lt;a href="http://code.google.com/p/unconstrained-melody/"&gt;unconstrained-melody&lt;/a&gt; tool, but 2002 called and it wants its ildasm based, IL text parser back.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/jbevain/~4/WIal4SeC9f8" height="1" width="1"/&gt;</description>
      <pubDate>Fri, 13 Jan 2012 14:30:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:d71c223b-7319-4a71-a26e-8abb2661c29f</guid>
      <author>Jb Evain</author>
      <link>http://feedproxy.google.com/~r/jbevain/~3/WIal4SeC9f8/constraining-generic-constraints</link>
      <category>Cecil</category>
      <category>Mono</category>
      <trackback:ping>http://evain.net/blog/articles/trackback/814</trackback:ping>
    <feedburner:origLink>http://evain.net/blog/articles/2012/01/13/constraining-generic-constraints</feedburner:origLink></item>
    <item>
      <title>Mono.Linq.Expressions update 2</title>
      <description>&lt;p&gt;This is the second part of an update about &lt;a href="http://github.com/jbevain/mono.linq.expressions"&gt;Mono.Linq.Expressions&lt;/a&gt;, a tiny helper library to complement the System.Linq.Expressions namespace for .net 4 and Mono.&lt;/p&gt;

&lt;p&gt;The first part is about &lt;a href="http://evain.net/blog/articles/2012/01/11/mono-linq-expressions-update"&gt;fluent creation of expression trees&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;Combining expression trees together&lt;/h3&gt;

&lt;p&gt;&lt;br /&gt;
I keep reading questions on &lt;a href="http://stackoverflow.com"&gt;StackOverflow&lt;/a&gt; about this. How to combine two lambda expression together? If we have:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
Expression&amp;lt;Func&amp;lt;User, bool&amp;gt;&amp;gt; isUserOver18 = u =&amp;gt; u.Age &amp;gt;= 18;
Expression&amp;lt;Func&amp;lt;User, bool&amp;gt;&amp;gt; isFemaleUser = u =&amp;gt; u.Gender == Gender.Female;
&lt;/pre&gt;

&lt;p&gt;If we want to combine this lambda expression with a “and” logical expression, the natural way would be to write:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
Expression&amp;lt;Func&amp;lt;User, bool&amp;gt;&amp;gt; isFemaleUserOver18 = u =&amp;gt;
    isUserOver18(u) &amp;&amp; isFemaleUser(u);
&lt;/pre&gt;

&lt;p&gt;This works just fine if you compile the expression into a delegate to actually execute this code. But most of the time questions of StackOverflow are about using the resulting lambda expression to create a query for LINQ to a database provider, which will analyze the expression tree and create an according SQL request.&lt;/p&gt;

&lt;p&gt;By combining expression trees this way, the LINQ provider may or may not be unable to turn the two invocations into actual SQL.&lt;/p&gt;

&lt;p&gt;That's one of the reason I wrote about an updated &lt;a href="http://evain.net/blog/articles/2010/07/20/predicatebuilder-revisited"&gt;PredicateBuilder&lt;/a&gt;. The obvious solution is to inline the two combined representation of lambda expressions into a new lambda expression tree. &lt;/p&gt;

&lt;p&gt;The update of &lt;a href="http://github.com/jbevain/mono.linq.expressions"&gt;Mono.Linq.Expressions&lt;/a&gt; comes with a new type, &lt;a href="https://github.com/jbevain/mono.linq.expressions/blob/master/Mono.Linq.Expressions/CombineExtensions.cs"&gt;CombineExtensions&lt;/a&gt;, which exposes extension methods that you can use to combine fully created (into lambda expressions) expression trees.&lt;/p&gt;

&lt;p&gt;Using those, combining the two expression trees is as simple as:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
Expression&amp;lt;Func&amp;lt;User, bool&amp;gt;&amp;gt; isFemaleUserOver18 = isUserOver18.Combine(
    isFemaleUser,
    (left, right) =&amp;gt; left.AndAlso(right));
&lt;/pre&gt;

&lt;p&gt;And indeed, if you print the code representation of this expression tree, you'll have both lambda bodies inlined into another one:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
user =&amp;gt; user.Age &amp;gt;= 18 &amp;&amp; user.Gender == Gender.Female
&lt;/pre&gt; 

&lt;p&gt;Or if you want to negate the boolean expression:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
Expression&amp;lt;Func&amp;lt;User, bool&amp;gt;&amp;gt; isNotFemaleUserOver18 = isFemaleUserOver18.Combine(
    e =&amp;gt; e.Not());
&lt;/pre&gt;

&lt;p&gt;The cool thing about those Combine extension methods is that they're completely generic, they don't work only on simple predicates. For instance, you can use those to chain constructions of mathematical expressions.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/jbevain/~4/669WTY_3BA0" height="1" width="1"/&gt;</description>
      <pubDate>Thu, 12 Jan 2012 12:25:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:efed07b2-cb01-4358-b84f-822353614836</guid>
      <author>Jb Evain</author>
      <link>http://feedproxy.google.com/~r/jbevain/~3/669WTY_3BA0/mono-linq-expressions-update-2</link>
      <category>Mono</category>
      <trackback:ping>http://evain.net/blog/articles/trackback/812</trackback:ping>
    <feedburner:origLink>http://evain.net/blog/articles/2012/01/12/mono-linq-expressions-update-2</feedburner:origLink></item>
    <item>
      <title>Mono.Linq.Expressions update</title>
      <description>&lt;p&gt;I just tagged the 1.2 version of &lt;a href="http://github.com/jbevain/mono.linq.expressions"&gt;Mono.Linq.Expressions&lt;/a&gt;, and pushed an updated &lt;a href="http://nuget.org/packages/Mono.Linq.Expressions"&gt;nuget package&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Mono.Linq.Expressions is a utility library to complement the System.Linq.Expressions namespace, and works with .net 4.0 just as fine as it does with Mono. With a bit over 220 downloads of the nuget package, it's short of roughly 160,400 downloads to be the most downloaded nuget package : a stunning success to put it simply.&lt;/p&gt;

&lt;p&gt;This post is the first of a short series to detail what's awesome and new in this version.&lt;/p&gt;

&lt;h3&gt;Extension methods for a fluent construction of expression trees.&lt;/h3&gt;

&lt;p&gt;&lt;br /&gt;
Have you been using the expression tree API to build a representation of code at runtime ? If so you're familiar with the &lt;a href="http://msdn.microsoft.com/en-us/library/system.linq.expressions.expression.aspx"&gt;Expression&lt;/a&gt; class, and it's load of factory methods.&lt;/p&gt;

&lt;p&gt;You're also familiar with this kind of code:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
var user = Expression.Parameter(typeof (User), "user");

var isFemaleUserOver18 = Expression.Lambda&amp;lt;Func&amp;lt;User, bool&amp;gt;&amp;gt;(
    Expression.AndAlso(
        Expression.GreaterThanOrEqual(
            Expression.Property(user, "Age"),
            Expression.Constant(18)),
        Expression.Equal(
            Expression.Property(user, "Gender"),
            Expression.Constant(Gender.Female))), user);
&lt;/pre&gt;

&lt;p&gt;If you take some time to parse this code, the intent is to create an expression tree similar to the one the compiler would emit if you were to write:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
Expression&amp;lt;Func&amp;lt;User, bool&amp;gt;&amp;gt; isFemaleUserOver18 =
    user =&amp;gt; user.Age &amp;gt;= 18 &amp;&amp; user.Gender == Gender.Female;
&lt;/pre&gt;

&lt;p&gt;&lt;a href="http://github.com/jbevain/mono.linq.expressions"&gt;Mono.Linq.Expressions&lt;/a&gt; 1.2 contains &lt;a href="https://github.com/jbevain/mono.linq.expressions/blob/master/tools/fluentextensions-generator.cs"&gt;a code generated&lt;/a&gt; series of extension methods to simplify the manual construction of expression trees by fluently chaining the invocations. This allows you to write instead:&lt;/p&gt;

&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
var user = typeof (User).Parameter("user");

var isFemaleUserOver18 = Expression.Lambda&amp;lt;Func&amp;lt;User, bool&amp;gt;&amp;gt;(
    user.Property("Age").GreaterThanOrEqual(18.Constant())
    .AndAlso(
        user.Property("Gender").Equal(Gender.Female.Constant())), user);
&lt;/pre&gt;

&lt;p&gt;Not only is the code shorter, but it's also easier on the eyes, and easier to comprehend. Using this, almost the factory methods calls to the Expression class can be written fluently. &lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/jbevain/~4/L9gW3Kk0I68" height="1" width="1"/&gt;</description>
      <pubDate>Wed, 11 Jan 2012 17:00:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:980851b8-2389-426d-96cb-0bdfb4534c5d</guid>
      <author>Jb Evain</author>
      <link>http://feedproxy.google.com/~r/jbevain/~3/L9gW3Kk0I68/mono-linq-expressions-update</link>
      <category>Mono</category>
      <trackback:ping>http://evain.net/blog/articles/trackback/809</trackback:ping>
    <feedburner:origLink>http://evain.net/blog/articles/2012/01/11/mono-linq-expressions-update</feedburner:origLink></item>
    <item>
      <title>TechDays 2011</title>
      <description>&lt;p&gt;&lt;img src="http://evain.net/public/monkeys.jpg" style="border: 2px solid black" /&gt;&lt;/p&gt;


	&lt;p&gt;Mercredi, j&amp;#8217;aurai l&amp;#8217;opportunité de présenter &lt;a href="http://www.microsoft.com/france/mstechdays/programmes/Session.aspx?CellID=d3f9aa87-a3d8-41b1-9ad5-e6fd589de55f"&gt;Mono et son écosystème&lt;/a&gt; pendant les TechDays Microsoft.&lt;/p&gt;


	&lt;p&gt;Ce sera l&amp;#8217;occasion de faire le point sur les dernières nouveautés de &lt;a href="http://www.mono-project.com"&gt;Mono&lt;/a&gt;, et de montrer  comment réutiliser ses compétences .net et partager son code C# pour cibler des plateformes en vogue, comme l&amp;#8217;iPhone et l&amp;#8217;iPad avec &lt;a href="http://monotouch.net"&gt;MonoTouch&lt;/a&gt;, Android avec &lt;a href="http://monodroid.net"&gt;MonoDroid&lt;/a&gt; et Mac &lt;span class="caps"&gt;OS X&lt;/span&gt; avec &lt;a href="http://www.mono-project.com/MonoMac"&gt;MonoMac&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;Si vous ne pouvez pas assister à la session, je serai aussi disponible sur le &lt;a href="http://www.microsoft.com/france/mstechdays/communautes/presentation-communautes.aspx?tp=13&amp;#38;partner=c53800ac-aa33-441b-94bc-a0837a13b501"&gt;stand alt.net&lt;/a&gt; pour discuter de tous ces sujets. Venez nombreux !&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/jbevain/~4/XeJcfLeR6R0" height="1" width="1"/&gt;</description>
      <pubDate>Mon, 07 Feb 2011 23:01:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:128d9bd2-3d8f-4f56-9be3-88d19009ef65</guid>
      <author>Jb Evain</author>
      <link>http://feedproxy.google.com/~r/jbevain/~3/XeJcfLeR6R0/techdays-2011</link>
      <category>Mono</category>
      <trackback:ping>http://evain.net/blog/articles/trackback/808</trackback:ping>
    <feedburner:origLink>http://evain.net/blog/articles/2011/02/07/techdays-2011</feedburner:origLink></item>
    <item>
      <title>Custom Linq Expressions </title>
      <description>&lt;p&gt;Between .net 3.5 and .net 4.0, the &lt;a href="http://msdn.microsoft.com/en-us/library/system.linq.expressions.aspx"&gt;Linq Expression Tree &lt;span class="caps"&gt;API&lt;/span&gt;&lt;/a&gt; changed quite a bit, going from a simple compiler supporting expressions only, to a full fledged compiler supporting expressions as well as statements, on top of which are implemented all &lt;span class="caps"&gt;DLR&lt;/span&gt; based language. For anyone working closely with this &lt;span class="caps"&gt;API&lt;/span&gt;, the &lt;a href="http://dlr.codeplex.com/wikipage?title=Docs%20and%20specs&amp;#38;referringTitle=Home"&gt;Expression Tree spec&lt;/a&gt; is a great source of information, the &lt;span class="caps"&gt;MSDN&lt;/span&gt; isn’t very helpful there.&lt;/p&gt;


	&lt;p&gt;When the spec comes to describing the object model for nodes, it differentiates several kind of nodes:&lt;/p&gt;


	&lt;p&gt;&lt;img src="http://evain.net/public/et-nodes.png" /&gt;&lt;/p&gt;


	&lt;p&gt;The core nodes and the common nodes are those which are implemented inside System.Linq.Expressions, and common nodes are implemented on top of the core nodes, using a process that is called reducing nodes.&lt;/p&gt;


	&lt;p&gt;A reducible node is simply a node that can be compiled as a compound of core nodes. We’re not going to talk about library specific extensions, which are nodes that you would write if you were to implement, say, a &lt;span class="caps"&gt;LINQ&lt;/span&gt; provider. We&amp;#8217;ll focus on reducible nodes.&lt;/p&gt;


	&lt;p&gt;I took some time last year to implement a few helper nodes that are not available in .net 4.0, but, according to the spec, may be included in a future release. They’re mapped to similar C# constructs, and are pretty useful it you generate complex code using expression trees. Here’s the list of custom expressions I added in &lt;a href="https://github.com/jbevain/mono.linq.expressions"&gt;Mono.Linq.Expressions&lt;/a&gt;, my project to complement the System.Linq.Expression namespace:&lt;/p&gt;


&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/jbevain/mono.linq.expressions/blob/master/Mono.Linq.Expressions/DoWhileExpression.cs"&gt;DoWhileExpression&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/jbevain/mono.linq.expressions/blob/master/Mono.Linq.Expressions/ForEachExpression.cs"&gt;ForEachExpression&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/jbevain/mono.linq.expressions/blob/master/Mono.Linq.Expressions/ForExpression.cs"&gt;ForExpression&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/jbevain/mono.linq.expressions/blob/master/Mono.Linq.Expressions/UsingExpression.cs"&gt;UsingExpression&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/jbevain/mono.linq.expressions/blob/master/Mono.Linq.Expressions/WhileExpression.cs"&gt;WhileExpression&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

	&lt;p&gt;Even if those map to a C# statement, they’re suffixed with `Expression` for consistency with the whole System.Linq.Expressions namespace. Using them is as simple as, heh, adding a using directive:&lt;/p&gt;


&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
using Mono.Linq.Expressions;
&lt;/pre&gt;

	&lt;p&gt;And using the factory methods on the CustomExpression class to create those new nodes:&lt;/p&gt;


&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
var d = Expression.Parameter (typeof (DisposableType), "d");

var printAndDispose = Expression.Lambda&amp;lt;Action&amp;lt;DisposableType&amp;gt;&amp;gt; (
    CustomExpression.Using (
        d,
        Expression.Call (typeof (Console).GetMethod (
            "WriteLine", new [] { typeof (object) }), d)),
    d);
&lt;/pre&gt;

	&lt;p&gt;The Expression Tree &lt;span class="caps"&gt;API&lt;/span&gt; makes it easy to write custom reducible expressions, all you have to do, is to inherit from &lt;a href="http://msdn.microsoft.com/en-us/library/system.linq.expressions.expression.aspx"&gt;Expression&lt;/a&gt;, override &lt;a href="http://msdn.microsoft.com/en-us/library/system.linq.expressions.expression.canreduce.aspx"&gt;CanReduce&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/en-us/library/system.linq.expressions.expression.nodetype.aspx"&gt;NodeType&lt;/a&gt;, and implement the &lt;a href="http://msdn.microsoft.com/en-us/library/system.linq.expressions.expression.reduce.aspx"&gt;Reduce method&lt;/a&gt;:&lt;/p&gt;


&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
public abstract partial class CustomExpression : Expression {

    public override ExpressionType NodeType {
        get { return ExpressionType.Extension; }
    }

    public override bool CanReduce {
        get { return true; }
    }

    /* ... */
}
&lt;/pre&gt;

	&lt;p&gt;If we take, for instance, our &lt;a href="https://github.com/jbevain/mono.linq.expressions/blob/master/Mono.Linq.Expressions/UsingExpression.cs"&gt;UsingExpression&lt;/a&gt;, mapping to the C# &lt;a href="http://msdn.microsoft.com/en-us/library/yh598w02.aspx"&gt;using statement&lt;/a&gt;, Reduce is implemented as follows:&lt;/p&gt;


&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
public override Expression Reduce ()
{
    var end_finally = Expression.Label ("end_finally");

    return Expression.Block (
        new [] { variable },
        Expression.Assign (variable, disposable),
        Expression.TryFinally (
            body,
            Expression.Block (
                Expression.Condition (
                    Expression.NotEqual (variable, Expression.Constant (null)),
                    Expression.Block (
                        Expression.Call (
                            Expression.Convert (variable, typeof (IDisposable)),
                            typeof (IDisposable).GetMethod ("Dispose")),
                        Expression.Goto (end_finally)),
                    Expression.Goto (end_finally)),
                Expression.Label (end_finally))));
}
&lt;/pre&gt;

	&lt;p&gt;Just like a C# using, it will try to execute a block, and whether the block triggered an exception or not, it will call &lt;a href="http://msdn.microsoft.com/en-us/library/system.idisposable.dispose.aspx"&gt;IDisposable.Dispose&lt;/a&gt; on the subject of the using statement.&lt;/p&gt;


	&lt;p&gt;Wasn&amp;#8217;t that easy? Even if those nodes are pretty general, writing custom and specific nodes is a powerful and simple way to factorize code when generating code using the Expression Tree &lt;span class="caps"&gt;API&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;In the end, I added in &lt;a href="https://github.com/jbevain/mono.linq.expressions/"&gt;Mono.Linq.Expressions&lt;/a&gt; a &lt;a href="https://github.com/jbevain/mono.linq.expressions/blob/master/Mono.Linq.Expressions/CustomExpression.cs"&gt;CustomExpression&lt;/a&gt; type, our base class for well, custom expressions. We provide a &lt;a href="https://github.com/jbevain/mono.linq.expressions/blob/master/Mono.Linq.Expressions/CustomExpressionVisitor.cs"&gt;CustomExpressionVisitor&lt;/a&gt; which extends the standard &lt;a href="http://msdn.microsoft.com/en-us/library/system.linq.expressions.expressionvisitor.aspx"&gt;ExpressionVisitor&lt;/a&gt; to support our custom expressions, and the &lt;a href="http://evain.net/blog/articles/2010/06/23/mono-linq-expressions"&gt;CSharpWriter&lt;/a&gt; has been updated to support them as well:&lt;/p&gt;


&lt;pre name="code" class="c-sharp:nocontrols:nogutter"&gt;
[Test]
public void Using ()
{
    var arg = Expression.Parameter (typeof (IDisposable), "arg");

    var lambda = Expression.Lambda&amp;lt;Action&amp;lt;IDisposable&amp;gt;&amp;gt; (
        CustomExpression.Using (
            arg,
            Expression.Call (typeof (Console).GetMethod (
                "WriteLine", new [] { typeof (object) }), arg)),
        arg);

    AssertExpression (@" 
void (IDisposable arg)
{
    using (arg)
    {
        Console.WriteLine(arg);
    }
}
", lambda);
}
&lt;/pre&gt;

	&lt;p&gt;Next feature for Mono.Linq.Expressions: using &lt;a href="http://evain.net/blog/articles/2009/04/30/reflection-based-cil-reader"&gt;Mono.Reflection&lt;/a&gt; to turn a delegate into an expression of this delegate.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/jbevain/~4/gbzJeUBB_ow" height="1" width="1"/&gt;</description>
      <pubDate>Mon, 17 Jan 2011 18:45:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:765fd571-93a4-47a3-bae2-4f9c801d331d</guid>
      <author>Jb Evain</author>
      <link>http://feedproxy.google.com/~r/jbevain/~3/gbzJeUBB_ow/custom-linq-expressions</link>
      <category>Mono</category>
      <trackback:ping>http://evain.net/blog/articles/trackback/805</trackback:ping>
    <feedburner:origLink>http://evain.net/blog/articles/2011/01/17/custom-linq-expressions</feedburner:origLink></item>
  </channel>
</rss>

