News for hackers. Stuff that matters.
Re:Erlang OTP Tutorial For Beginners by jerf on Friday January 04, 2013 @02:37PM (#5009344)
Stronger: If you are using Erlang for anything real and you aren't using OTP you are almost certainly doing it wrong.
Re:Erlang OTP Tutorial For Beginners by spfoos on Friday January 04, 2013 @02:55PM (#5009460)
Good point. About the only thing I've found is the lack of pooling gen_server's built-in and limitations of using atoms for process registration as things I have design a solution for in OTP. Otherwise, architecturally, I'm amazed at how much ground is already designed in OTP.
Re:Erlang OTP Tutorial For Beginners by omarkj_ on Friday January 04, 2013 @03:26PM (#5009666)
From R15B01 you can actually use "plugins" for process registering using the {via, Mod, Key} syntax.

Gproc supports this and using it you can do stuff like:

  gen_server:start_link({via, gproc, {Your, "very", <<"complex">>, key}, [...])
you can also roll your own.

Docs: http://www.erlang.org/doc/man/gen_server.html#start_link-3

Re:Erlang OTP Tutorial For Beginners by rdtsc on Friday January 04, 2013 @08:12PM (#5010919)
> I'm amazed at how much ground is already designed in OTP.

It is really like finding hidden treasure. And it used to actually be pretty hidden. There was no official book out there. Just had to dig through docs. There is OTP in Action now and I am glad to see others.

For example I had know idea about the existence of the distributed application controller, found out about it from a Learn You Some Erlang book.

Re:Erlang OTP Tutorial For Beginners by devinus on Friday January 04, 2013 @04:30PM (#5010051)
You can use Poolboy [https://github.com/devinus/poolboy] for pooling gen_server's.