Re: Complexity of new hardware

"Andrew Vidler" <[email protected]>
Newsgroups gmane.games.devel.algorithms
Message-ID <B6E1D79F52AC4255B99F976A70361832@andrewvpc>
> > To me, "ownership and lifetime" is an important concept in software 
> > engineering.  When is something created, when is it 
> destroyed and what 
> > higher level object is accountable for it? Garbage 
> collection offers 
> > ONE answer to the question of ownership and lifetime:
> > Everyone referencing something share ownership and the 
> lifetime lasts 
> > until it can't be referred to anymore.
> 
> I think that's one of the issues with GC - it conflates 
> ownership and lifetime. Deterministic finalization can 
> certainly be working independently from actual GC. (Which 
> would mean you only worry about lifetime, or ownership, when 
> necessary. As opposed to always - the default C++ model - or 
> never - the default GC model.

I'm not sure I agree with this. If you "own" some resource then it is your
responsibility to "finalise" it. If some other system finalises your object
then you never actually had proper ownership of it to start with.

> >  I feel that having only one answer to the ownership and lifetime 
> > question is very limiting on expressive power. In many cases, a 
> > different approach to ownership and lifetime will give you 
> a superior 
> > design. We sure don't want to live with inferior designs 
> because the 
> > language has a dogmatic and limiting view of ownership and lifetime.
> 
> As anything, it's a trade-off. If I can get a game to market 
> months faster (with the same quality level), I don't care 
> about inferior design. (OK, I'll still complain and moan, but 
> my rational side can see the benefits ;)

IME, for anything other than the smallest projects, inferior design *never*
leads to your product shipping faster.

In general I find that if you're designing a system and you haven't thought
through what object(s) own every other object(s) then you've got it wrong
already. GC just allows you to be lazy in this regard.

(Note that I'm not arguing against shared ownership - just the enforcing of
this style onto everything).

Cheers,
Andrew.




------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
GDAlgorithms-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.