POV-Ray : Newsgroups : povray.off-topic : Thinking about Languages again Server Time
1 Oct 2024 20:23:16 EDT (-0400)
  Thinking about Languages again (Message 41 to 42 of 42)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: Thinking about Languages again
Date: 30 Mar 2008 01:58:54
Message: <47ef3a2d@news.povray.org>
Btw, it seems that I am not the only one who realizes the problem of
delayed object destruction. In fact, a name has been coined for when
an object is destroyed immediately when it goes out of scope in a GC
environment: Deterministic finalization.

  One example of someone else discussing this same subject, from the point
of view of .NET:
 
http://www.deez.info/sengelha/2005/02/11/deterministic-finalization-in-garbage-collected-languages/

  Probably more examples can be found by googling "deterministic finalization".

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: Thinking about Languages again
Date: 30 Mar 2008 14:59:25
Message: <47eff11d$1@news.povray.org>
Warp wrote:
>   Btw, it seems that I am not the only one who realizes the problem of
> delayed object destruction. 

Heh. I think most everyone realizes it.  :-)  People just aren't sure of 
any good(*) way of solving it.

Indeed, I've seen research in Java where they look at the generated 
code, determine that a pointer to an object *must* be the last pointer 
(e.g., it hasn't been assigned to an instance variable, it hasn't been 
passed to something separately compiled that might have stored it, etc) 
and GC that object as soon as it goes out of scope. Apparently this 
provides even *better* performance than GC alone.  Basically moving (via 
optimization rather than via asking the programmer) the object to the 
stack instead of the heap.

(*) Where "good" encompasses "runs on popular OSes" and "works with 
"normal" languages.

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.