Re: Local Process Registered Name as Term

Frank Muller <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CAFA6GnAJL2wp1tE226yFLtibQ0Uc6nEzqsjSqx_gJhDYfs1fzA@mail.gmail.com>
Hi Vance

Checkout gproc or syn.

/F.

What advice can I get on a process registry solution for local (only)
> lookup using term() rather than atom()?
>
> The obvious candidates are erlang:register/2 for atoms and
> global:register_name/2 for other terms:
>
>    erlang:register(Name :: atom()), PidOrPort) ->
>    global:register_name(Name :: term(), Pid) ->
>
> Which is fine however when it will only be used locally global is a
> heavyweight solution.
>
> Should I roll my own using ets?  A process? Other?
>
> --
>      -Vance
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.