<?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 on: Automatically determining PageRank, or, unsigned integers in PHP</title>
	<atom:link href="http://www.razzed.com/2009/04/07/php-signed-integer-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.razzed.com/2009/04/07/php-signed-integer-php/</link>
	<description>Blunt Musings: Analytics, Search, Marketing, and Privacy. And other random thoughts.</description>
	<lastBuildDate>Tue, 13 Dec 2011 01:23:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Ron</title>
		<link>http://www.razzed.com/2009/04/07/php-signed-integer-php/comment-page-1/#comment-464</link>
		<dc:creator>Ron</dc:creator>
		<pubDate>Fri, 02 Sep 2011 19:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.razzed.com/?p=308#comment-464</guid>
		<description>kent: I wouldn&#039;t have responded had I not stumbled upon this very same post. It&#039;s not like me to let someone have the last word.

However, I did have some time to think about this, and realise now that, aside from third-party solutions such as your own, there appear to be only two ways to resolve this issue:

1) evolve PHP to support unsigned integers, which would require a reworking of the protocols, API and future developer PHP code;
2) develop a built-in class to handle additional precision (in machine code, it would be faster than my pappy on his honeymoon).

I did find this tasty link, too: &lt;a href=&quot;http://stackoverflow.com/questions/872424/unsigned-int-to-signed-in-php&quot; rel=&quot;nofollow&quot;&gt;http://stackoverflow.com/questions/872424/unsigned-int-to-signed-in-php&lt;/a&gt;

Regarding your library, I trust my post didn&#039;t appear critical. Real programmers use whatever tools best serve their needs in the moment. I never thought I&#039;d pay Java any attention, but now I find myself enjoying coding in it. This is a sure sign Armageddon&#039;s coming fast.</description>
		<content:encoded><![CDATA[<p>kent: I wouldn&#8217;t have responded had I not stumbled upon this very same post. It&#8217;s not like me to let someone have the last word.</p>
<p>However, I did have some time to think about this, and realise now that, aside from third-party solutions such as your own, there appear to be only two ways to resolve this issue:</p>
<p>1) evolve PHP to support unsigned integers, which would require a reworking of the protocols, API and future developer PHP code;<br />
2) develop a built-in class to handle additional precision (in machine code, it would be faster than my pappy on his honeymoon).</p>
<p>I did find this tasty link, too: <a href="http://stackoverflow.com/questions/872424/unsigned-int-to-signed-in-php" rel="nofollow">http://stackoverflow.com/questions/872424/unsigned-int-to-signed-in-php</a></p>
<p>Regarding your library, I trust my post didn&#8217;t appear critical. Real programmers use whatever tools best serve their needs in the moment. I never thought I&#8217;d pay Java any attention, but now I find myself enjoying coding in it. This is a sure sign Armageddon&#8217;s coming fast.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kent</title>
		<link>http://www.razzed.com/2009/04/07/php-signed-integer-php/comment-page-1/#comment-450</link>
		<dc:creator>kent</dc:creator>
		<pubDate>Tue, 09 Aug 2011 18:18:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.razzed.com/?p=308#comment-450</guid>
		<description>@Ron: Thanks for your comment. I&#039;m curious: How would you determine whether to deal with an integer as signed or unsigned automatically, and always make the right choice? I am unsure how the compiler could intuit this without some sort of hint.

As for the library, the sole purpose was to solve this problem, no more no less. If I really needed speed, I&#039;d do it in C, or I&#039;d extend PHP to do it as a plugin. I didn&#039;t add multiply and divide because I didn&#039;t need it for the problem at hand.</description>
		<content:encoded><![CDATA[<p>@Ron: Thanks for your comment. I&#8217;m curious: How would you determine whether to deal with an integer as signed or unsigned automatically, and always make the right choice? I am unsure how the compiler could intuit this without some sort of hint.</p>
<p>As for the library, the sole purpose was to solve this problem, no more no less. If I really needed speed, I&#8217;d do it in C, or I&#8217;d extend PHP to do it as a plugin. I didn&#8217;t add multiply and divide because I didn&#8217;t need it for the problem at hand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron</title>
		<link>http://www.razzed.com/2009/04/07/php-signed-integer-php/comment-page-1/#comment-449</link>
		<dc:creator>Ron</dc:creator>
		<pubDate>Tue, 09 Aug 2011 17:45:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.razzed.com/?p=308#comment-449</guid>
		<description>Fellow developer: Unfortunately, employing basic arithmetic operations on strings doesn&#039;t work out so well. For instance, say you need to work with 32-bit RGBA values, and you needed to employ 32-bit unsigned math on them. Without a whole lot of fudging, you can kiss your little project good-bye.

It&#039;s funny that it wasn&#039;t until now, after 10 years of on-and-off PHP coding, that I discovered this discrepancy. I never thought I would refer to PHP&#039;s programmers as lazy, but this takes the cake. PHP should inherently know whether to deal with an integer as signed or unsigned; the CPU does, so PHP can.

By the way, poster, cool class. You&#039;re right about its speed, though. PHP is still interpreted, bytecode or not, and having this functionality coded into PHP would be much quicker. I&#039;m not at all surprised you didn&#039;t code in float, multiply and divide operations.

(OMG, Razzed needs JS and cookies to post a message? Ok, I&#039;ll add you guys to the list with PHP. Thanks.)</description>
		<content:encoded><![CDATA[<p>Fellow developer: Unfortunately, employing basic arithmetic operations on strings doesn&#8217;t work out so well. For instance, say you need to work with 32-bit RGBA values, and you needed to employ 32-bit unsigned math on them. Without a whole lot of fudging, you can kiss your little project good-bye.</p>
<p>It&#8217;s funny that it wasn&#8217;t until now, after 10 years of on-and-off PHP coding, that I discovered this discrepancy. I never thought I would refer to PHP&#8217;s programmers as lazy, but this takes the cake. PHP should inherently know whether to deal with an integer as signed or unsigned; the CPU does, so PHP can.</p>
<p>By the way, poster, cool class. You&#8217;re right about its speed, though. PHP is still interpreted, bytecode or not, and having this functionality coded into PHP would be much quicker. I&#8217;m not at all surprised you didn&#8217;t code in float, multiply and divide operations.</p>
<p>(OMG, Razzed needs JS and cookies to post a message? Ok, I&#8217;ll add you guys to the list with PHP. Thanks.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fellow developer</title>
		<link>http://www.razzed.com/2009/04/07/php-signed-integer-php/comment-page-1/#comment-274</link>
		<dc:creator>Fellow developer</dc:creator>
		<pubDate>Thu, 24 Feb 2011 18:08:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.razzed.com/?p=308#comment-274</guid>
		<description>You&#039;re class is cool but I&#039;ve found a different solution.
In the end I&#039;ve used something like:

sprintf(&#039;%u&#039;, $num)

This code will return the unsigned representation of the number (and that&#039;s a string btw)</description>
		<content:encoded><![CDATA[<p>You&#8217;re class is cool but I&#8217;ve found a different solution.<br />
In the end I&#8217;ve used something like:</p>
<p>sprintf(&#8216;%u&#8217;, $num)</p>
<p>This code will return the unsigned representation of the number (and that&#8217;s a string btw)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fellow developer</title>
		<link>http://www.razzed.com/2009/04/07/php-signed-integer-php/comment-page-1/#comment-273</link>
		<dc:creator>Fellow developer</dc:creator>
		<pubDate>Thu, 24 Feb 2011 17:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.razzed.com/?p=308#comment-273</guid>
		<description>That&#039;s fairly impressive.
I mean, I was using seomoz data too but I needed to get pageranks (which is not covered by their api)
I wrote a c++ application to calculate the checksum - but then I was asked to port it to php.

And I got stuck with the unsigned problem too. :)
Thanks a bunch for this solution.</description>
		<content:encoded><![CDATA[<p>That&#8217;s fairly impressive.<br />
I mean, I was using seomoz data too but I needed to get pageranks (which is not covered by their api)<br />
I wrote a c++ application to calculate the checksum &#8211; but then I was asked to port it to php.</p>
<p>And I got stuck with the unsigned problem too. :)<br />
Thanks a bunch for this solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: beli</title>
		<link>http://www.razzed.com/2009/04/07/php-signed-integer-php/comment-page-1/#comment-127</link>
		<dc:creator>beli</dc:creator>
		<pubDate>Wed, 15 Jul 2009 16:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.razzed.com/?p=308#comment-127</guid>
		<description>I also had few problems like yours and I did not find any appropriate solutions. I will try your source as soon as I can get. I hope it will solve some of my problems. Anyway, I will notify you.

&lt;a href=&quot;http://www.leodata.de/webdesign&quot; rel=&quot;nofollow&quot;&gt;
Webdesign Stuttgart
&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I also had few problems like yours and I did not find any appropriate solutions. I will try your source as soon as I can get. I hope it will solve some of my problems. Anyway, I will notify you.</p>
<p><a href="http://www.leodata.de/webdesign" rel="nofollow"><br />
Webdesign Stuttgart<br />
</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

