in reply to Re^5: Overriding bless for inside-out object safety
in thread Overriding bless for inside-out object safety
The technique can and should be fairly explored, not dismissed out of hand due to faulty or sub-optimal implementations.
I agree wholeheartedly. I've been quietly following your progress in anticipation of trying out the results.
With respect to the thread safety. I am not convinced is that there is either a need for, or a benefit to, sharing objects between threads. I believe that most everything that can be done by doing so, can also be done, and is (may be) better done through a "messaging" interface.
My opinion is based upon the results of various prototypes I created for a distributed object architecture several years ago. Cooperating objects could variously exist as
We tried various mechanisms, including cross-threaded objects (sic), and on the basis of my experiences then, cross-threaded objects simply ended up getting cross-threaded. Programmed absolutely correctly, they worked reasonably well, but the requirements for the application programmers and object constructors to understand and deploy locking and synchronisation at various levels, meant that they became too easily subject to deadlocks.
We opted for a message passing paradigm which allowed both application and object writers to essentially ignore locking and synchronisation issues and the SendMessage()/ProcessMessage() infrastructure took care of all that in a dependable manner while still allowing full advantage to be taken of asynchronism.
In practice, the perceived costs of message-ifying communications, were more than compensated for (in performance terms) by the avoidance of "belt&braces", unnecessary locking and sync-ing. In terms of reliability and programmer productivity, there was no contest.
So, my opinion is based upon experience, albeit possibly not entirely relevant experience, but I have followed your progress with interest, and open mind, and a desire to try out the results.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Overriding bless for inside-out object safety
by xdg (Monsignor) on Jan 04, 2006 at 21:13 UTC | |
by BrowserUk (Patriarch) on Jan 04, 2006 at 22:16 UTC | |
by xdg (Monsignor) on Jan 05, 2006 at 00:54 UTC |