[e-lang] Adding Reactor to Lamport Slot without immediate send?

Mark S. Miller markm at cs.jhu.edu
Sat Dec 9 19:27:22 CST 2006


Martin Scheffler wrote:
> I'm using a lamport slot to distribute the state of an object to a different
> machine. I initialize the proxy object on the client with the current value of
> the lamport slot. Then I subscribe the proxy to the lamport by adding it with
> whenUpdated(). At this point, the lamport slot immediately sends its value to
> the proxy, because its generation value at this point is >0. Maybe it would
> make sense to make the generation value of the slot accessible? Then I could
> subscribe the proxy to updates of the lamport slot as of now.

Martin Scheffler wrote:
> 2006/12/6, Kevin Reid <kpreid at mac.com>:
> 
>>    ? slot.getValue()
>>   # value: "foo"
>>
>>    ? slot.getCurrent()
>>    # value: ["foo", 153]
> 
> 
> That would be great.


I've added this. It's in the SVN head, and will be in 0.8.37f -- coming soon.
Thanks for the suggestion.

-- 
Text by me above is hereby placed in the public domain

     Cheers,
     --MarkM


More information about the e-lang mailing list