[FRIAM] [friam-owner at redfish.com: Re: deployable and open source ABMs]
Douglas Roberts
doug at parrot-farm.net
Sat Nov 25 20:23:37 EST 2006
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
droberts at rti.org
doug at parrot-farm.net
505-455-7333 - Office
505-670-8195 - Cell
> Date: Sun, 26 Nov 2006 09:50:49 +1100
> From: Russell Standish <lists at hpcoders.com.au>
> To: The Friday Morning Applied Complexity Coffee Group <friam at redfish.com>
> Subject: Re: [FRIAM] deployable and open source ABMs
> Mail-Followup-To: The Friday Morning Applied Complexity Coffee Group
> <friam at redfish.com>
> In-Reply-To: <f16528920611251153h5668effas7c32a37699fabbbf at mail.gmail.com>
> 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 hpcoder at hpcoders.com.au
> Australia http://www.hpcoders.com.au
>
> ----------------------------------------------------------------------------
>
>
>
>
> ----- End forwarded message -----
>
> --
>
>
> ----------------------------------------------------------------------------
> A/Prof Russell Standish Phone 0425 253119 (mobile)
> Mathematics
> UNSW SYDNEY 2052 hpcoder at hpcoders.com.au
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/friam_redfish.com/attachments/20061125/4979c8b5/attachment.html
More information about the Friam
mailing list