4 ms·
Erlang: Using Supervisors to Keep Your Processes Running
- peregrine 18y agoDoes anyone but me find Erlang's syntax to be its main negative?
- davidw 18y agoIt's not pretty, but I think there are other things that are more serious problems. http://journal.dedasys.com/articles/2007/09/22/erlang http://journal.dedasys.com/articles/2007/09/22/erlang http://journal.dedasys.com/articles/2007/10/09/languages-worst-case-vs-average http://journal.dedasys.com/articles/2007/10/09/languages-wor...
- evgen 18y agoIf it really bothers you, there is LFE (Lisp-Flavored Erlang). Like Python's whitespace, Perl's line-noise, etc. this is one of the first things people find strange along with single-assignment and then fades pretty fast.
- ajross 18y agoHow is this not just a more verbose equivalent of a shell script watchdog? The idea is sound (if hardly mind-bending), but the implementation here seems overly complicated.
- evgen 18y agoFor starters, it is baked into the language and can handle things like dynamically adding or removing items from the supervisory tree; it works are a more fine-grained level than shell scripts. It can also provide both all-or-nothing (e.g. if one item dies then restart everything in my supervisory tree) or one-for-one (just restart the bit that died).