<?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: Quick and Dirty Dynamic Arrays in C</title>
	<atom:link href="http://gurge.com/blog/2006/08/01/quick-and-dirty-dynamic-arrays-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://gurge.com/blog/2006/08/01/quick-and-dirty-dynamic-arrays-in-c/</link>
	<description></description>
	<lastBuildDate>Mon, 26 Nov 2007 10:17:44 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: deepak</title>
		<link>http://gurge.com/blog/2006/08/01/quick-and-dirty-dynamic-arrays-in-c/comment-page-1/#comment-3892</link>
		<dc:creator>deepak</dc:creator>
		<pubDate>Mon, 16 Apr 2007 14:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://gurge.com/blog/2006/08/01/quick-and-dirty-dynamic-arrays-in-c/#comment-3892</guid>
		<description>try dyanamic array in C99.
okay!!!!
its nicely working and nice to use as well.........</description>
		<content:encoded><![CDATA[<p>try dyanamic array in C99.<br />
okay!!!!<br />
its nicely working and nice to use as well&#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BarÄ±ÅŸcan YeÅŸilÃ§iÃ§ek</title>
		<link>http://gurge.com/blog/2006/08/01/quick-and-dirty-dynamic-arrays-in-c/comment-page-1/#comment-60</link>
		<dc:creator>BarÄ±ÅŸcan YeÅŸilÃ§iÃ§ek</dc:creator>
		<pubDate>Sat, 14 Oct 2006 08:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://gurge.com/blog/2006/08/01/quick-and-dirty-dynamic-arrays-in-c/#comment-60</guid>
		<description>Hi,
I just want to say, C doesn&#039;t supports inline variable declaration in a &quot;For Loop&quot; declaration. So, if you want it to be pure C; you should change line &quot;for (int i = 0; i </description>
		<content:encoded><![CDATA[<p>Hi,<br />
I just want to say, C doesn&#8217;t supports inline variable declaration in a &#8220;For Loop&#8221; declaration. So, if you want it to be pure C; you should change line &#8220;for (int i = 0; i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://gurge.com/blog/2006/08/01/quick-and-dirty-dynamic-arrays-in-c/comment-page-1/#comment-8</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 01 Aug 2006 23:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://gurge.com/blog/2006/08/01/quick-and-dirty-dynamic-arrays-in-c/#comment-8</guid>
		<description>Function call overhead makes a difference in places close to the metal, like 
operating systems and device drivers.  These are the most practical of projects,
not academic at all.  (Academics would shy from C wherever possible, just
because the development time is high compared to a more expressive language.
But for some areas of research, like OSes, you have to use C.)

The latest version of Office is written mainly in C#, and even a popular program
like BitTorrent is written in Python.  So I don&#039;t see any place for C++ on a PC any longer.

Are embedded devices a good place for C++?  Maybe, as they simulate what
computing was like in 1992 - 1998 or so.  But this seems like a temporary 
situation; you&#039;d expect more development to move to higher-order application
languages as CPUs grow in power, just like what happened on the PC.  

Indeed, more and more cell phone dev is moving to Java/BREW.  I heard that
TiVo had some kind of Java-based toolkit (though I don&#039;t know what ever happened
to it).  It seems reasonable to assume that other consumer devices will follow suit, if they 
haven&#039;t already.

C++ was OK while it lasted, but it was essentially transitional.  I don&#039;t think anyone 
would pick it if there are the resources to run Java or C#.</description>
		<content:encoded><![CDATA[<p>Function call overhead makes a difference in places close to the metal, like<br />
operating systems and device drivers.  These are the most practical of projects,<br />
not academic at all.  (Academics would shy from C wherever possible, just<br />
because the development time is high compared to a more expressive language.<br />
But for some areas of research, like OSes, you have to use C.)</p>
<p>The latest version of Office is written mainly in C#, and even a popular program<br />
like BitTorrent is written in Python.  So I don&#8217;t see any place for C++ on a PC any longer.</p>
<p>Are embedded devices a good place for C++?  Maybe, as they simulate what<br />
computing was like in 1992 &#8211; 1998 or so.  But this seems like a temporary<br />
situation; you&#8217;d expect more development to move to higher-order application<br />
languages as CPUs grow in power, just like what happened on the PC.  </p>
<p>Indeed, more and more cell phone dev is moving to Java/BREW.  I heard that<br />
TiVo had some kind of Java-based toolkit (though I don&#8217;t know what ever happened<br />
to it).  It seems reasonable to assume that other consumer devices will follow suit, if they<br />
haven&#8217;t already.</p>
<p>C++ was OK while it lasted, but it was essentially transitional.  I don&#8217;t think anyone<br />
would pick it if there are the resources to run Java or C#.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amd</title>
		<link>http://gurge.com/blog/2006/08/01/quick-and-dirty-dynamic-arrays-in-c/comment-page-1/#comment-7</link>
		<dc:creator>amd</dc:creator>
		<pubDate>Tue, 01 Aug 2006 22:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://gurge.com/blog/2006/08/01/quick-and-dirty-dynamic-arrays-in-c/#comment-7</guid>
		<description>There is a very small penalty for using class functions in C++. If you actually care about that overhead, you&#039;re probably working on one of the &quot;esoteric projects&quot; to which I refer. I imagine this sort of project is more common in academia.

If you&#039;re shipping a product for consumers or businesses, this won&#039;t matter to you. I&#039;ve worked on &quot;performance sensitive&quot; code on a variety of embedded devices with small CPUs (details omitted) and I can definitively say that it&#039;s not function call overhead that impacts performance.</description>
		<content:encoded><![CDATA[<p>There is a very small penalty for using class functions in C++. If you actually care about that overhead, you&#8217;re probably working on one of the &#8220;esoteric projects&#8221; to which I refer. I imagine this sort of project is more common in academia.</p>
<p>If you&#8217;re shipping a product for consumers or businesses, this won&#8217;t matter to you. I&#8217;ve worked on &#8220;performance sensitive&#8221; code on a variety of embedded devices with small CPUs (details omitted) and I can definitively say that it&#8217;s not function call overhead that impacts performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://gurge.com/blog/2006/08/01/quick-and-dirty-dynamic-arrays-in-c/comment-page-1/#comment-6</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 01 Aug 2006 22:24:50 +0000</pubDate>
		<guid isPermaLink="false">http://gurge.com/blog/2006/08/01/quick-and-dirty-dynamic-arrays-in-c/#comment-6</guid>
		<description>Adam,

I couldn&#039;t disagree more with this part of your blog post:


C is an obsolete language and there&#039;s really no good reason to use
it. For all but the most esoteric projects, C++ should be used instead
of C. I may elaborate on this theme in a future post.


I think it&#039;s just the opposite.  If you actually care about performance
or are close to the hardware, C is an obvious choice.  The set of people
who should use C is smaller than it used to be, but for some areas there
is no substitute.  (C++&#039;s function call overhead and baffling compiler
make it unsuitable for really performance-sensitive stuff.)

On the other hand, if you&#039;re doing application programming, there are
lots of good substitutes to C++ like Java and C#.  (C shouldn&#039;t even be
an option.)  Python might also be an option.  These languages offer lots
of features absent in C++, while eliminating a lot of stuff most C++
programmers don&#039;t need.  True, they&#039;re probably slower, but who cares?

C++ occupies a place in the performance/expressiveness spectrum that&#039;s
obsolete.  I can&#039;t think of a project today where I&#039;d choose C++.


--Mike!</description>
		<content:encoded><![CDATA[<p>Adam,</p>
<p>I couldn&#8217;t disagree more with this part of your blog post:</p>
<p>C is an obsolete language and there&#8217;s really no good reason to use<br />
it. For all but the most esoteric projects, C++ should be used instead<br />
of C. I may elaborate on this theme in a future post.</p>
<p>I think it&#8217;s just the opposite.  If you actually care about performance<br />
or are close to the hardware, C is an obvious choice.  The set of people<br />
who should use C is smaller than it used to be, but for some areas there<br />
is no substitute.  (C++&#8217;s function call overhead and baffling compiler<br />
make it unsuitable for really performance-sensitive stuff.)</p>
<p>On the other hand, if you&#8217;re doing application programming, there are<br />
lots of good substitutes to C++ like Java and C#.  (C shouldn&#8217;t even be<br />
an option.)  Python might also be an option.  These languages offer lots<br />
of features absent in C++, while eliminating a lot of stuff most C++<br />
programmers don&#8217;t need.  True, they&#8217;re probably slower, but who cares?</p>
<p>C++ occupies a place in the performance/expressiveness spectrum that&#8217;s<br />
obsolete.  I can&#8217;t think of a project today where I&#8217;d choose C++.</p>
<p>&#8211;Mike!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
