No, not true.  It is because the C++ developer is responsible for freeing
memory that has been allocated (new, free operators) that C++ does not need
a garbage collector.

In java , memory deallocation is automatic -- it is done by the garbage
collector.  Keeping track of memory that is no longer referenced by the
running program and therefore needs to be freed is an expensive operation
that C++ is not burdened with. See

http://www.javaworld.com/javaworld/jw-08-1996/jw-08-gc.html

for more on this topic.

--Doug

--
Doug Roberts, RTI International
[EMAIL PROTECTED]
[EMAIL PROTECTED]
505-455-7333 - Office
505-670-8195 - Cell


Date: Sun, 26 Nov 2006 09:50:49 +1100
From: Russell Standish <[EMAIL PROTECTED]>
To: The Friday Morning Applied Complexity Coffee Group <[email protected]>
Subject: Re: [FRIAM] deployable and open source ABMs
Mail-Followup-To: The Friday Morning Applied Complexity Coffee Group
        <[email protected]>
In-Reply-To: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.4.2.1i

On Sat, Nov 25, 2006 at 12:53:18PM -0700, Douglas Roberts wrote:
>   3. Java's performance, because of it's garbage collection design, will
>   always be inferior to that of C, Fortran, or C++, which, as you point
out,
>   are the languages of choice for HPC implementations.

I heard this one said before, but don't really understand it. Sure
unpredictability of garbage collection is problematic for interactive
applications, but for batch processing runs this is not a factor.

Isn't GC no more or less expensive than C++'s delete operator? Or is
the issue that in C++ one can supply one's own allocators for objects,
optimising it for certain cases (eg all objects being the same size
for instance).

Cheers


----------------------------------------------------------------------------
A/Prof Russell Standish                  Phone 0425 253119 (mobile)
Mathematics
UNSW SYDNEY 2052                         [EMAIL PROTECTED]
Australia                                http://www.hpcoders.com.au

----------------------------------------------------------------------------




----- End forwarded message -----

--


----------------------------------------------------------------------------
A/Prof Russell Standish                  Phone 0425 253119 (mobile)
Mathematics
UNSW SYDNEY 2052                         [EMAIL PROTECTED]
Australia                                http://www.hpcoders.com.au

----------------------------------------------------------------------------


============================================================
FRIAM Applied Complexity Group listserv
Meets Fridays 9a-11:30 at cafe at St. John's College
lectures, archives, unsubscribe, maps at http://www.friam.org

============================================================
FRIAM Applied Complexity Group listserv
Meets Fridays 9a-11:30 at cafe at St. John's College
lectures, archives, unsubscribe, maps at http://www.friam.org

Reply via email to