Live data from Hacker News

Erlang OTP Tutorial For Beginners

blog.bot.co.za

1–10 of 18 posts

Re: Erlang OTP Tutorial For Beginners

#4

I'm very happy to see more OTP tutorials as of lately. I believe OTP can be one of the most powerful tools in an Erlanger's arsenal.

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

#5
post #4

I'm very happy to see more OTP tutorials as of lately. I believe OTP can be one of the most powerful tools in an Erlanger's arsenal.

Stronger: If you are using Erlang for anything real and you aren't using OTP you are almost certainly doing it wrong.

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

#6
"OTP in Action" is an excellent book for learning OTP.

The following reading will take you a long way with Erlang:

Learn you some Erlang http://learnyousomeerlang.com/

OTP In Action http://www.amazon.com/Erlang-OTP-Action-Martin-Logan/dp/1933...

On Erlang, State and Crashes http://jlouisramblings.blogspot.com/2010/11/on-erlang-state-...

"Making reliable distributed systems in the presence of software errors" http://www.erlang.org/download/armstrong_thesis_2003.pdf

The last two links are "Erlang propaganda" describing the hows and whys of Erlang.

Re: Erlang OTP Tutorial For Beginners

#7
post #5
post #4

Earlier quoted context omitted.

Stronger: If you are using Erlang for anything real and you aren't using OTP you are almost certainly doing it wrong.

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.

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", >, 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

#8

I'm very happy to see more OTP tutorials as of lately. I believe OTP can be one of the most powerful tools in an Erlanger's arsenal.

OTP isn't just powerful, it's essential. You need to think in terms of what OTP provides you to program in Erlang effectively.

Re: Erlang OTP Tutorial For Beginners

#9
post #5
post #4

Earlier quoted context omitted.

Stronger: If you are using Erlang for anything real and you aren't using OTP you are almost certainly doing it wrong.

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.

You can use Poolboy [https://github.com/devinus/poolboy] for pooling gen_server's.

Re: Erlang OTP Tutorial For Beginners

#10
I never understood why you have to take Erlang-the-language to get the distributed systems platform. It seems like the whole node management/serialization/"process" management and whatnot could apply to other languages and runtimes.

That way you could get Erlang's distributed platform, which is highly lauded, but mix it with a faster or more preferable language.

Post reply on HN