<?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 R. Matthew Emerson</title>
	<atom:link href="http://www.thoughtstuff.com/rme/weblog/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://www.thoughtstuff.com/rme/weblog</link>
	<description>Matters of minor import</description>
	<lastBuildDate>Sat, 20 Sep 2008 03:46:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on CCL on x8632: more registers, please by wolf550e</title>
		<link>http://www.thoughtstuff.com/rme/weblog/?p=16&#038;cpage=1#comment-24567</link>
		<dc:creator>wolf550e</dc:creator>
		<pubDate>Sat, 20 Sep 2008 03:46:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtstuff.com/rme/weblog/?p=16#comment-24567</guid>
		<description>Very interesting.
Win32 uses FS for thread local storage. Did you take the idea from there?
What about doing what GCC does when you specify -fomit-frame-pointer? That should give you a register. Or if you can&#039;t use if, please write another post about it.
Re: presumably cheaper instruction pair. Benchmark! Some legacy x86 instructions are quite slow on modern cpus (core2). The Intel docs are good, but I&#039;d benchmark and possibly even see what the Intel compilers generate to find out what&#039;s best practice for today&#039;s chips.</description>
		<content:encoded><![CDATA[<p>Very interesting.<br />
Win32 uses FS for thread local storage. Did you take the idea from there?<br />
What about doing what GCC does when you specify -fomit-frame-pointer? That should give you a register. Or if you can&#8217;t use if, please write another post about it.<br />
Re: presumably cheaper instruction pair. Benchmark! Some legacy x86 instructions are quite slow on modern cpus (core2). The Intel docs are good, but I&#8217;d benchmark and possibly even see what the Intel compilers generate to find out what&#8217;s best practice for today&#8217;s chips.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Playing sounds from the command line by Alberto</title>
		<link>http://www.thoughtstuff.com/rme/weblog/?p=10&#038;cpage=1#comment-19271</link>
		<dc:creator>Alberto</dc:creator>
		<pubDate>Fri, 28 Mar 2008 21:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtstuff.com/rme/weblog/?p=10#comment-19271</guid>
		<description>YAY! Thank you! Thank you! Thank you! :)</description>
		<content:encoded><![CDATA[<p>YAY! Thank you! Thank you! Thank you! <img src='http://www.thoughtstuff.com/rme/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting disk insertion/removal notifications by Andreas Wacker</title>
		<link>http://www.thoughtstuff.com/rme/weblog/?p=3&#038;cpage=1#comment-6505</link>
		<dc:creator>Andreas Wacker</dc:creator>
		<pubDate>Tue, 30 Oct 2007 18:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtstuff.com/rme/weblog/?p=3#comment-6505</guid>
		<description>you wrote: &quot;Maybe this will help somebody out there&quot;


I would say that this it so perfectly what I was looking for that it is almost scary. 

Thank you!</description>
		<content:encoded><![CDATA[<p>you wrote: &#8220;Maybe this will help somebody out there&#8221;</p>
<p>I would say that this it so perfectly what I was looking for that it is almost scary. </p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Clozure CL (née OpenMCL) by Dimiter "malkia" Stanev</title>
		<link>http://www.thoughtstuff.com/rme/weblog/?p=13&#038;cpage=1#comment-5889</link>
		<dc:creator>Dimiter "malkia" Stanev</dc:creator>
		<pubDate>Fri, 19 Oct 2007 23:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtstuff.com/rme/weblog/?p=13#comment-5889</guid>
		<description>OpenMCL runs fine on the PS3 (YellowDog linux) :) - both 64bit and 32bit.</description>
		<content:encoded><![CDATA[<p>OpenMCL runs fine on the PS3 (YellowDog linux) <img src='http://www.thoughtstuff.com/rme/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8211; both 64bit and 32bit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting disk insertion/removal notifications by rme</title>
		<link>http://www.thoughtstuff.com/rme/weblog/?p=3&#038;cpage=1#comment-3863</link>
		<dc:creator>rme</dc:creator>
		<pubDate>Thu, 06 Sep 2007 16:12:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtstuff.com/rme/weblog/?p=3#comment-3863</guid>
		<description>You need to add the DiskArbitration.framework to your Xcode project.

See &lt;a href=&quot;http://developer.apple.com/documentation/developertools/conceptual/xcodeuserguide/contents/resources/en.lproj/01_04_pr_add_files/chapter_7_section_5.html#//apple_ref/doc/uid/TP40002666-DontLinkElementID_182&quot; rel=&quot;nofollow&quot;&gt;this part of the Xcode documentation&lt;/a&gt;.

If you compile from the command-line, you&#039;d say &lt;code&gt;cc foo.m -framework DiskArbitration -framework Foundation&lt;/code&gt;.</description>
		<content:encoded><![CDATA[<p>You need to add the DiskArbitration.framework to your Xcode project.</p>
<p>See <a href="http://developer.apple.com/documentation/developertools/conceptual/xcodeuserguide/contents/resources/en.lproj/01_04_pr_add_files/chapter_7_section_5.html#//apple_ref/doc/uid/TP40002666-DontLinkElementID_182" rel="nofollow">this part of the Xcode documentation</a>.</p>
<p>If you compile from the command-line, you&#8217;d say <code>cc foo.m -framework DiskArbitration -framework Foundation</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting disk insertion/removal notifications by rdw</title>
		<link>http://www.thoughtstuff.com/rme/weblog/?p=3&#038;cpage=1#comment-3852</link>
		<dc:creator>rdw</dc:creator>
		<pubDate>Thu, 06 Sep 2007 04:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtstuff.com/rme/weblog/?p=3#comment-3852</guid>
		<description>Sorry to ask such a basic question, but I am new to XCode and the Mac OS X environment.  I&#039;m trying to build your code snippet above, and am getting:

[Session started at 2007-09-05 21:14:58 -0700.]
ZeroLink: unknown symbol &#039;_DASessionCreate&#039;

DiskInsertion has exited due to signal 6 (SIGABRT).

I tried additional includes...
#include 
#include 

Any tips would be greatly appreciated.  Trying to build a simple daemon to perform an action when a particular volume is mounted... and your code is a good example.  Unfortunately I am unable to really get started.

Thanks.

rdw</description>
		<content:encoded><![CDATA[<p>Sorry to ask such a basic question, but I am new to XCode and the Mac OS X environment.  I&#8217;m trying to build your code snippet above, and am getting:</p>
<p>[Session started at 2007-09-05 21:14:58 -0700.]<br />
ZeroLink: unknown symbol &#8216;_DASessionCreate&#8217;</p>
<p>DiskInsertion has exited due to signal 6 (SIGABRT).</p>
<p>I tried additional includes&#8230;<br />
#include<br />
#include </p>
<p>Any tips would be greatly appreciated.  Trying to build a simple daemon to perform an action when a particular volume is mounted&#8230; and your code is a good example.  Unfortunately I am unable to really get started.</p>
<p>Thanks.</p>
<p>rdw</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Probably prime numbers by msingh</title>
		<link>http://www.thoughtstuff.com/rme/weblog/?p=6&#038;cpage=1#comment-1255</link>
		<dc:creator>msingh</dc:creator>
		<pubDate>Sat, 09 Jun 2007 12:01:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtstuff.com/rme/weblog/?p=6#comment-1255</guid>
		<description>Nice work.. but i think there is a small bug in your code. 
The line (let ((w (+ 1 (random (- n 2))))) should probably be (1+ (random (- n 1))) because CLR specifies a random integer a in [1, n-1]. Your&#039;s wont admit n-1.</description>
		<content:encoded><![CDATA[<p>Nice work.. but i think there is a small bug in your code.<br />
The line (let ((w (+ 1 (random (- n 2))))) should probably be (1+ (random (- n 1))) because CLR specifies a random integer a in [1, n-1]. Your&#8217;s wont admit n-1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Probably prime numbers by Andras Simon</title>
		<link>http://www.thoughtstuff.com/rme/weblog/?p=6&#038;cpage=1#comment-14</link>
		<dc:creator>Andras Simon</dc:creator>
		<pubDate>Mon, 12 Mar 2007 15:49:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.thoughtstuff.com/rme/weblog/?p=6#comment-14</guid>
		<description>Nice! But that 

&lt;pre&gt;
(if (/= d 1)
        t
        nil)
&lt;/pre&gt;

hurts my eyes. I&#039;d also move the local variables into the loop, 
as in 

&lt;pre&gt;
(defun witness (a n)
  (let ((b (- n 1)))
    (loop for i from (integer-length b) downto 0
          for d = 1 then (mod (* d d) n)
          for x = d
          do
          (when (and (= d 1) (/= x 1) (/= x (- n 1)))
            (return-from witness t))
          (when (logbitp i b)
            (setf d (mod (* d a) n)))
          finally (return (/= d 1)))))
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Nice! But that </p>
<pre>
(if (/= d 1)
        t
        nil)
</pre>
<p>hurts my eyes. I&#8217;d also move the local variables into the loop,<br />
as in </p>
<pre>
(defun witness (a n)
  (let ((b (- n 1)))
    (loop for i from (integer-length b) downto 0
          for d = 1 then (mod (* d d) n)
          for x = d
          do
          (when (and (= d 1) (/= x 1) (/= x (- n 1)))
            (return-from witness t))
          (when (logbitp i b)
            (setf d (mod (* d a) n)))
          finally (return (/= d 1)))))
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

