<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><title>Yet Another [À Compléter] » English</title><link>http://blog.neteril.org</link><description>Random thoughts of Jérémie Laval</description><language>en</language><lastBuildDate>Wed, 28 Oct 2009 16:01:13 PDT</lastBuildDate><generator>http://wordpress.org/?v=2.8.5</generator><atom:link xmlns:atom="http://www.w3.org/2005/Atom" href="http://blog.neteril.org/category/english/feed/" rel="self" type="application/rss+xml" /><sy:updatePeriod xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">hourly</sy:updatePeriod><sy:updateFrequency xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">1</sy:updateFrequency><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><title>WiFi power saving &amp; kernel 2.6.31</title><link>http://blog.neteril.org/2009/10/28/wifi-power-saving-kernel-2-6-31/</link><category>English</category><category>Linux</category><category>Programming</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jérémie Laval</dc:creator><pubDate>Wed, 28 Oct 2009 14:45:15 PDT</pubDate><guid isPermaLink="false">http://blog.neteril.org/?p=708</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>As of Linux kernel 2.6.31 (currently available on <a href="http://www.archlinux.org/">Arch Linux</a> for instance), due to a change in the iwl* drivers, the sysfs entries that were managing power saving on related WiFi chips was removed due to some power management-related bugs.</p>
<p>As such, it&#8217;s impossible to manually set powersaving either using sysfs or via a command like <code>iwconfig power</code>. </p>
<p>Worst part is that the drivers aren&#8217;t even correctly advertising themselves to mac80211 (the underlying layer of the WiFi stack) as able to handle power saving operations thus preventing any event to be propagated back to the driver. You can find more information about the problem <a href="http://patchwork.kernel.org/patch/45225/">on the following thread</a>.</p>
<p>Of course this sucks quite a bit for people who cares about their battery life and who don&#8217;t want to wait for 2.6.32 kernel. That&#8217;s why we decided to try up <a href="http://linuxwireless.org/en/users/Download">compat-wireless</a>.</p>
<p>Compat-wireless is a set of scripts that allows you to install the freshest drivers from the linux-wireless project (list of driver <a href="http://linuxwireless.org/en/users/Drivers">here</a>) in a safe fashion i.e. without messing up your distribution supplied modules and without need for a kernel recompilation. These new modules are also very easy to uninstall and everything is made to prevent you from nuking too much your system.</p>
<p>Turns out that in recent revision of the drivers (>= 2009-10-28), powersave is back in a sort of automated fashion and blocking powersave operations are now limited to the faulty driver/chipset : iwl4965. So if you either use iwlagn or iwl3945 (<code>lsmod</code> will tell you) chances are good that you will get back your nice powertop output (it did for <a href="http://chrooted-universe.org/">a friend</a> and I).</p>
<p>As for installing the beast, the instructions on the official website <a href="http://linuxwireless.org/en/users/Download#Where_to_download_bleeding_edge">starting from here</a> are simple and straightforward. </p>
<p>Of course, if you were using iwl4965 your are still left out. However, if power saving weren&#8217;t breaking up your driver on earlier kernel version, you can simply comment out the <code>.broken_powersave = true</code> configuration statement in iwl-4965.c (line 2282 or so) under <code>drivers/net/wireless/iwlwifi/</code>.</p>
]]></content:encoded><description>&lt;p&gt;As of Linux kernel 2.6.31 (currently available on &lt;a href="http://www.archlinux.org/"&gt;Arch Linux&lt;/a&gt; for instance), due to a change in the iwl* drivers, the sysfs entries that were managing power saving on related WiFi chips was removed due to some power management-related bugs.&lt;/p&gt;
&lt;p&gt;As such, it&amp;#8217;s impossible to manually set powersaving either using sysfs or via a command like &lt;code&gt;iwconfig power&lt;/code&gt;. &lt;/p&gt;
&lt;p&gt;Worst part is that the drivers aren&amp;#8217;t even correctly advertising themselves to mac80211 (the underlying layer of the WiFi stack) as able to handle power saving operations thus preventing any event to be propagated back to the driver. You can find more information about the problem &lt;a href="http://patchwork.kernel.org/patch/45225/"&gt;on the following thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Of course this sucks quite a bit for people who cares about their battery life and who don&amp;#8217;t want to wait for 2.6.32 kernel. That&amp;#8217;s why we decided to try up &lt;a href="http://linuxwireless.org/en/users/Download"&gt;compat-wireless&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Compat-wireless is a set of scripts that allows you to install the freshest drivers from the linux-wireless project (list of driver &lt;a href="http://linuxwireless.org/en/users/Drivers"&gt;here&lt;/a&gt;) in a safe fashion i.e. without messing up your distribution supplied modules and without need for a kernel recompilation. These new modules are also very easy to uninstall and everything is made to prevent you from nuking too much your system.&lt;/p&gt;
&lt;p&gt;Turns out that in recent revision of the drivers (&gt;= 2009-10-28), powersave is back in a sort of automated fashion and blocking powersave operations are now limited to the faulty driver/chipset : iwl4965. So if you either use iwlagn or iwl3945 (&lt;code&gt;lsmod&lt;/code&gt; will tell you) chances are good that you will get back your nice powertop output (it did for &lt;a href="http://chrooted-universe.org/"&gt;a friend&lt;/a&gt; and I).&lt;/p&gt;
&lt;p&gt;As for installing the beast, the instructions on the official website &lt;a href="http://linuxwireless.org/en/users/Download#Where_to_download_bleeding_edge"&gt;starting from here&lt;/a&gt; are simple and straightforward. &lt;/p&gt;
&lt;p&gt;Of course, if you were using iwl4965 your are still left out. However, if power saving weren&amp;#8217;t breaking up your driver on earlier kernel version, you can simply comment out the &lt;code&gt;.broken_powersave = true&lt;/code&gt; configuration statement in iwl-4965.c (line 2282 or so) under &lt;code&gt;drivers/net/wireless/iwlwifi/&lt;/code&gt;.&lt;/p&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.neteril.org/2009/10/28/wifi-power-saving-kernel-2-6-31/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments></item><item><title>Wicd support patch for Banshee</title><link>http://blog.neteril.org/2009/10/06/wicd-support-patch-for-banshee/</link><category>C#</category><category>English</category><category>Mono</category><category>Programming</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jérémie Laval</dc:creator><pubDate>Tue, 06 Oct 2009 14:25:38 PDT</pubDate><guid isPermaLink="false">http://blog.neteril.org/?p=700</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Shameless plug to tell I&#8217;m alive <img src='http://blog.neteril.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  .</p>
<p>If you are using <a href="http://wicd.sourceforge.net/">Wicd</a> and usually stare at Banshee trying to download cover art or post to last.fm while you are disconnected, <a href="http://neteril.org/mono/wicd-support.patch">the following patch</a> add just the support to fix this.</p>
<p>Here is the associated <a href="https://bugzilla.gnome.org/show_bug.cgi?id=596918">bug report</a> to get the patch integrated.</p>
<p>In other news, school restarted with its bunch of new responsibilities, limiting significantly free hacking time.</p>
]]></content:encoded><description>&lt;p&gt;Shameless plug to tell I&amp;#8217;m alive &lt;img src='http://blog.neteril.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /&gt;  .&lt;/p&gt;
&lt;p&gt;If you are using &lt;a href="http://wicd.sourceforge.net/"&gt;Wicd&lt;/a&gt; and usually stare at Banshee trying to download cover art or post to last.fm while you are disconnected, &lt;a href="http://neteril.org/mono/wicd-support.patch"&gt;the following patch&lt;/a&gt; add just the support to fix this.&lt;/p&gt;
&lt;p&gt;Here is the associated &lt;a href="https://bugzilla.gnome.org/show_bug.cgi?id=596918"&gt;bug report&lt;/a&gt; to get the patch integrated.&lt;/p&gt;
&lt;p&gt;In other news, school restarted with its bunch of new responsibilities, limiting significantly free hacking time.&lt;/p&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.neteril.org/2009/10/06/wicd-support-patch-for-banshee/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments></item><item><title>How to get the max out of your PLinq query</title><link>http://blog.neteril.org/2009/08/16/how-to-get-the-max-out-of-your-plinq-query/</link><category>C#</category><category>English</category><category>Google Summer of Code 2009</category><category>Mono</category><category>Programming</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jérémie Laval</dc:creator><pubDate>Sun, 16 Aug 2009 10:34:15 PDT</pubDate><guid isPermaLink="false">http://blog.neteril.org/?p=685</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Here are some tips you should follow if you want to get the maximum performance out of a Linq query parallelized with PLinq (at least with upcoming Mono version) :</p>
<ul>
<li>
<p>Use an indexed data structure as your source like an array, a list or anything which implements the generic IList&lt;T&gt; interface.</p>
<p>You can also use <a href="http://msdn.microsoft.com/en-us/library/dd268181%28VS.100%29.aspx">ParallelEnumerable.Repeat</a> and <a href="http://msdn.microsoft.com/en-us/library/system.linq.parallelenumerable.range%28VS.100%29.aspx">ParallelEnumerable.Range</a> as input. Notice the &#8216;Parallel&#8217; word in front as it&#8217;s not the same as Enumerable.(Range|Repeat)</p>
</li>
<li>
<p>Never use an ordering operator like OrderBy and never assume that the query should be ordered.</p>
<p>The overloads of some operator that provide an index integer are also to avoid.</p>
</li>
<li>
<p>As a general rule, try to stick to the general scheme of <a href="http://msdn.microsoft.com/en-us/library/dd383966%28VS.100%29.aspx">Select</a>-<a href="http://msdn.microsoft.com/en-us/library/dd384150%28VS.100%29.aspx">Where</a>-<a href="http://msdn.microsoft.com/en-us/library/dd383667%28VS.100%29.aspx">Aggregate</a> with any number of Select and Where (like the famous <a href="http://en.wikipedia.org/wiki/MapReduce">MapReduce</a>).</p>
<p>The syntactic sugar operators based on Aggregate like Min, Max, Average, etc&#8230; can also be used.</p>
</li>
<li>
<p>If you can manage it in your code, use the <a href="http://msdn.microsoft.com/en-us/library/dd383744%28VS.100%29.aspx">ForAll</a> method with an action delegate instead of iterating over the query with <code>foreach</code></p>
</li>
<li>
<p>Of course, forbid any synchronization (locks, semaphore, &#8230;) inside the operator selectors/predicates. The purest your lambdas are, the better.</p>
</li>
<li>
<p>The functions used with operators should be predictive and stable i.e. not depend on something uncertain time-wise like a network call and should yield approximately the same execution time with each input.</p>
<p>Sure, this is not always possible but if it is, it does prevent the engine from having to repeatedly balance the query execution itself.</p>
</li>
</ul>
<p>The <a href="http://msdn.microsoft.com/en-us/library/dd460688%28VS.100%29.aspx">PLinq MSDN page</a> contains some additional tricks and explanations if you are interested.</p>
]]></content:encoded><description>&lt;p&gt;Here are some tips you should follow if you want to get the maximum performance out of a Linq query parallelized with PLinq (at least with upcoming Mono version) :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Use an indexed data structure as your source like an array, a list or anything which implements the generic IList&amp;lt;T&amp;gt; interface.&lt;/p&gt;
&lt;p&gt;You can also use &lt;a href="http://msdn.microsoft.com/en-us/library/dd268181%28VS.100%29.aspx"&gt;ParallelEnumerable.Repeat&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/en-us/library/system.linq.parallelenumerable.range%28VS.100%29.aspx"&gt;ParallelEnumerable.Range&lt;/a&gt; as input. Notice the &amp;#8216;Parallel&amp;#8217; word in front as it&amp;#8217;s not the same as Enumerable.(Range|Repeat)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Never use an ordering operator like OrderBy and never assume that the query should be ordered.&lt;/p&gt;
&lt;p&gt;The overloads of some operator that provide an index integer are also to avoid.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;As a general rule, try to stick to the general scheme of &lt;a href="http://msdn.microsoft.com/en-us/library/dd383966%28VS.100%29.aspx"&gt;Select&lt;/a&gt;-&lt;a href="http://msdn.microsoft.com/en-us/library/dd384150%28VS.100%29.aspx"&gt;Where&lt;/a&gt;-&lt;a href="http://msdn.microsoft.com/en-us/library/dd383667%28VS.100%29.aspx"&gt;Aggregate&lt;/a&gt; with any number of Select and Where (like the famous &lt;a href="http://en.wikipedia.org/wiki/MapReduce"&gt;MapReduce&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;The syntactic sugar operators based on Aggregate like Min, Max, Average, etc&amp;#8230; can also be used.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you can manage it in your code, use the &lt;a href="http://msdn.microsoft.com/en-us/library/dd383744%28VS.100%29.aspx"&gt;ForAll&lt;/a&gt; method with an action delegate instead of iterating over the query with &lt;code&gt;foreach&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Of course, forbid any synchronization (locks, semaphore, &amp;#8230;) inside the operator selectors/predicates. The purest your lambdas are, the better.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The functions used with operators should be predictive and stable i.e. not depend on something uncertain time-wise like a network call and should yield approximately the same execution time with each input.&lt;/p&gt;
&lt;p&gt;Sure, this is not always possible but if it is, it does prevent the engine from having to repeatedly balance the query execution itself.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;a href="http://msdn.microsoft.com/en-us/library/dd460688%28VS.100%29.aspx"&gt;PLinq MSDN page&lt;/a&gt; contains some additional tricks and explanations if you are interested.&lt;/p&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.neteril.org/2009/08/16/how-to-get-the-max-out-of-your-plinq-query/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments></item><item><title>« Fundamentalist Functional Programming »</title><link>http://blog.neteril.org/2009/08/15/fundamentalist-functional-programming/</link><category>English</category><category>Programming</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jérémie Laval</dc:creator><pubDate>Sat, 15 Aug 2009 12:46:15 PDT</pubDate><guid isPermaLink="false">http://blog.neteril.org/?p=678</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p><a href="http://research.microsoft.com/en-us/um/people/emeijer/">Erik Meijer</a>, guru at MS Research, has recently given a talk at OSCON 2009 introducing functional programming in a funny way. Highly recommended if you have always wondered what all fuss about side effects and purity is about.</p>
<p><embed src="http://blip.tv/play/AYGT6zkC" type="application/x-shockwave-flash" width="480" height="300" allowscriptaccess="always" allowfullscreen="true"></embed></p>
<p>Check it out : <a href="http://blip.tv/file/2402061/">http://blip.tv/file/2402061/</a></p>
<p>He even cite Mono around 4:30 (btw Erik, Mono has supported C# 3.0 for quite a long time now <img src='http://blog.neteril.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  ).</p>
<p>To conclude, &laquo;&nbsp;Go purify yourself because you are all sinners&nbsp;&raquo; <img src='http://blog.neteril.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  .</p>
]]></content:encoded><description>&lt;p&gt;&lt;a href="http://research.microsoft.com/en-us/um/people/emeijer/"&gt;Erik Meijer&lt;/a&gt;, guru at MS Research, has recently given a talk at OSCON 2009 introducing functional programming in a funny way. Highly recommended if you have always wondered what all fuss about side effects and purity is about.&lt;/p&gt;
&lt;p&gt;&lt;embed src="http://blip.tv/play/AYGT6zkC" type="application/x-shockwave-flash" width="480" height="300" allowscriptaccess="always" allowfullscreen="true"&gt;&lt;/embed&gt;&lt;/p&gt;
&lt;p&gt;Check it out : &lt;a href="http://blip.tv/file/2402061/"&gt;http://blip.tv/file/2402061/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;He even cite Mono around 4:30 (btw Erik, Mono has supported C# 3.0 for quite a long time now &lt;img src='http://blog.neteril.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /&gt;  ).&lt;/p&gt;
&lt;p&gt;To conclude, &amp;laquo;&amp;nbsp;Go purify yourself because you are all sinners&amp;nbsp;&amp;raquo; &lt;img src='http://blog.neteril.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /&gt;  .&lt;/p&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.neteril.org/2009/08/15/fundamentalist-functional-programming/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments></item><item><title>Follow-up on OpenVG support for Moonligh</title><link>http://blog.neteril.org/2009/07/27/follow-up-on-openvg-support-for-moonlight/</link><category>C#</category><category>English</category><category>Linux</category><category>Mono</category><category>Programming</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jérémie Laval</dc:creator><pubDate>Mon, 27 Jul 2009 11:12:52 PDT</pubDate><guid isPermaLink="false">http://garuma.wordpress.com/?p=666</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Interested by the stuff I <a href="http://garuma.wordpress.com/2009/07/16/joining-the-moonlight-fun/">demonstrated</a> some weeks ago ?</p>
<p>Check out the following <a href="http://lists.ximian.com/pipermail/moonlight-list/2009-July/000561.html">message</a> on Moonlight mailing-list for instructions on how to get the same thing.</p>
<p>Just to make you salivate :</p>
<p align="center"><!-- Smart Youtube --><span class="youtube"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/Ekfb6jCyDmM&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><embed wmode="transparent" src="http://www.youtube.com/v/Ekfb6jCyDmM&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355" ></embed><param name="wmode" value="transparent" /></object></span><br />
<br /><em>BubbleMark running at ~50 fps without too much visual glitches</em><br />
(direct link : <a href="http://www.youtube.com/watch?v=Ekfb6jCyDmM">http://www.youtube.com/watch?v=Ekfb6jCyDmM</a>)</p>
]]></content:encoded><description>&lt;p&gt;Interested by the stuff I &lt;a href="http://garuma.wordpress.com/2009/07/16/joining-the-moonlight-fun/"&gt;demonstrated&lt;/a&gt; some weeks ago ?&lt;/p&gt;
&lt;p&gt;Check out the following &lt;a href="http://lists.ximian.com/pipermail/moonlight-list/2009-July/000561.html"&gt;message&lt;/a&gt; on Moonlight mailing-list for instructions on how to get the same thing.&lt;/p&gt;
&lt;p&gt;Just to make you salivate :&lt;/p&gt;
&lt;p align="center"&gt;&lt;!-- Smart Youtube --&gt;&lt;span class="youtube"&gt;&lt;object width="425" height="355"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Ekfb6jCyDmM&amp;amp;rel=1&amp;amp;color1=d6d6d6&amp;amp;color2=f0f0f0&amp;amp;border=&amp;amp;fs=1&amp;amp;hl=en&amp;amp;autoplay=&amp;amp;showinfo=0&amp;amp;iv_load_policy=3&amp;amp;showsearch=0" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;embed wmode="transparent" src="http://www.youtube.com/v/Ekfb6jCyDmM&amp;amp;rel=1&amp;amp;color1=d6d6d6&amp;amp;color2=f0f0f0&amp;amp;border=&amp;amp;fs=1&amp;amp;hl=en&amp;amp;autoplay=&amp;amp;showinfo=0&amp;amp;iv_load_policy=3&amp;amp;showsearch=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355" &gt;&lt;/embed&gt;&lt;param name="wmode" value="transparent" /&gt;&lt;/object&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;em&gt;BubbleMark running at ~50 fps without too much visual glitches&lt;/em&gt;&lt;br /&gt;
(direct link : &lt;a href="http://www.youtube.com/watch?v=Ekfb6jCyDmM"&gt;http://www.youtube.com/watch?v=Ekfb6jCyDmM&lt;/a&gt;)&lt;/p&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.neteril.org/2009/07/27/follow-up-on-openvg-support-for-moonlight/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments></item><item><title>Joining the Moonlight fun</title><link>http://blog.neteril.org/2009/07/16/joining-the-moonlight-fun/</link><category>C#</category><category>English</category><category>Linux</category><category>Mono</category><category>Programming</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jérémie Laval</dc:creator><pubDate>Thu, 16 Jul 2009 08:07:17 PDT</pubDate><guid isPermaLink="false">http://garuma.wordpress.com/?p=660</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Watching my teammate hacking on moonlight was sure to detain on me someday. So when <a href="http://monotorrent.blogspot.com/">Alan</a> talked about making <a href="http://mono-project.com/Moonlight">Moonlight</a> run on top of <a href="http://en.wikipedia.org/wiki/OpenVG">OpenVG</a> I got pretty hooked.</p>
<p>Two hacking days later, I actually got something to &laquo;&nbsp;work&nbsp;&raquo;. At the moment it&#8217;s quite rough, hacky and it probably kills kitteh too (be careful, it makes shana angry, you wouldn&#8217;t like that).</p>
<p>Basically, what I did is to plug the OpenVG layer inside Moonlight custom version of cairo (using <a href="http://lists.cairographics.org/archives/cairo/2008-January/012833.html">that code</a> as a base) and then tweaked Moonlight to use the new surface (together with some changes in how drawing and caching is done internally).</p>
<p>Following is a screencast of the thing running <a href="http://bubblemark.com/silverlight2.html">Bubble Mark</a> :</p>
<p align="center"><!-- Smart Youtube --><span class="youtube"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/dywInr08ySg&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><embed wmode="transparent" src="http://www.youtube.com/v/dywInr08ySg&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355" ></embed><param name="wmode" value="transparent" /></object></span><br />
<br />
(Direct link : <a href="http://www.youtube.com/watch?v=dywInr08ySg">http://www.youtube.com/watch?v=dywInr08ySg</a>)</p>
<p>As you can see there are a lot of drawing issues remaining but the basic stuff is here. The code is not terribly faster (+10 fps or so) but that may come either from a bug in my graphic card driver (it already does the bizarre thing of slowing down after some time) or an other part of Moonlight.</p>
<p>It will definitely be better when OpenVG becomes more widespread, has more optimized implementations and can actually run on its own rather than on top of OpenGL (I&#8217;m eager to try that on top of Gallium3D when it will be ready).</p>
<p>As for inclusion in the mainline tree, I don&#8217;t know. I mostly did the thing for fun as a proof-of-concept and it&#8217;s certainly far too crappy to ever get integrated as is, but maybe someone will step up and do it correctly later <img src='http://blog.neteril.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  .</p>
]]></content:encoded><description>&lt;p&gt;Watching my teammate hacking on moonlight was sure to detain on me someday. So when &lt;a href="http://monotorrent.blogspot.com/"&gt;Alan&lt;/a&gt; talked about making &lt;a href="http://mono-project.com/Moonlight"&gt;Moonlight&lt;/a&gt; run on top of &lt;a href="http://en.wikipedia.org/wiki/OpenVG"&gt;OpenVG&lt;/a&gt; I got pretty hooked.&lt;/p&gt;
&lt;p&gt;Two hacking days later, I actually got something to &amp;laquo;&amp;nbsp;work&amp;nbsp;&amp;raquo;. At the moment it&amp;#8217;s quite rough, hacky and it probably kills kitteh too (be careful, it makes shana angry, you wouldn&amp;#8217;t like that).&lt;/p&gt;
&lt;p&gt;Basically, what I did is to plug the OpenVG layer inside Moonlight custom version of cairo (using &lt;a href="http://lists.cairographics.org/archives/cairo/2008-January/012833.html"&gt;that code&lt;/a&gt; as a base) and then tweaked Moonlight to use the new surface (together with some changes in how drawing and caching is done internally).&lt;/p&gt;
&lt;p&gt;Following is a screencast of the thing running &lt;a href="http://bubblemark.com/silverlight2.html"&gt;Bubble Mark&lt;/a&gt; :&lt;/p&gt;
&lt;p align="center"&gt;&lt;!-- Smart Youtube --&gt;&lt;span class="youtube"&gt;&lt;object width="425" height="355"&gt;&lt;param name="movie" value="http://www.youtube.com/v/dywInr08ySg&amp;amp;rel=1&amp;amp;color1=d6d6d6&amp;amp;color2=f0f0f0&amp;amp;border=&amp;amp;fs=1&amp;amp;hl=en&amp;amp;autoplay=&amp;amp;showinfo=0&amp;amp;iv_load_policy=3&amp;amp;showsearch=0" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;embed wmode="transparent" src="http://www.youtube.com/v/dywInr08ySg&amp;amp;rel=1&amp;amp;color1=d6d6d6&amp;amp;color2=f0f0f0&amp;amp;border=&amp;amp;fs=1&amp;amp;hl=en&amp;amp;autoplay=&amp;amp;showinfo=0&amp;amp;iv_load_policy=3&amp;amp;showsearch=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355" &gt;&lt;/embed&gt;&lt;param name="wmode" value="transparent" /&gt;&lt;/object&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
(Direct link : &lt;a href="http://www.youtube.com/watch?v=dywInr08ySg"&gt;http://www.youtube.com/watch?v=dywInr08ySg&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;As you can see there are a lot of drawing issues remaining but the basic stuff is here. The code is not terribly faster (+10 fps or so) but that may come either from a bug in my graphic card driver (it already does the bizarre thing of slowing down after some time) or an other part of Moonlight.&lt;/p&gt;
&lt;p&gt;It will definitely be better when OpenVG becomes more widespread, has more optimized implementations and can actually run on its own rather than on top of OpenGL (I&amp;#8217;m eager to try that on top of Gallium3D when it will be ready).&lt;/p&gt;
&lt;p&gt;As for inclusion in the mainline tree, I don&amp;#8217;t know. I mostly did the thing for fun as a proof-of-concept and it&amp;#8217;s certainly far too crappy to ever get integrated as is, but maybe someone will step up and do it correctly later &lt;img src='http://blog.neteril.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /&gt;  .&lt;/p&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.neteril.org/2009/07/16/joining-the-moonlight-fun/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">8</slash:comments></item><item><title>Obviously,</title><link>http://blog.neteril.org/2009/07/12/obviously/</link><category>English</category><category>Mono</category><category>Programming</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jérémie Laval</dc:creator><pubDate>Sun, 12 Jul 2009 03:00:12 PDT</pubDate><guid isPermaLink="false">http://garuma.wordpress.com/?p=651</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p><img alt="" src="http://desrt.ca/blog-items/on-the-topic-of-mono.png" title="writing-code" class="aligncenter" width="600" height="144" /></p>
<p><cite>Talk is cheap. Show me the code.</cite><br />
&#8212; Torvalds, Linus</p>
]]></content:encoded><description>&lt;p&gt;&lt;img alt="" src="http://desrt.ca/blog-items/on-the-topic-of-mono.png" title="writing-code" class="aligncenter" width="600" height="144" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;cite&gt;Talk is cheap. Show me the code.&lt;/cite&gt;&lt;br /&gt;
&amp;#8212; Torvalds, Linus&lt;/p&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.neteril.org/2009/07/12/obviously/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments></item><item><title>Zencomic 0.2.1 : OH HAI!</title><link>http://blog.neteril.org/2009/07/10/zencomic-0-2-1-oh-hai/</link><category>C#</category><category>English</category><category>Mono</category><category>Programming</category><category>comic</category><category>webcomic</category><category>zencomic</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jérémie Laval</dc:creator><pubDate>Fri, 10 Jul 2009 08:22:36 PDT</pubDate><guid isPermaLink="false">http://garuma.wordpress.com/?p=640</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>After fighting a bit with Gtk# widget styling and MonoDevelop tarball deployment, here is a new Zencomic.</p>
<h2>Summary</h2>
<p>Zencomic is the comic strip-driven productivity enhancer that periodically makes your day funnier by showing comic like Dilbert or XKCD in a bubble.</p>
<h2>What&#8217;s new aka The Cool Stuff &#8482;</h2>
<h3>New, window-based, popup</h3>
<p>Tired of having some comic showing far too small ? This is for you !</p>
<p>Now, if you go to the preference dialog, you will be able to switch to a window-based popup which shows your comics in all their greatness at the expense of taking more window space and making your boss, who was incidentally passing by, angry at you (in that case, a quick click on the popup will close it).</p>
<p><a href="http://garuma.files.wordpress.com/2009/07/new-window-popup.png"><img src="http://garuma.files.wordpress.com/2009/07/new-window-popup.png?w=256" alt="new-window-popup" title="new-window-popup" width="256" height="300" class="aligncenter size-medium wp-image-642" /></a></p>
<h3>Can I haz lolcats ?</h3>
<p>Lolcat greatness is here with the addition of a new addin :</p>
<p><a href="http://garuma.files.wordpress.com/2009/07/zencomic-lolcat.png"><img src="http://garuma.files.wordpress.com/2009/07/zencomic-lolcat.png?w=300" alt="zencomic-lolcat" title="zencomic-lolcat" width="300" height="238" class="aligncenter size-medium wp-image-641" /></a></p>
<h3>The remaining</h3>
<ul>
<li>For the Gnome Do junkie, Zencomic now correctly comes with a .desktop file so that you can launch it from there</li>
<li>Made the preference dialog show in a little saner way i.e. by coming up directly at the front (which apparently wasn&#8217;t the case with some WM).</li>
<li>The traditional round of bugfixes (should you still spot one don&#8217;t hesitate to manifest in the comments)</li>
</ul>
<h2>Downloadz</h2>
<p>Tarball : <a href="http://netherilshade.free.fr/mono/zencomic-0.2.1.tar.gz">http://netherilshade.free.fr/mono/zencomic-0.2.1.tar.gz</a></p>
<p>If by any chance you feel this is an application that should come in your distribution, don&#8217;t hesitate to contribute some packages <img src='http://blog.neteril.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  .</p>
]]></content:encoded><description>&lt;p&gt;After fighting a bit with Gtk# widget styling and MonoDevelop tarball deployment, here is a new Zencomic.&lt;/p&gt;
&lt;h2&gt;Summary&lt;/h2&gt;
&lt;p&gt;Zencomic is the comic strip-driven productivity enhancer that periodically makes your day funnier by showing comic like Dilbert or XKCD in a bubble.&lt;/p&gt;
&lt;h2&gt;What&amp;#8217;s new aka The Cool Stuff &amp;#8482;&lt;/h2&gt;
&lt;h3&gt;New, window-based, popup&lt;/h3&gt;
&lt;p&gt;Tired of having some comic showing far too small ? This is for you !&lt;/p&gt;
&lt;p&gt;Now, if you go to the preference dialog, you will be able to switch to a window-based popup which shows your comics in all their greatness at the expense of taking more window space and making your boss, who was incidentally passing by, angry at you (in that case, a quick click on the popup will close it).&lt;/p&gt;
&lt;p&gt;&lt;a href="http://garuma.files.wordpress.com/2009/07/new-window-popup.png"&gt;&lt;img src="http://garuma.files.wordpress.com/2009/07/new-window-popup.png?w=256" alt="new-window-popup" title="new-window-popup" width="256" height="300" class="aligncenter size-medium wp-image-642" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Can I haz lolcats ?&lt;/h3&gt;
&lt;p&gt;Lolcat greatness is here with the addition of a new addin :&lt;/p&gt;
&lt;p&gt;&lt;a href="http://garuma.files.wordpress.com/2009/07/zencomic-lolcat.png"&gt;&lt;img src="http://garuma.files.wordpress.com/2009/07/zencomic-lolcat.png?w=300" alt="zencomic-lolcat" title="zencomic-lolcat" width="300" height="238" class="aligncenter size-medium wp-image-641" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;The remaining&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;For the Gnome Do junkie, Zencomic now correctly comes with a .desktop file so that you can launch it from there&lt;/li&gt;
&lt;li&gt;Made the preference dialog show in a little saner way i.e. by coming up directly at the front (which apparently wasn&amp;#8217;t the case with some WM).&lt;/li&gt;
&lt;li&gt;The traditional round of bugfixes (should you still spot one don&amp;#8217;t hesitate to manifest in the comments)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Downloadz&lt;/h2&gt;
&lt;p&gt;Tarball : &lt;a href="http://netherilshade.free.fr/mono/zencomic-0.2.1.tar.gz"&gt;http://netherilshade.free.fr/mono/zencomic-0.2.1.tar.gz&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If by any chance you feel this is an application that should come in your distribution, don&amp;#8217;t hesitate to contribute some packages &lt;img src='http://blog.neteril.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /&gt;  .&lt;/p&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.neteril.org/2009/07/10/zencomic-0-2-1-oh-hai/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">3</slash:comments></item><item><title>GSoC: the now and the next</title><link>http://blog.neteril.org/2009/07/03/gsoc-the-now-and-the-next/</link><category>C#</category><category>English</category><category>Google Summer of Code 2009</category><category>Mono</category><category>Programming</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jérémie Laval</dc:creator><pubDate>Fri, 03 Jul 2009 14:52:21 PDT</pubDate><guid isPermaLink="false">http://garuma.wordpress.com/?p=619</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p><a href="http://garuma.wordpress.com/2009/04/21/yet-another-round-of-summer-love/">As you may recall</a>, I have the great pleasure to participate again in Google Summer of Code this year with Mono.</p>
<p>Since we are nearing midterm evaluation, I thought about doing a kind of status report like last year. Unfortunately, I haven&#8217;t been as active as I wanted to this time (exams were more time consuming this semester). However there is still some cool stuff that have already landed and which are described next.</p>
<h2>What has been done since last year</h2>
<h3>Actors and Software-transactional-memory goodness</h3>
<p>I took some time to implement rudimentary version of those two parallel programming paradigms earlier this year.</p>
<p>See this <a href="http://garuma.wordpress.com/2009/03/02/exploring-other-concurrency-models/">post</a> which describes in more details the ideas behind them and some examples.</p>
<h3>New more efficient scheduler&#8217;s deque</h3>
<p>The scheduler&#8217;s deque that was used before was quite complex due to the fact that the inherent storage mechanism was based on a doubly linked-list which is rather hard to get right when you add parallel and concurrency constraints (see <a href="http://en.wikipedia.org/wiki/ABA_problem">ABA problem</a> for instance).</p>
<p>The algorithm I was using was mostly designed with C++ in mind where you can mess up with pointers pretty easily and make freely use of CAS on pointers as integers. Since I wanted to avoid any kind of unsafe or native code in the library, I tried to port that algorithm down to C#.</p>
<p>After some mail exchange with a fellow person (hey Susan o/) who was using Mono&#8217;s ParallelFx on a big box in a laboratory, we started to see some concurrency problems with my code. Turns out that the ABA prevention code wasn&#8217;t really working with my C# rewrite. Therefore I decided to hunt for another, more C#-friendly, type of scheduler&#8217;s deque.</p>
<p>Actually, I did find it and it&#8217;s the one used now under the CyclicDeque name. It&#8217;s particularly swift because it only do integer manipulations that are particularly fast with the C# Interlocked methods and doesn&#8217;t suffer of the ABA problem because, using the vast range of values available with 64 bits integers, it&#8217;s based on a forward-only algorithm.</p>
<p>With the tests I was able to do, this new deque works more reliably and faster than the precedent. It&#8217;s currently enabled by default but I need to do some 32 bits checks to see if it behaves as expected on those plateforms.</p>
<h3>New types</h3>
<p>Following the new type introduced as part of my first SoC and the two parallel paradigms I described above, I have done some other parallel and concurrent code to be used both internally and publicly.</p>
<p>One of those is a new collection, ConcurrentSkipList that provides a thread-safe implementation of a skip-list (a nice tree-ish list container). This skip-list implementation is also used for the ConcurrentDictionary type.</p>
<p>The other is a stripped down CountdownEvent called Snzi (Scalable non-zero indicator) that basically do the same thing except that instead of keeping a count record, Snzi just tells in a binary fashion if there is or not a count remaining. That weaker semantic opens the door for more scalable and efficient optimizations.</p>
<h3>Optimizing, fixing and hardening</h3>
<p>The final task that occupied me during the inter-soc period was mostly tuning and bug-fixing the existing parts with a focus on Task reliability and PLinq performance and correctness.</p>
<h2>What have I begin to do for this SoC</h2>
<p>Currently I&#8217;m hard working on the .NET 4 port of Mono&#8217;s ParallelFx as it comes with a whole lot of new stuff and API changes.</p>
<p>The ParallelFx team over at Microsot has been publishing posts these last months about the new things coming down the pipe (check out their <a href="http://blogs.msdn.com/pfxteam/">blog</a> if you still haven&#8217;t do so).</p>
<p>At the moment, the System.Threading.Tasks namespace port is fairly complete and Tasks/Future unit tests are all back to green.</p>
<p>I&#8217;m now working a bit on the Collections namespace, adapting some of my code to the new API (notably ConcurrentDictionary) and seeing how to implement the new Partitioner pattern.</p>
<h2>What to expect next</h2>
<p><img src="http://garuma.files.wordpress.com/2009/07/mono-ireland2.png" alt="mono-ireland" title="mono-ireland" width="411" height="159" class="aligncenter size-full wp-image-626" /></p>
<p>First of all, the following weeks are going to be quite more productive as, with big thanks to <a href="http://monotorrent.blogspot.com/">Alan</a> and <a href="http://tirania.org/blog/">Miguel</a>, I&#8217;m going to spend a month in Dublin hacking in the Novell offices. Looking forward to this.</p>
<p>As for the next, the plan is to continue porting the existing code to .NET 4, first with the Parallel loops class (with probably some further optimizations on data source partitioning) and then PLinq.</p>
<p>In addition, since Mono recently enabled the .NET 4 profile in SVN, some of the ParallelFx code will also soon transition from the google code repository to official Mono&#8217;s trunk for early mass consumption.</p>
<p>Finally, last but not least, I&#8217;m going to devote the rest of the summer to testing ParallelFx more extensively with, both, improving the existing test suite with harder parallel stress-testing and the development of a <a href="http://research.microsoft.com/en-us/projects/chess/">Chess</a>-like parallel correctness checker.</p>
<p>See you at the end of the SoC for another full report <img src='http://blog.neteril.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  .</p>
]]></content:encoded><description>&lt;p&gt;&lt;a href="http://garuma.wordpress.com/2009/04/21/yet-another-round-of-summer-love/"&gt;As you may recall&lt;/a&gt;, I have the great pleasure to participate again in Google Summer of Code this year with Mono.&lt;/p&gt;
&lt;p&gt;Since we are nearing midterm evaluation, I thought about doing a kind of status report like last year. Unfortunately, I haven&amp;#8217;t been as active as I wanted to this time (exams were more time consuming this semester). However there is still some cool stuff that have already landed and which are described next.&lt;/p&gt;
&lt;h2&gt;What has been done since last year&lt;/h2&gt;
&lt;h3&gt;Actors and Software-transactional-memory goodness&lt;/h3&gt;
&lt;p&gt;I took some time to implement rudimentary version of those two parallel programming paradigms earlier this year.&lt;/p&gt;
&lt;p&gt;See this &lt;a href="http://garuma.wordpress.com/2009/03/02/exploring-other-concurrency-models/"&gt;post&lt;/a&gt; which describes in more details the ideas behind them and some examples.&lt;/p&gt;
&lt;h3&gt;New more efficient scheduler&amp;#8217;s deque&lt;/h3&gt;
&lt;p&gt;The scheduler&amp;#8217;s deque that was used before was quite complex due to the fact that the inherent storage mechanism was based on a doubly linked-list which is rather hard to get right when you add parallel and concurrency constraints (see &lt;a href="http://en.wikipedia.org/wiki/ABA_problem"&gt;ABA problem&lt;/a&gt; for instance).&lt;/p&gt;
&lt;p&gt;The algorithm I was using was mostly designed with C++ in mind where you can mess up with pointers pretty easily and make freely use of CAS on pointers as integers. Since I wanted to avoid any kind of unsafe or native code in the library, I tried to port that algorithm down to C#.&lt;/p&gt;
&lt;p&gt;After some mail exchange with a fellow person (hey Susan o/) who was using Mono&amp;#8217;s ParallelFx on a big box in a laboratory, we started to see some concurrency problems with my code. Turns out that the ABA prevention code wasn&amp;#8217;t really working with my C# rewrite. Therefore I decided to hunt for another, more C#-friendly, type of scheduler&amp;#8217;s deque.&lt;/p&gt;
&lt;p&gt;Actually, I did find it and it&amp;#8217;s the one used now under the CyclicDeque name. It&amp;#8217;s particularly swift because it only do integer manipulations that are particularly fast with the C# Interlocked methods and doesn&amp;#8217;t suffer of the ABA problem because, using the vast range of values available with 64 bits integers, it&amp;#8217;s based on a forward-only algorithm.&lt;/p&gt;
&lt;p&gt;With the tests I was able to do, this new deque works more reliably and faster than the precedent. It&amp;#8217;s currently enabled by default but I need to do some 32 bits checks to see if it behaves as expected on those plateforms.&lt;/p&gt;
&lt;h3&gt;New types&lt;/h3&gt;
&lt;p&gt;Following the new type introduced as part of my first SoC and the two parallel paradigms I described above, I have done some other parallel and concurrent code to be used both internally and publicly.&lt;/p&gt;
&lt;p&gt;One of those is a new collection, ConcurrentSkipList that provides a thread-safe implementation of a skip-list (a nice tree-ish list container). This skip-list implementation is also used for the ConcurrentDictionary type.&lt;/p&gt;
&lt;p&gt;The other is a stripped down CountdownEvent called Snzi (Scalable non-zero indicator) that basically do the same thing except that instead of keeping a count record, Snzi just tells in a binary fashion if there is or not a count remaining. That weaker semantic opens the door for more scalable and efficient optimizations.&lt;/p&gt;
&lt;h3&gt;Optimizing, fixing and hardening&lt;/h3&gt;
&lt;p&gt;The final task that occupied me during the inter-soc period was mostly tuning and bug-fixing the existing parts with a focus on Task reliability and PLinq performance and correctness.&lt;/p&gt;
&lt;h2&gt;What have I begin to do for this SoC&lt;/h2&gt;
&lt;p&gt;Currently I&amp;#8217;m hard working on the .NET 4 port of Mono&amp;#8217;s ParallelFx as it comes with a whole lot of new stuff and API changes.&lt;/p&gt;
&lt;p&gt;The ParallelFx team over at Microsot has been publishing posts these last months about the new things coming down the pipe (check out their &lt;a href="http://blogs.msdn.com/pfxteam/"&gt;blog&lt;/a&gt; if you still haven&amp;#8217;t do so).&lt;/p&gt;
&lt;p&gt;At the moment, the System.Threading.Tasks namespace port is fairly complete and Tasks/Future unit tests are all back to green.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m now working a bit on the Collections namespace, adapting some of my code to the new API (notably ConcurrentDictionary) and seeing how to implement the new Partitioner pattern.&lt;/p&gt;
&lt;h2&gt;What to expect next&lt;/h2&gt;
&lt;p&gt;&lt;img src="http://garuma.files.wordpress.com/2009/07/mono-ireland2.png" alt="mono-ireland" title="mono-ireland" width="411" height="159" class="aligncenter size-full wp-image-626" /&gt;&lt;/p&gt;
&lt;p&gt;First of all, the following weeks are going to be quite more productive as, with big thanks to &lt;a href="http://monotorrent.blogspot.com/"&gt;Alan&lt;/a&gt; and &lt;a href="http://tirania.org/blog/"&gt;Miguel&lt;/a&gt;, I&amp;#8217;m going to spend a month in Dublin hacking in the Novell offices. Looking forward to this.&lt;/p&gt;
&lt;p&gt;As for the next, the plan is to continue porting the existing code to .NET 4, first with the Parallel loops class (with probably some further optimizations on data source partitioning) and then PLinq.&lt;/p&gt;
&lt;p&gt;In addition, since Mono recently enabled the .NET 4 profile in SVN, some of the ParallelFx code will also soon transition from the google code repository to official Mono&amp;#8217;s trunk for early mass consumption.&lt;/p&gt;
&lt;p&gt;Finally, last but not least, I&amp;#8217;m going to devote the rest of the summer to testing ParallelFx more extensively with, both, improving the existing test suite with harder parallel stress-testing and the development of a &lt;a href="http://research.microsoft.com/en-us/projects/chess/"&gt;Chess&lt;/a&gt;-like parallel correctness checker.&lt;/p&gt;
&lt;p&gt;See you at the end of the SoC for another full report &lt;img src='http://blog.neteril.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /&gt;  .&lt;/p&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.neteril.org/2009/07/03/gsoc-the-now-and-the-next/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments></item><item><title>MD quick feature : switch support in Autotools deployment project</title><link>http://blog.neteril.org/2009/06/24/md-quick-feature-switch-support-in-autotools-deployment-project/</link><category>C#</category><category>English</category><category>Mono</category><category>Monodevelop</category><category>Programming</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jérémie Laval</dc:creator><pubDate>Wed, 24 Jun 2009 09:23:31 PDT</pubDate><guid isPermaLink="false">http://garuma.wordpress.com/?p=608</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Just to let you know that MonoDevelop&#8217;s Autotools deployment projects now allow you to add specific switch for the configure script.</p>
<p>Let&#8217;s say for instance that you want to enable at compile time a specific feature in your project. Now what you can do is add a switch to your deployment project which will be turned in something like <code>--enable-super-feature</code> on configure side (i.e. you will be able to run configure like <code>./configure --enable-super-feature</code>).</p>
<p>This will actually define (as in #define) a symbol that you can use with #if &#8230; #endif constructs in your code to activate your specific feature.</p>
<p>Since we are at it, here is a little screenie :</p>
<p><a href="http://garuma.files.wordpress.com/2009/06/md-switch-defines.png"><img src="http://garuma.files.wordpress.com/2009/06/md-switch-defines.png?w=300" alt="md-switch-defines" title="md-switch-defines" width="300" height="156" class="aligncenter size-medium wp-image-609" /></a></p>
<p>I will add support asap for simple makefile projects. The UI is also probably a bit rough, if there are any usability expert out of there I will gladly accept any sensible criticism <img src='http://blog.neteril.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  .</p>
]]></content:encoded><description>&lt;p&gt;Just to let you know that MonoDevelop&amp;#8217;s Autotools deployment projects now allow you to add specific switch for the configure script.&lt;/p&gt;
&lt;p&gt;Let&amp;#8217;s say for instance that you want to enable at compile time a specific feature in your project. Now what you can do is add a switch to your deployment project which will be turned in something like &lt;code&gt;--enable-super-feature&lt;/code&gt; on configure side (i.e. you will be able to run configure like &lt;code&gt;./configure --enable-super-feature&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;This will actually define (as in #define) a symbol that you can use with #if &amp;#8230; #endif constructs in your code to activate your specific feature.&lt;/p&gt;
&lt;p&gt;Since we are at it, here is a little screenie :&lt;/p&gt;
&lt;p&gt;&lt;a href="http://garuma.files.wordpress.com/2009/06/md-switch-defines.png"&gt;&lt;img src="http://garuma.files.wordpress.com/2009/06/md-switch-defines.png?w=300" alt="md-switch-defines" title="md-switch-defines" width="300" height="156" class="aligncenter size-medium wp-image-609" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I will add support asap for simple makefile projects. The UI is also probably a bit rough, if there are any usability expert out of there I will gladly accept any sensible criticism &lt;img src='http://blog.neteril.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /&gt;  .&lt;/p&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.neteril.org/2009/06/24/md-quick-feature-switch-support-in-autotools-deployment-project/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">2</slash:comments></item></channel></rss>
