On Tue, Apr 28, 2015 at 5:05 PM, gmhwxi <
gmh...@gmail.com> wrote:
>
> I am in the middle of studying the possibility of compiling a portion
> of ATS into Erlang. If successful, this would allow us to use ATS+Erlang
> for constructing distributed programs. Stay tuned :)
>
> Erlang is a very interesting language. No doubt about it. However, I really
> felt Joe Armstrong went way too much overboard with his let-it-crash
> "philosophy".
>
> ######
>
> Why Crash?
>
> Crashing immediately when something goes wrong is often a very good idea;
> in fact, it has several advantages.
>
> • We don’t have to write defensive code to guard against errors; we just
> crash.
>
> HX: Well, who is going to save the state? After all, the physical world is
> stateful. It's been that way since the big bang.
I guess in some situations you could have a callback to a
checkpoint/restart program, assuming you are happying with running in
C/R ... this is a possible compromise.
>
> • We don’t have to think about what to do; we just crash, and somebody
> else will fix the error.
>
> HX: Why would we believe this "somebody" has the silver bullet we don't
> have?
>
> • We don’t make matters worse by performing additional computations
> after we know that things have gone wrong.
>
> HX: Who says that performing additional computations is always harmful.
> Does this mean that one should just kill oneself if one is ever cut by a
> knife accidentally?
>
> • We can get very good error diagnostics if we flag the first place where an
> error occurs. Often continuing after an error has occurred leads to even
> more errors and makes debugging even more difficult.
>
> HX: I don't know about other people. I debugged a few Erlang programs, and
> I could tell that it was not easy for me!
>
A solaris kernel developer agrees with you:
http://www.reddit.com/r/IAmA/comments/31ny87/i_am_the_cto_of_joyent_the_father_of_dtrace_and/cq3dhd4
> • When writing error recovery code, we don’t need to bother about why
> something crashed; we just need to concentrate on cleaning up afterward.
>
> HX: So that we should just wait for the next crash? What about the wasted
> time and energy?
>
> ######
>
> It is often claimed that Erlang-based telephone services are so robust; they
> are always
> up; they are never down. I think that a much better measurement is the
> number of calls that have
> been dropped. Up/down is too qualitative.
>
> --
> You received this message because you are subscribed to the Google Groups
> "ats-lang-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
ats-lang-user...@googlegroups.com.
> To post to this group, send email to
ats-lan...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/ats-lang-users.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/ats-lang-users/c7f53a3f-27c3-4571-9b55-1b0bdea9cd36%40googlegroups.com.
--
Brandon Barker
brandon...@gmail.com