StarSqueakMorph>>patchesDo: ... does it work in parallel?

Maloney, John John.Maloney at disney.com
Sat May 4 12:20:27 UTC 2002


You're quite right, patchesDo: does not currently snapshot the old state as
it should. You can see this in the way the forest fire propagates much
farther than it should in each cycle.

	-- John


At 9:31 PM -0400 5/2/02, Bijan Parsia wrote:
>My question is that if you mutate a patch inside the block argument to
>#patchesDo: are you promised that the next patch evaluated will see the
>"old" state of the world?
>
>If the patches in a world are supposed to be executed *in parallel*, then
>the fact that we are actually evaluating them sequentially shouldn't
>affect the results.
>
>Nothing I see seems to make this so. I would think some sort of
>"currentState/nextState" setup would be needed, with #get: pulling from
>the currentState and #set: setting into the nextState.
>
>Cheers,
>Bijan Parsia.





More information about the Squeak-dev mailing list