<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>blog.sidneidasilva.com &#187; javascript</title>
	<atom:link href="http://blog.sidneidasilva.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sidneidasilva.com</link>
	<description></description>
	<lastBuildDate>Tue, 31 May 2011 16:48:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.sidneidasilva.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/9ed20a673cf8f74cf08f01d23fa6e0d5?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>blog.sidneidasilva.com &#187; javascript</title>
		<link>http://blog.sidneidasilva.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.sidneidasilva.com/osd.xml" title="blog.sidneidasilva.com" />
	<atom:link rel='hub' href='http://blog.sidneidasilva.com/?pushpress=hub'/>
		<item>
		<title>Javascript Testing and Browser Speed</title>
		<link>http://blog.sidneidasilva.com/2010/03/17/javascript-testing-and-browser-speed/</link>
		<comments>http://blog.sidneidasilva.com/2010/03/17/javascript-testing-and-browser-speed/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 02:30:20 +0000</pubDate>
		<dc:creator>Sidnei</dc:creator>
				<category><![CDATA[canonical]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[landscape]]></category>

		<guid isPermaLink="false">http://blog.sidneidasilva.com/?p=320</guid>
		<description><![CDATA[Just a quick post to get me started at blogging again. Over the last year (wow, time flies by!) I&#8217;ve been working at Canonical, as part of the Landscape team. This is a very diverse team with lots of different skills, and somehow I found myself naturally gravitating towards working more closely on frontend-related issues, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sidneidasilva.com&amp;blog=232351&amp;post=320&amp;subd=omsg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just a quick post to get me started at blogging again.</p>
<p>Over the last year (wow, time flies by!) I&#8217;ve been working at Canonical, as part of the Landscape team. This is a very diverse team with lots of different skills, and somehow I found myself naturally gravitating towards working more closely on frontend-related issues, of which I could highlight writing YUI3 widgets, speeding up page loading experience and creating a nice testing infrastructure. There&#8217;s a ton of things I could write about that, and I really plan to. But today&#8217;s entry will be pretty short.</p>
<p><span id="more-320"></span></p>
<p>As part of a brain-break task I fixed some of our Javascript tests today so that they would run on Google Chrome. We haven&#8217;t been targeting Chrome so far, but that might change soon, driven by Google Analytics stats of people using Landscape.</p>
<p>But, the thing that really caught my attention was the difference in speed between Chrome and Firefox. </p>
<p>For comparison:</p>
<p><b>Google Chrome 5.0.307.7 beta</b></p>
<pre>
$ BROWSER=google-chrome ./bin/test -1vpc --layer=JsTestDriverLayer
Running tests at level 1
Running canonical.testing.javascript.JsTestDriverLayer tests:
Set up canonical.testing.javascript.JsTestDriverLayer in 1.020 seconds.
Running:

Ran 318 tests with 0 failures and 0 errors in 9.545 seconds.
Tearing down left over layers:
Tear down canonical.testing.javascript.JsTestDriverLayer in 0.366 seconds.
</pre>
<p><b>Firefox 3.6.3pre</b></p>
<pre>
$ BROWSER=firefox ./bin/test -1vpc --layer=JsTestDriverLayer
Running tests at level 1
Running canonical.testing.javascript.JsTestDriverLayer tests:
  Set up canonical.testing.javascript.JsTestDriverLayer in 1.014 seconds.
  Running:

  Ran 318 tests with 0 failures and 0 errors in 15.032 seconds.
Tearing down left over layers:
  Tear down canonical.testing.javascript.JsTestDriverLayer in 0.349 seconds.
</pre>
<p><b>Firefox 3.7a3pre</b></p>
<pre>
$ BROWSER=firefox-3.7 ./bin/test -1vpc --layer=JsTestDriverLayer
Running tests at level 1
Running canonical.testing.javascript.JsTestDriverLayer tests:
  Set up canonical.testing.javascript.JsTestDriverLayer in 0.804 seconds.
  Running:

  Ran 318 tests with 0 failures and 0 errors in 13.433 seconds.
Tearing down left over layers:
  Tear down canonical.testing.javascript.JsTestDriverLayer in 0.379 seconds.
</pre>
<p><b>Disclaimer</b>: Both instances of Firefox were started with the &#8220;-safe-mode&#8221; flag, which disables all plugins and extensions. Also, as they say around here at Canonical: NOT A METRIC. But interesting still.</p>
<p>If you look closely at this post you might find some hints about things we&#8217;ve been working on and which I hope to write about, in addition to general tips and tricks about page speed optimization from experiences in both Landscape and Launchpad.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/omsg.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/omsg.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/omsg.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/omsg.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/omsg.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/omsg.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/omsg.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/omsg.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/omsg.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/omsg.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/omsg.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/omsg.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/omsg.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/omsg.wordpress.com/320/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sidneidasilva.com&amp;blog=232351&amp;post=320&amp;subd=omsg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sidneidasilva.com/2010/03/17/javascript-testing-and-browser-speed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18268769213d24b741de807d6c350363?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sidnei</media:title>
		</media:content>
	</item>
		<item>
		<title>Strategic Blindness</title>
		<link>http://blog.sidneidasilva.com/2007/09/19/strategic-blindness/</link>
		<comments>http://blog.sidneidasilva.com/2007/09/19/strategic-blindness/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 14:15:15 +0000</pubDate>
		<dc:creator>Sidnei</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[strategy]]></category>
		<category><![CDATA[tamarin]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://awkly.org/2007/09/19/strategic-blindness/</guid>
		<description><![CDATA[On his Strategy Letter VI article, Joel writes about something that many people are starting to realize: that the current Web 2.0 is not much better than Smart (or even Dumb!) Terminal days, when you had to care about memory constraints and there were no standards for interop between applications, or even UI guidelines. Then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sidneidasilva.com&amp;blog=232351&amp;post=235&amp;subd=omsg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On his <a href="http://www.joelonsoftware.com/items/2007/09/18.html">Strategy Letter VI</a> article, Joel writes about something that many people are starting to realize: that the current Web 2.0 is not much better than Smart (or even Dumb!) Terminal days, when you had to care about memory constraints and there were no standards for interop between applications, or even UI guidelines.</p>
<p>Then after a short history lesson, he speculates that people should stop worrying about the size of their JavaScript and that eventually <strike>JavaScript would be compiled to native code</strike> a new portable language will appear that can be compiled to JavaScript (did someone tell him about <a href="http://code.google.com/webtoolkit/" target="_blank">GWT</a> at all?).</p>
<blockquote><p>What’s going to happen? The winners are going to do what worked at Bell Labs in 1978: build a programming language, like C, that’s portable and efficient. It should compile down to “native” code (native code being JavaScript and DOMs) with different backends for different target platforms, where the compiler writers obsess about performance so you don’t have to. It’ll have all the same performance as native JavaScript with full access to the DOM in a consistent fashion, and it’ll compile down to IE native and Firefox native portably and automatically. And, yes, it’ll go into your CSS and muck around with it in some frightening but provably-correct way so you never have to think about CSS incompatibilities ever again. Ever. Oh joyous day that will be.</p>
</blockquote>
<p>Well, after Paul Graham said that <a href="http://www.paulgraham.com/microsoft.html" target="_blank">Microsoft is Dead</a>, the only thing I can think of is that Joel has started to believe Paul&#8217;s lie, and stopped paying attention to what comes out of Microsoft.
<p>Everyone that is paying attention to <a href="http://www.microsoft.com/silverlight/" target="_blank">Silverlight</a> and has not been blinded by the anti-Microsoft FUD, something that even <a href="http://www.vnunet.com/vnunet/news/2196258/linux-foundation-calls-respect" target="_blank">the Linux Foundation executive director condemns</a>, will realize where Microsoft is heading with the introduction of the <a href="http://blogs.msdn.com/hugunin/archive/2007/04/30/a-dynamic-language-runtime-dlr.aspx" target="_blank">DLR</a>, specially if you make the connection between Joel&#8217;s post and <a href="http://blogs.msdn.com/jscript/archive/2007/05/04/managed-jscript-announced.aspx" target="_blank">Managed JScript</a>. I really hope that people will soon take their tinfoil hats off and start paying more attention to what&#8217;s coming out of Microsoft, specially since there is an option in Mono, which is a completely open implementation of .NET, and now with <a href="http://www.mono-project.com/Moonlight" target="_blank">Moonlight</a> a <a href="http://www.mono-project.com/Moonlight#JavaScript_compiler" target="_blank">JavaScript compiler</a>&nbsp; will be soon hitting your beloved Linux Desktop anytime now.
<p>And listen, Joel. We don&#8217;t need no new stinking portable language that can compile to JavaScript. If we get to write code in our own lovely favorite language, be it <a href="http://en.wikipedia.org/wiki/IronPython" target="_blank">Python</a> or even <a href="http://en.wikipedia.org/wiki/IronRuby" target="_blank">Ruby</a>, being able to access the dreaded DOM and to top it off compile it to native machine code, what could be better than that?
<p>In other news, if you just consider the approach of making JavaScript faster instead of compiling it, you might want to keep an eye on Mozilla&#8217;s <a href="http://www.mozilla.org/projects/tamarin/" target="_blank">Tamarin Project</a>. Mum&#8217;s the word that some exciting news will be coming out of that in the near future.  </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/omsg.wordpress.com/235/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/omsg.wordpress.com/235/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/omsg.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/omsg.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/omsg.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/omsg.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/omsg.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/omsg.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/omsg.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/omsg.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/omsg.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/omsg.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/omsg.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/omsg.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/omsg.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/omsg.wordpress.com/235/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sidneidasilva.com&amp;blog=232351&amp;post=235&amp;subd=omsg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sidneidasilva.com/2007/09/19/strategic-blindness/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18268769213d24b741de807d6c350363?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sidnei</media:title>
		</media:content>
	</item>
	</channel>
</rss>
