Re:Playing with Lasp and CRDTs
by rdtsc on Tuesday January 02, 2018 @03:12AM
(#16050610)
Very nice. Thanks for sharing!
I like all the steps shown and the extra comments with output values and explanation of what's going on.
One question -- saw that all update operations take self() as an argument. In the code saw it was the "Actor". Is that always a pid of the calling processes or can it be anything like an integer or a reference. If this whole thing was running in a server would that be the ID of the client or still be generated locally on the server from the process running the request.
I like all the steps shown and the extra comments with output values and explanation of what's going on.
One question -- saw that all update operations take self() as an argument. In the code saw it was the "Actor". Is that always a pid of the calling processes or can it be anything like an integer or a reference. If this whole thing was running in a server would that be the ID of the client or still be generated locally on the server from the process running the request.