Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Erlang: Using Supervisors to Keep Your Processes Running (spawnlink.com)
22 points by mitchellh on Sept 13, 2008 | hide | past | favorite | 5 comments


How 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.


For 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).


Does anyone but me find Erlang's syntax to be its main negative?


It'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/10/09/languages-wor...


If 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.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: