Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Hans-Peter Diettrich
Mark Morgan Lloyd schrieb: Boian Mitov wrote: I think parallel processing belongs in library implementations. I have reservations, based in part on the fact that other language implementations are prepared to assume responsibility for parallelisation, in part on experience with e.g. APL

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Florian Klämpfl
If the time spent in this thread had been spent in coding, FPC would have already ARC. The list has approx. 600 members, 200 message were written. If each of the 600 members spent on average 1 min reading this thread, this is 2000 man-hour, i. e. approx. 1 MY :)

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Sandro Cumerlato
I strongly agree! On 27 Sep 2014 12:23, Florian Klämpfl flor...@freepascal.org wrote: If the time spent in this thread had been spent in coding, FPC would have already ARC. The list has approx. 600 members, 200 message were written. If each of the 600 members spent on average 1 min reading

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Mark Morgan Lloyd
Hans-Peter Diettrich wrote: Mark Morgan Lloyd schrieb: Boian Mitov wrote: I think parallel processing belongs in library implementations. I have reservations, based in part on the fact that other language implementations are prepared to assume responsibility for parallelisation, in part

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Sven Barth
On 26.09.2014 22:36, Boian Mitov wrote: See... this is the point. In order to properly implement parallel loops etc. even in their limited form the compiler needs specific RTL support. So we break one of the basic principles that the compiler is the root, and the RTL is a library compiled in it.

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Sven Barth
On 25.09.2014 20:13, Chriss Kalogeropoulos wrote: Hi again, How would you handle the case of a user adding an interface on a class marked as reference counted (like a tstringlist descendant, TArcStringList) and then inherits from that and implements the IUnknown TFooStringlist =class

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Sven Barth
On 27.09.2014 12:22, Florian Klämpfl wrote: If the time spent in this thread had been spent in coding, FPC would have already ARC. The list has approx. 600 members, 200 message were written. If each of the 600 members spent on average 1 min reading this thread, this is 2000 man-hour, i. e.

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Hans-Peter Diettrich
Florian Klämpfl schrieb: If the time spent in this thread had been spent in coding, FPC would have already ARC. The list has approx. 600 members, 200 message were written. If each of the 600 members spent on average 1 min reading this thread, this is 2000 man-hour, i. e. approx. 1 MY :)

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Hans-Peter Diettrich
Sven Barth schrieb: There are however some nasty problems inside constructors and destructors, because Self is reference counted as well (and should be after all as we don't want the instance to be destroyed behind our backs suddenly). IMO before the end of a constructor, and before the

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Sven Barth
On 27.09.2014 16:06, Hans-Peter Diettrich wrote: Sven Barth schrieb: There are however some nasty problems inside constructors and destructors, because Self is reference counted as well (and should be after all as we don't want the instance to be destroyed behind our backs suddenly). IMO

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Constantine Yannakopoulos
On Sat, Sep 27, 2014 at 4:36 PM, Sven Barth pascaldra...@googlemail.com wrote: There are however some nasty problems inside constructors and destructors, because Self is reference counted as well (and should be after all as we don't want the instance to be destroyed behind our backs suddenly).

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Sven Barth
On 27.09.2014 17:00, Constantine Yannakopoulos wrote: On Sat, Sep 27, 2014 at 4:36 PM, Sven Barth pascaldra...@googlemail.com mailto:pascaldra...@googlemail.com wrote: There are however some nasty problems inside constructors and destructors, because Self is reference counted as well

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Marco van de Voort
In our previous episode, Sven Barth said: It looks to me like inside methods Self doesn't deserve refcounting, because a method can be invoked only with an existing instance, which will stay alive at least until the call returns. That's the thing I'm not yet entirely sure about. Though

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Hans-Peter Diettrich
Marco van de Voort schrieb: In our previous episode, Sven Barth said: It looks to me like inside methods Self doesn't deserve refcounting, because a method can be invoked only with an existing instance, which will stay alive at least until the call returns. That's the thing I'm not yet entirely

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-27 Thread Sven Barth
On 27.09.2014 21:22, Hans-Peter Diettrich wrote: Marco van de Voort schrieb: In our previous episode, Sven Barth said: It looks to me like inside methods Self doesn't deserve refcounting, because a method can be invoked only with an existing instance, which will stay alive at least until the