[fpc-devel] Suggestion: reference counted objects

Sven Barth pascaldragon at googlemail.com
Mon Sep 22 11:13:44 CEST 2014

Am 22.09.2014 10:38 schrieb "Michael Schnell" <mschnell at lumino.de>:
> On 09/20/2014 08:33 PM, Giuliano Colla wrote:
>> Can you explain how reference counting can be safely implemented in a
parallel multithreaded environment, without heavily affecting performance?
> *Very* good point !
> IMHO a by far more advantageous feature to be added than ref-counted
objects would be RTL support and Syntax candy for "parallel Loops", and the
necessary support stuff like "Future variables" (or similar thingies).
> All new mid-level hardware now has art least four cores and hence
performance would benefit from such features in may projects.
> So maybe "ARC" and "parallel" paradigms should be discussed together so
that no mutual problems are introduced.

Interfaces, strings and arrays already work well in multi threaded contexts
and ARC will use the same mechanisms here, so there is no need to discuss
"parallel" and ARC together.

Note: ARC doesn't change that the developer him-/herself needs to make
his/her classes threadsafe. ARC only "protects" the references.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140922/5996e73a/attachment.html>

More information about the fpc-devel mailing list