News for hackers. Stuff that matters.
Re:2048 in Erlang by rdtsc on Monday June 09, 2014 @01:44PM (#7869483)
Very good write up!

Good overview of how to get started with Erlang. Sometimes those that give it a first try are the best ones at writing a getting started guide.

> I'm not exactly sure what one_to_one is, but it works. It makes sense to look through Erlang documentation and find out the definition.

one_for_one just means that if one child of the supervisor dies, it will be restarted. There other choice is all_for_one, which means that if one child crashes, supervisor will restart all its children.

You can nest supervisors and create hierarchies of supervisors and workers and restart them as you need. Each process has an isolated heap (just like OS processes) and it will be neatly cleaned up by the garbage collector.

There are no comments on this comment yet.