Ulf Wiger

Results 135 comments of Ulf Wiger

I'll look into this. I'm leaving for a trip to the US today, which will either mean that I'll find some time, or have less time - not sure yet.

Well, if you use `gproc:get_env()` consistently, gproc will always go back to the source. If you use `gproc:get_set_env()`, gproc will cache the result (even `undefined` if the value isn't found)....

It's true that the code doesn't handle the case of a process inside a claim operation gets killed from the outside. Strictly speaking, this is a bug. Fixing it will...

Describing it to my son, I came up with some failure scenarios that seem very hard to address. Basically, the approach _is_ inherently vulnerable to the calling process being murdered...

(This would be a good time to play around with QuickCheck/Pulse ...)

Since it certainly is an improvement over the previous implementation, I decided to merge. We can try to eliminate the (very slight) holes in the algorithm later.

I thought about that, but it complicates things, is not inherently safe, and also introduces significant latency (assuming the monitoring process always does the reset). It would probably at least...

See https://github.com/uwiger/gproc/blob/master/doc/gproc.md#reg-3

Currently, there's no way to do this. I agree it would be nice feature to have.

It's of course not an Erlang-specific issue that stale data remaining in memory can cause problems. ;-) I'll see if I can figure out why the replication sometimes fails, and...