[fpc-devel] Modernising Pascal
Jonas Maebe
jonas at zeus.ugent.be
Thu Feb 24 14:01:32 CET 2005
On 24 feb 2005, at 13:51, Jamie McCracken wrote:
>> IMO the best solution for (almost) all of your problems were garbage
>> collection. GC is part of Oberon, and it would fit into .NET/DotGNU as
>> well.
>
> GC is very inefficient with memory and current implementations tend to
> cost a lot performance wise too.
It's *much* faster than reference counting everything. Reference
counting is more or less the slowest garbage collection technique there
is (except if only very few objects have to garbage collected). It also
can't deal with circular references.
> GC gets a lot slower with the more objects you create.
Reference counting too.
> Mixing unmanaged with managed code cause severe performance issues
> (marshalling penalties calling ummanaged c functions)
>
> Interoperability with C gets increasingly difficult. Writing bindings
> becomes much more complicated and time consuming.
You get the same problem if you pass a reference counted structure to C
(or any other language).
Jonas
More information about the fpc-devel
mailing list