On Thu, Mar 24, 2016 at 4:33 PM, Denis Kudriashov <[email protected]>
wrote:

>
> 2016-03-24 19:15 GMT+01:00 [email protected] <[email protected]>:
>
>> Awesome. Things are looking good.
>>
>> Now, just have to find time to use all of this :-)
>>
>
> I just should say that I am not succeed to provide really safe ghosts.
> If you will try to implement new kind of proxy (on top of Ghost) it is
> possible to hang image.
> Problem that when you make some mistake in implementation it usually lead
> to infinite recursion and interrupt usually not helps because opened
> debugger produces new messages to ghost which produces another recursion
> due to original errors. And errors are not only exceptions but some
> unexpected messages to proxies. For example if you will use Set to
> implement proxy behaviour (for some reason) it will send #= and #hash to
> proxy when you will try to add it.
>

Exactly. That's why Marea had to extend Fuel because otherwise, when I was
serializing a graph that contained proxies, the Fuel message sends to the
proxy would be intercepted and cause the swap in! hahahah. Therefore, in
Marea I extend Fuel to use a custom dictionary and a custom cluster for
proxies :)

Ohh that's another interesting example that would be nice to be added to
this new Ghost.


> There are tools now to minimize such cases. For example standart meta
> level will not intercept messages from debugger. But as soon as you start
> experiment with empty meta level you will  get such problems.
> This week Guille Polito start to use Ghost for new proxies and he was not
> happy due to this kind of problems. Maybe together we will find some
> solution how to make ghosts safe.
>
>


-- 
Mariano
http://marianopeck.wordpress.com

Reply via email to