<?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: Premature Optimization</title>
	<atom:link href="http://www.geekherocomic.com/2009/05/11/premature-optimization/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekherocomic.com/2009/05/11/premature-optimization/</link>
	<description>The geeky adventures of Randie</description>
	<lastBuildDate>Tue, 09 Feb 2010 12:36:17 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: etb</title>
		<link>http://www.geekherocomic.com/2009/05/11/premature-optimization/comment-page-1/#comment-2131</link>
		<dc:creator>etb</dc:creator>
		<pubDate>Thu, 14 May 2009 20:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekherocomic.com/?p=759#comment-2131</guid>
		<description>what AhmedG meant is that free() releases the memory allocated with malloc().

Saying `allocated using C&#039; may let think that this code has sense:
int a;
free(&amp;a);
while it does not.

The point is: malloc() gives you a piece of memory, and this piece of memory will be there until you release it explicitly with free().
If you lose the address of the piece of memory you cannot use it anymore, but it will be still there. It is wasted space.</description>
		<content:encoded><![CDATA[<p>what AhmedG meant is that free() releases the memory allocated with malloc().</p>
<p>Saying `allocated using C&#8217; may let think that this code has sense:<br />
int a;<br />
free(&amp;a);<br />
while it does not.</p>
<p>The point is: malloc() gives you a piece of memory, and this piece of memory will be there until you release it explicitly with free().<br />
If you lose the address of the piece of memory you cannot use it anymore, but it will be still there. It is wasted space.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AhmedG</title>
		<link>http://www.geekherocomic.com/2009/05/11/premature-optimization/comment-page-1/#comment-2115</link>
		<dc:creator>AhmedG</dc:creator>
		<pubDate>Wed, 13 May 2009 11:53:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekherocomic.com/?p=759#comment-2115</guid>
		<description>@karmanya

 malloc() is a function in C used to &quot;allocate&quot; memory (set it aside for a specific purpose), free() is a function in C that frees the memory allocated using C. 

I&#039;m not well veresed in C so I&#039;m not sure how much that helps. Perhaps Salvatore can explain further.</description>
		<content:encoded><![CDATA[<p>@karmanya</p>
<p> malloc() is a function in C used to &#8220;allocate&#8221; memory (set it aside for a specific purpose), free() is a function in C that frees the memory allocated using C. </p>
<p>I&#8217;m not well veresed in C so I&#8217;m not sure how much that helps. Perhaps Salvatore can explain further.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wareya</title>
		<link>http://www.geekherocomic.com/2009/05/11/premature-optimization/comment-page-1/#comment-2113</link>
		<dc:creator>wareya</dc:creator>
		<pubDate>Wed, 13 May 2009 10:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekherocomic.com/?p=759#comment-2113</guid>
		<description>Premature Optimization, leaks like there&#039;s no tomorrow, leaking preferable to taking time to free()... I smell a pun!</description>
		<content:encoded><![CDATA[<p>Premature Optimization, leaks like there&#8217;s no tomorrow, leaking preferable to taking time to free()&#8230; I smell a pun!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dantotheman</title>
		<link>http://www.geekherocomic.com/2009/05/11/premature-optimization/comment-page-1/#comment-2112</link>
		<dc:creator>dantotheman</dc:creator>
		<pubDate>Wed, 13 May 2009 06:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekherocomic.com/?p=759#comment-2112</guid>
		<description>Ahh, this explains his preffernce for VB...</description>
		<content:encoded><![CDATA[<p>Ahh, this explains his preffernce for VB&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karmanya</title>
		<link>http://www.geekherocomic.com/2009/05/11/premature-optimization/comment-page-1/#comment-2111</link>
		<dc:creator>karmanya</dc:creator>
		<pubDate>Tue, 12 May 2009 15:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekherocomic.com/?p=759#comment-2111</guid>
		<description>I didn&#039;t get this one.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t get this one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wired</title>
		<link>http://www.geekherocomic.com/2009/05/11/premature-optimization/comment-page-1/#comment-2109</link>
		<dc:creator>wired</dc:creator>
		<pubDate>Tue, 12 May 2009 11:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekherocomic.com/?p=759#comment-2109</guid>
		<description>owned =]</description>
		<content:encoded><![CDATA[<p>owned =]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: progfou</title>
		<link>http://www.geekherocomic.com/2009/05/11/premature-optimization/comment-page-1/#comment-2107</link>
		<dc:creator>progfou</dc:creator>
		<pubDate>Tue, 12 May 2009 04:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekherocomic.com/?p=759#comment-2107</guid>
		<description>@larethian for that, using static storage for everything, he would have need to know the concept of virtual memory, allowing to use more space than the single RAM can stand... do you really think he knows that? ;-)</description>
		<content:encoded><![CDATA[<p>@larethian for that, using static storage for everything, he would have need to know the concept of virtual memory, allowing to use more space than the single RAM can stand&#8230; do you really think he knows that? ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: larethian</title>
		<link>http://www.geekherocomic.com/2009/05/11/premature-optimization/comment-page-1/#comment-2106</link>
		<dc:creator>larethian</dc:creator>
		<pubDate>Tue, 12 May 2009 01:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekherocomic.com/?p=759#comment-2106</guid>
		<description>Ross knows how to use malloc()? Shouldn&#039;t he be using static storage for everything? And putting everything in global space for easy access muahahahaha!

but like Roman said, the punchline was stupendous! =)</description>
		<content:encoded><![CDATA[<p>Ross knows how to use malloc()? Shouldn&#8217;t he be using static storage for everything? And putting everything in global space for easy access muahahahaha!</p>
<p>but like Roman said, the punchline was stupendous! =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roman Cheplyaka</title>
		<link>http://www.geekherocomic.com/2009/05/11/premature-optimization/comment-page-1/#comment-2104</link>
		<dc:creator>Roman Cheplyaka</dc:creator>
		<pubDate>Mon, 11 May 2009 17:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekherocomic.com/?p=759#comment-2104</guid>
		<description>&quot;It leaks like there&#039;s no tomorrow.&quot; -- excellent :)</description>
		<content:encoded><![CDATA[<p>&#8220;It leaks like there&#8217;s no tomorrow.&#8221; &#8212; excellent :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GNUbie</title>
		<link>http://www.geekherocomic.com/2009/05/11/premature-optimization/comment-page-1/#comment-2103</link>
		<dc:creator>GNUbie</dc:creator>
		<pubDate>Mon, 11 May 2009 12:13:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekherocomic.com/?p=759#comment-2103</guid>
		<description>Boris&#039; cover is getting thinner and thinner.  I think we will soon see the end of his mission....</description>
		<content:encoded><![CDATA[<p>Boris&#8217; cover is getting thinner and thinner.  I think we will soon see the end of his mission&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

