Re: C is too old? opinions?



Phlip wrote:
goose wrote:

Now I'm really curious; how does the garbage collector run in
deterministic time? Is it possibly a case of running the gc after every X
operations knowing that no more than Y memory has to be released and that
doing that will require no more than Z time?

Making a garbage collector deterministic would defeat the point of a
garbage collector - trading programming time for run time.

If the programmer must specify "please collect this and this object, now,
before the next real-time strobe", they might as well use pointers and
'free()'...

There's no reason why the programmer must specify that. It can be
dealt with entirely inside the garbage collector. The GC system can
use a real-time algorithm and gaurantee that any allocation uses only
some amount of time X. See my reply to goose.

.



Relevant Pages

  • Re: C is too old? opinions?
    ... operations knowing that no more than Y memory has to be released and that ... garbage collector - trading programming time for run time. ...
    (comp.programming)
  • Re: C is too old? opinions?
    ... > languages that have a built-in garbage collector are very problematic ... > because the garbage collector might "wake up" at the wrong moment, ... in deterministic time? ... after every X operations knowing that no more than Y ...
    (comp.programming)