I ask because
- there doesn't seem to a be a good way to represent Pids in a way that can be encoded in JSON (for trading messages with a web-based client),
- it would therefore be convenient to register processes that represent these messages to the client using an alternate identifier of some kind, like a serial number or timestamp, however
- processes are registered using atoms, and
- although names are "unregistered" when their processes die,
- atoms in the Erlang VM are not garbage collected.
So registering a large number of processes consumes memory that is never recovered, right? Or does unregistering the name also clean up the atom?