<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blog.joa-ebert.com - Blog of Joa Ebert &#187; Silverlight</title>
	<atom:link href="http://blog.joa-ebert.com/category/silverlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.joa-ebert.com</link>
	<description>Actionscript3, Flash, Scala, Java, C#, C++, Algorithms &#38; Imageprocessing</description>
	<lastBuildDate>Wed, 28 Jul 2010 16:47:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Flirting With Silverlight</title>
		<link>http://blog.joa-ebert.com/2009/08/10/flirting-with-silverlight/</link>
		<comments>http://blog.joa-ebert.com/2009/08/10/flirting-with-silverlight/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 10:23:37 +0000</pubDate>
		<dc:creator>joa</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[lorenz attractor]]></category>

		<guid isPermaLink="false">http://blog.joa-ebert.com/?p=424</guid>
		<description><![CDATA[Lately a lot of discussion had the ActionScript languag [...]]]></description>
			<content:encoded><![CDATA[<p>Lately a lot of discussion had the ActionScript language as its focus. People start complaining about complex language features but I think they are great because the end user will benefit from that. Yesterday evening I had my very first test with Silverlight &#8212; and I am really impressed.</p>
<p>It took me a short amount of time to port the strange attractor to Silverlight. I agree that this is may be not a fair comparison because I know C# already but have a look at the source code. I make heavy use of type inference and the <code>Matrix4x4</code> class has the plus, multiply and array-index operator overloaded. The code is more readable. And besides: it executes really fast. Faster than my heavily optimized ActionScript version. Imagine I would write <code>var bleh = 1.0</code> in ActionScript. Framerate would drop to something like zero. But this is sad since there is no reason for me to write  <code>var bleh: Number  = 1.0</code>. A modern compiler should be able to figure this out. <a href="http://haxe.org/ref/type_infer" target="_blank" title="haXe type inference">haXe</a> can do it, <a href="http://msdn.microsoft.com/en-us/library/ms364047(VS.80).aspx#cs3spec_topic2" target="_blank" title="C# type inference">C#</a> can do it, <a href="http://www.ocaml-tutorial.org/the_basics#Type_inference" target="_blank" title="OCaml type inference">OCaml</a> can do it and <a href="http://en.wikipedia.org/wiki/Type_inference" target="_blank" title="Type inference at Wikipedia">lots of others</a> as well.</p>
<p>Remember: This was my first time using Silverlight. To achieve the same result with Flash you have to be kind of an expert in strange player and language &#8220;features&#8221;. Now tell me again that the end user will not benefit.</p>
<ul>
<li><a href="http://www.joa-ebert.com/files/xpa/attractor/" target="_blank" title="Strange Silverlight Attractor">Example</a></li>
<li><a href="http://www.joa-ebert.com/files/xpa/attractor/source/MainPage.xaml.cs" target="_blank" title="MainPage.xaml.cs Sourcecode">MainPage.xaml.cs</a></li>
<li><a href="http://www.joa-ebert.com/files/xpa/attractor/source/Particle.cs" target="_blank" title="Particle.cs Sourcecode">Particle.cs</a></li>
<li><a href="http://www.joa-ebert.com/files/xpa/attractor/source/Matrix4x4.cs" target="_blank" title="Matrix4x4.cs Sourcecode">Matrix4x4.cs</a></li>
</ul>
<div class="tweetmeme_button" style="float: right; margin-right: 10px; margin-top: 38px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.joa-ebert.com%2F2009%2F08%2F10%2Fflirting-with-silverlight%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.joa-ebert.com%2F2009%2F08%2F10%2Fflirting-with-silverlight%2F&amp;source=joa&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<div style="float:right;margin:0px 16px 0px 4px;"><a title="Post on Google Buzz" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="normal-count" data-url="http://blog.joa-ebert.com/2009/08/10/flirting-with-silverlight/"></a><script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://blog.joa-ebert.com/2009/08/10/flirting-with-silverlight/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>
