OpenAmiga (810/964)

From:Staf Verhaegen
Date:25 Sep 2000 at 08:11:35
Subject:Re: AMIOPEN: XML and Java, a uncharted territory?

Rudi Chiarito wrote:
>
> On Fri, Sep 22, 2000 at 10:46:54PM +0100, Jim Peters wrote:
> > If, as you suggest, Tao's JVM does a really good job of real-time
> > garbage collection, then I am more than willing to throw out
> > reference-counting. I'm cautious, still, until I've tried it for
> > myself, and got an understanding of the algorithm (if possible).
>
> I've only tried it with one program, which, though, was expressely
> designed to stress the collector. That's a very good start, although I
> suppose more tests would be necessary - I don't know of any. At the same
> time I'm sure Tao has done a lot of work in this area, as it's one of the
> questions they must have been asked more often from potential clients.
>
> The documentation (jintro.pdf and usingjava.pdf) says the collector
> uses a mark and sweep approach and, more importantly, can be interrupted
> by system events. It also goes into some details about techniques used to
> reduce the impact of GC on system performance.
>
> > To me garbage collection is a compromise - it's never going to be as
> > efficient as C-code with all the alloc()s and free()s in the right
>
> But in large systems you eventually end with a lot of code that deals
> with nothing but allocations and deallocations. And with truely reusable
> software one has always to check who is suppose to free or allocate
> stuff.
>

On the plus side, it forces you to think about memory management and often
this way bad design descisions are found.

Staf.

+----------------------------------------+-----------------------------+
|Staf Verhaegen (staf.verhaegen@imec.be) |ADRESS: IMEC vzw. - ASP/LITHO|
|tel: 016/ 281 783 | Kapeldreef 75 |
|fax: 016/ 281 214 | 3001 Leuven (Belgium)|
+----------------------------------------+-----------------------------+
For every tool there are at least 2 uses: the one it was designed for
and the other for which it wasn't.
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html