<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for mwu&#039;s blog</title>
	<atom:link href="http://blog.mozilla.org/mwu/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mozilla.org/mwu</link>
	<description>A tale of a fearless coder</description>
	<lastBuildDate>Thu, 29 Sep 2011 22:20:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>Comment on mozilla-central: Now with 88.7% less PRBool! by Robert O'Callahan</title>
		<link>http://blog.mozilla.org/mwu/2011/09/29/mozilla-central-now-with-88-7-less-prbool/comment-page-1/#comment-41</link>
		<dc:creator>Robert O'Callahan</dc:creator>
		<pubDate>Thu, 29 Sep 2011 22:20:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/mwu/?p=83#comment-41</guid>
		<description><![CDATA[OK, what&#039;s next? :-)]]></description>
		<content:encoded><![CDATA[<p>OK, what&#8217;s next? <img src='http://blog.mozilla.org/mwu/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on mozilla-central: Now with 88.7% less PRBool! by Arpad Borsos</title>
		<link>http://blog.mozilla.org/mwu/2011/09/29/mozilla-central-now-with-88-7-less-prbool/comment-page-1/#comment-40</link>
		<dc:creator>Arpad Borsos</dc:creator>
		<pubDate>Thu, 29 Sep 2011 12:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/mwu/?p=83#comment-40</guid>
		<description><![CDATA[Awesome!
Now I need to run my dehydra script again to see how this affected the alignment of structs and probably save some more bytes here and there...]]></description>
		<content:encoded><![CDATA[<p>Awesome!<br />
Now I need to run my dehydra script again to see how this affected the alignment of structs and probably save some more bytes here and there&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Twelve Booleans of Mozilla by Taras&#8217; Blog &#187; Blog Archive &#187; Effective Static Analysis</title>
		<link>http://blog.mozilla.org/mwu/2011/07/28/the-twelve-booleans-of-mozilla/comment-page-1/#comment-39</link>
		<dc:creator>Taras&#8217; Blog &#187; Blog Archive &#187; Effective Static Analysis</dc:creator>
		<pubDate>Thu, 04 Aug 2011 04:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/mwu/?p=69#comment-39</guid>
		<description><![CDATA[[...] Wu&#8217;s boolcheck tool is awesome. He wrote it to check that &#8220;typedef int&#8221; bools are really being used as [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Wu&#8217;s boolcheck tool is awesome. He wrote it to check that &#8220;typedef int&#8221; bools are really being used as [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Twelve Booleans of Mozilla by mwu</title>
		<link>http://blog.mozilla.org/mwu/2011/07/28/the-twelve-booleans-of-mozilla/comment-page-1/#comment-37</link>
		<dc:creator>mwu</dc:creator>
		<pubDate>Sun, 31 Jul 2011 00:38:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/mwu/?p=69#comment-37</guid>
		<description><![CDATA[Good question.

The problem is that the only easy rewriting case is the case where it doesn&#039;t matter. The bool type automatically converts non-zero values to 1, so surrounding every non-boolean expr with !!(expr) doesn&#039;t buy you anything after switching PRBool to bool. Then, for the cases where PRBool isn&#039;t the type the code should be using, there&#039;s a judgement call about what type to use instead and if the code needs other fixes.

I&#039;ll try to elaborate on this in a future post.]]></description>
		<content:encoded><![CDATA[<p>Good question.</p>
<p>The problem is that the only easy rewriting case is the case where it doesn&#8217;t matter. The bool type automatically converts non-zero values to 1, so surrounding every non-boolean expr with !!(expr) doesn&#8217;t buy you anything after switching PRBool to bool. Then, for the cases where PRBool isn&#8217;t the type the code should be using, there&#8217;s a judgement call about what type to use instead and if the code needs other fixes.</p>
<p>I&#8217;ll try to elaborate on this in a future post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Twelve Booleans of Mozilla by Chad</title>
		<link>http://blog.mozilla.org/mwu/2011/07/28/the-twelve-booleans-of-mozilla/comment-page-1/#comment-36</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Sat, 30 Jul 2011 15:20:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/mwu/?p=69#comment-36</guid>
		<description><![CDATA[Do the changes have to be manual? Couldn&#039;t the plug-in rewrite the expressions too?]]></description>
		<content:encoded><![CDATA[<p>Do the changes have to be manual? Couldn&#8217;t the plug-in rewrite the expressions too?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Twelve Booleans of Mozilla by Benoit Jacob</title>
		<link>http://blog.mozilla.org/mwu/2011/07/28/the-twelve-booleans-of-mozilla/comment-page-1/#comment-35</link>
		<dc:creator>Benoit Jacob</dc:creator>
		<pubDate>Sat, 30 Jul 2011 06:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/mwu/?p=69#comment-35</guid>
		<description><![CDATA[Very old GCC versions had sizeof(bool)==4. I concur that all current compilers seem to be using sizeof(bool)==1 but that would at least require a test (like a static assertion) before it&#039;d be comfortable relying on.]]></description>
		<content:encoded><![CDATA[<p>Very old GCC versions had sizeof(bool)==4. I concur that all current compilers seem to be using sizeof(bool)==1 but that would at least require a test (like a static assertion) before it&#8217;d be comfortable relying on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Twelve Booleans of Mozilla by mwu</title>
		<link>http://blog.mozilla.org/mwu/2011/07/28/the-twelve-booleans-of-mozilla/comment-page-1/#comment-34</link>
		<dc:creator>mwu</dc:creator>
		<pubDate>Fri, 29 Jul 2011 23:55:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/mwu/?p=69#comment-34</guid>
		<description><![CDATA[I&#039;m not. I&#039;m only changing Mozilla bool types where we have control over. However, it needs to be on the list of boolean types for this analysis to work out.

Coincidentally, I haven&#039;t seen a platform where bool isn&#039;t 8bit wide yet.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m not. I&#8217;m only changing Mozilla bool types where we have control over. However, it needs to be on the list of boolean types for this analysis to work out.</p>
<p>Coincidentally, I haven&#8217;t seen a platform where bool isn&#8217;t 8bit wide yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Twelve Booleans of Mozilla by Benoit Jacob</title>
		<link>http://blog.mozilla.org/mwu/2011/07/28/the-twelve-booleans-of-mozilla/comment-page-1/#comment-33</link>
		<dc:creator>Benoit Jacob</dc:creator>
		<pubDate>Fri, 29 Jul 2011 19:01:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/mwu/?p=69#comment-33</guid>
		<description><![CDATA[Don&#039;t touch realGLboolean!! OpenGL relies on its sizeof being 1, which bool doesn&#039;t guarantee.]]></description>
		<content:encoded><![CDATA[<p>Don&#8217;t touch realGLboolean!! OpenGL relies on its sizeof being 1, which bool doesn&#8217;t guarantee.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Twelve Booleans of Mozilla by mwu</title>
		<link>http://blog.mozilla.org/mwu/2011/07/28/the-twelve-booleans-of-mozilla/comment-page-1/#comment-32</link>
		<dc:creator>mwu</dc:creator>
		<pubDate>Fri, 29 Jul 2011 15:53:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/mwu/?p=69#comment-32</guid>
		<description><![CDATA[Getting rid of JSBool and JSPackedBool would be nice too, though that&#039;s a bit more difficult than PRBool and PRPackedBool.

A few of the other boolean types are used in C where there is inconsistent support for bool - VC doesn&#039;t support it.]]></description>
		<content:encoded><![CDATA[<p>Getting rid of JSBool and JSPackedBool would be nice too, though that&#8217;s a bit more difficult than PRBool and PRPackedBool.</p>
<p>A few of the other boolean types are used in C where there is inconsistent support for bool &#8211; VC doesn&#8217;t support it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Twelve Booleans of Mozilla by John Drinkwater</title>
		<link>http://blog.mozilla.org/mwu/2011/07/28/the-twelve-booleans-of-mozilla/comment-page-1/#comment-31</link>
		<dc:creator>John Drinkwater</dc:creator>
		<pubDate>Fri, 29 Jul 2011 14:01:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/mwu/?p=69#comment-31</guid>
		<description><![CDATA[So afterwards, they’re just 10 boolean types left?]]></description>
		<content:encoded><![CDATA[<p>So afterwards, they’re just 10 boolean types left?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
