News for hackers. Stuff that matters.
Re:Why Not Erlang? The Lack of Onramps by general_failure on Monday June 23, 2014 @12:34AM (#7930256)
I just picked a random file in RabbitMQ to see how erlang looks like - https://github.com/rabbitmq/rabbitmq-server/blob/master/src/...

Then I thought of looking into something I might understand: https://github.com/apache/couchdb/blob/master/src/couchdb/co...

The syntax is indeed scary. Unless erlang provides features that are overwhelmingly compelling that I just cannot live without, I cannot imagine coding in it. Go seems more approachable.

Re:Why Not Erlang? The Lack of Onramps by SoftwareMaven on Monday June 23, 2014 @01:44AM (#7930417)
s/understandable/familiar/

Go is based on C, so of course it is more familiar to many people, as most popular languages share that root (something for language designers to at least ponder). Lisps are hard to follow, too, if you aren't familiar with s-exp languages. If you had a prolog background, Erlang wouldn't feel nearly as overwhelming.

The hardest parts about understanding Erlang programs, IMO, are understanding message passing (already there with Go), supervisors, and managing state in a stateless system (the latter two aren't what I'd consider common idioms in other languages (though supervisors are easy to reason about due to operating systems). Understanding the syntax is something a short afternoon can resolve.

Re:Why Not Erlang? The Lack of Onramps by forgottenpass on Monday June 23, 2014 @10:03AM (#7931970)
No idea at all why you're downvoted. I came to erlang after spending years working on a C++, actor model, message passing codebase. Unsurprisingly (although it was to me at the time) I felt quite at home.

The difficulty came from the new syntax and Erlang-style control flow. And as you say, those are entirely a matter of familiarity. I still find python to be more readable and writable, but by no means does that imply Erlang is not understandable.

Re:Why Not Erlang? The Lack of Onramps by vertex-four on Monday June 23, 2014 @05:49AM (#7931030)
To be fair, Erlang actually has much less syntax than any other language I've seriously used. It's just not C-like, for historical reasons. It's remarkably terse, but readable (after learning the basics), which is quite interesting.

I suggest flicking through Learn You Some Erlang[0] to understand some of it... don't skip the chapters on OTP, which is pretty much necessary to understand how an Erlang program is organised.

[0] http://learnyousomeerlang.com/content

Re:Why Not Erlang? The Lack of Onramps by saraid216 on Monday June 23, 2014 @12:48AM (#7930296)
You might check out Elixir. Which is, crudely framed, making the syntax less Prolog-y while still running on top of the BEAM and OTP.

http://elixir-lang.org/

Re:Why Not Erlang? The Lack of Onramps by pessimizer on Monday June 23, 2014 @02:06AM (#7930462)
It's not scary, it just doesn't look like C. It's really simple to read if you learn the basics.