<?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>Sans Browser &#187; TraceMonkey</title>
	<atom:link href="http://enefekt.com/sansbrowser/category/tracemonkey/feed/" rel="self" type="application/rss+xml" />
	<link>http://enefekt.com/sansbrowser</link>
	<description>Merging the best of the web and desktop</description>
	<lastBuildDate>Mon, 12 Jan 2009 16:25:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>XULRunner File Remove Bug and Work-around</title>
		<link>http://enefekt.com/sansbrowser/2009/01/12/xulrunner-file-remove-bug-and-work-around/</link>
		<comments>http://enefekt.com/sansbrowser/2009/01/12/xulrunner-file-remove-bug-and-work-around/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 16:11:46 +0000</pubDate>
		<dc:creator>enefekt</dc:creator>
				<category><![CDATA[Mozpad]]></category>
		<category><![CDATA[TraceMonkey]]></category>
		<category><![CDATA[XULRunner]]></category>
		<category><![CDATA[XULRunnerApp]]></category>

		<guid isPermaLink="false">http://enefekt.com/sansbrowser/?p=66</guid>
		<description><![CDATA[I&#8217;m working on a tool based on XULRunner that generates some content. (HTML content, images, etc.) It produces a directory to put the content into, and then offers the user the option of viewing that content right away.
The problem lies in leaving that content open in a another application like a web browser. Upon returning [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a tool based on <a href="https://developer.mozilla.org/en/XULRunner">XULRunner</a> that generates some content. (HTML content, images, etc.) It produces a directory to put the content into, and then offers the user the option of viewing that content right away.</p>
<p>The problem lies in leaving that content open in a another application like a web browser. Upon returning to the tool, and attempting to re-publish the content, an NS_ERROR_FAILURE exception is thrown coming from the <a href="https://developer.mozilla.org/en/NsIFile/remove">nsIFile.remove</a> call to remove the directory recursively. This is because of some sort of file exclusivity the web browser process has already.</p>
<p>So easy, just catch that error, inform the user to close their content in any other open application, rinse and repeat, right? Well unfortunately under XULRunner on Mac OS 10.5, the initial failure gunks up any further attempts. So even reinitializing a new nsIFile instance doesn&#8217;t work. Only restarting the app works! Yech.</p>
<p>Well I found that manually doing a recursive loop and removing each file individually, and then removing the parent directory, works. Definitely not efficient, as the native code would be better over JavaScript. (<a href="https://wiki.mozilla.org/JavaScript:TraceMonkey">TraceMonkey</a> should help with this right?) But there isn&#8217;t a grossly high number of files or that deep of a hiearchy anyways.</p>
<p>So meanwhile over on Windows, that technique throws it&#8217;s own lovely exception. But on Windows, catching the initial exception, and warning the user about files open in other application and closing them, works fine, so thats what I&#8217;m using over there.</p>
]]></content:encoded>
			<wfw:commentRss>http://enefekt.com/sansbrowser/2009/01/12/xulrunner-file-remove-bug-and-work-around/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Bitter Taste of Tamarin or Launch of the JavaScript Wars?</title>
		<link>http://enefekt.com/sansbrowser/2008/09/30/the-bitter-taste-of-tamarin-or-launch-of-the-javascript-wars/</link>
		<comments>http://enefekt.com/sansbrowser/2008/09/30/the-bitter-taste-of-tamarin-or-launch-of-the-javascript-wars/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 11:37:10 +0000</pubDate>
		<dc:creator>enefekt</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Tamarin]]></category>
		<category><![CDATA[TraceMonkey]]></category>

		<guid isPermaLink="false">http://enefekt.com/sansbrowser/2008/09/30/the-bitter-taste-of-tamarin-or-launch-of-the-javascript-wars/</guid>
		<description><![CDATA[I&#8217;ve been trying to at the very least write one post a month, so I&#8217;m going to sneak my September in here.
I always thought the Tamarin project was a nice example of an open-source move by Adobe. The JS-Harmony project definitely threw some cold water on some idealistic visions.
This Reg article apparently cites some bitterness [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been trying to at the very least write one post a month, so I&#8217;m going to sneak my September in here.</p>
<p>I always thought the Tamarin project was a nice example of an open-source move by Adobe. The <a href="https://mail.mozilla.org/pipermail/es-discuss/2008-August/003400.html">JS-Harmony</a> project definitely threw some cold water on some idealistic visions.</p>
<p>This <a href="http://www.theregister.co.uk/2008/09/26/adobe_google_mozilla_tensions/">Reg article</a> apparently cites some bitterness at least for one person at Adobe regarding the fruitions of the open source contributions.</p>
<p>I&#8217;ll tell you what I think, that Adobe&#8217;s contribution helped stoke the JavaScript wars we&#8217;re seeing right now. And no matter how much Tamarin is sliced and diced, I think many will benefit from it.</p>
]]></content:encoded>
			<wfw:commentRss>http://enefekt.com/sansbrowser/2008/09/30/the-bitter-taste-of-tamarin-or-launch-of-the-javascript-wars/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mozilla TraceMonkey: Adobe Open-Source Fruit</title>
		<link>http://enefekt.com/sansbrowser/2008/08/25/mozilla-tracemonkey-adobe-open-source-fruit/</link>
		<comments>http://enefekt.com/sansbrowser/2008/08/25/mozilla-tracemonkey-adobe-open-source-fruit/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 14:46:28 +0000</pubDate>
		<dc:creator>enefekt</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[TraceMonkey]]></category>

		<guid isPermaLink="false">http://enefekt.com/sansbrowser/2008/08/25/mozilla-tracemonkey-adobe-open-source-fruit/</guid>
		<description><![CDATA[I&#8217;m not trying to maximize or minimize any specific roles in this first release of Mozilla&#8217;s new JavaScript engine, but it&#8217;s cool to see the shout out on Brendan&#8217;s post:
&#8220;I&#8217;m also grateful to Ed Smith and the Tamarin Tracing team at Adobe for the TT Nanojit, which was a huge boost to developing TraceMonkey.&#8221;
Really neat [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not trying to maximize or minimize any specific roles in this first release of Mozilla&#8217;s <a href="https://wiki.mozilla.org/JavaScript:TraceMonkey">new JavaScript engine</a>, but it&#8217;s cool to see the shout out on <a href="http://weblogs.mozillazine.org/roadmap/archives/2008/08/tracemonkey_javascript_lightsp.html">Brendan&#8217;s post</a>:</p>
<blockquote><p>&#8220;I&#8217;m also grateful to Ed Smith and the Tamarin Tracing team at Adobe for the TT Nanojit, which was a huge boost to developing TraceMonkey.&#8221;</p></blockquote>
<p>Really neat to see Adobe&#8217;s contributions helping to make such an impact, wish we could see more collaboration between Mozilla and Adobe.</p>
]]></content:encoded>
			<wfw:commentRss>http://enefekt.com/sansbrowser/2008/08/25/mozilla-tracemonkey-adobe-open-source-fruit/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
