News for hackers. Stuff that matters.
Re:What's all this fuss about Erlang? by chubot on Sunday August 05, 2012 @05:15AM (#4341004)
I feel like Erlang had a lot of publicity a few years ago... but it doesn't seem like it has experienced increased popularity.

Does anyone experienced with Erlang have some insights on why that is? Or am I wrong and is it being used in more and more important things?

I think the model makes sense and maybe forces will yet conspire to make it more popular. But I've heard that it feels "old", i.e. lacking in conveniences you would expect in a modern programming language. And it seems like it should interact better with other programming languages -- i.e. you shouldn't have to assume that every node is written in Erlang. There's no migration path to Erlang in that case.

Re:What's all this fuss about Erlang? by davidw on Sunday August 05, 2012 @06:13AM (#4341081)
I think of Erlang as a very specific tool.

Many projects, you could write an initial version in Ruby, Python, Java or whatever, and you're mostly going to be ok, at least while you explore the product/market fit. Maybe you'll have to redo some of it later, but that's likely anyway, so the best approach is to use something that can do a lot of different things reasonably well, and lets you develop quickly.

Erlang always feels to me like it is the best in the world at a few things, and not so good at all for others, meaning it's a bit more dangerous: veer out of its sweet spot, and you're probably better off switching to something else.

Here's something I wrote about it a while back:

http://journal.dedasys.com/2007/09/22/erlang

I also think that Erlang is more along the lines of Smalltalk or Lisp: pioneered some great ideas, but someone's likely to take them and do them in a more palatable format for the masses. Go and Scala, for example seem to borrow some concurrency ideas from Erlang. Node.js is also a "worse is better" competitor which has a huge advantage in terms of the language it uses (Javascript is orders of magnitude more common than Erlang), even if the actual code written for it is not nearly as elegant as Erlang.

Re:What's all this fuss about Erlang? by jlouis on Sunday August 05, 2012 @05:53AM (#4341058)
Erlang has experienced increased popularity. Yet, it has not experienced the avalanche popularity increase you see with e.g., Ruby or Javascript. I think Erlang is lucky that this has not happened since the community would not be able to keep its current excellent condition if that happened.

Erlangs forte is in a very specific kind of system. If your problem is

* Stateful * Concurrent * State has to "act on its own" * Distributed over multiple machines

Then Erlang is a nice tool for the job.

The language is not particularly old. Note you are not allowed to call a language old if the "newer" language is based on C or its semantics :)

Re:What's all this fuss about Erlang? by rat87 on Sunday August 05, 2012 @08:32AM (#4341280)
> The language is not particularly old. Note you are not allowed to call a language old if the "newer" language is based on C or its semantics :)

What newer language?

In my opinion

java /c#/ruby/python share little few semantics with c(other then some basic types).

Re:What's all this fuss about Erlang? by minikomi on Sunday August 05, 2012 @06:37AM (#4341118)
Have you built something cool which fits the bill? I'd love to hear about any successes!
Re:What's all this fuss about Erlang? by asabil on Sunday August 05, 2012 @07:12AM (#4341156)
There are plenty of successes out there: Riak, Ejabberd, Whatsapp messenger, Klarna, Demonware, Soundrop, Wooga... Just to name a few
Re:What's all this fuss about Erlang? by johndonsp on Sunday August 05, 2012 @07:20AM (#4341173)
I wonder if those apps run n-times faster on n-cores. I think probably not, due to inherent limitations in the parallelism available in them, but perhaps I should do a study to verify that. Erlang claiming n-times faster on n-cores is snake oil. First of all, not all problems have n-times parallelism in them!
Re:What's all this fuss about Erlang? by gajomi on Sunday August 05, 2012 @08:00AM (#4341241)
> Erlang claiming n-times faster on n-cores is snake oil. First of all, not all problems have n-times parallelism in them!

I keep reading this claim in Erlang articles, and I wonder why it continues to be made. Its obviously false for the theoretical reason of the limited amount of parallelism in a problem you just stated. It is empirically false on every benchmark I've seen on a real-world architecture (i.e. actual multicore, with actual memory and IO, as opposed to virtual processes). What's strange is that the OP seems to be completely aware of this, but still leads the article with the claim in bold letters before qualifying it later on.

To my mind, Erlang is pretty cool as it is, even before a discussion of multicore performance. But I guess if you "have been waiting 20 years for this to happen, and now it’s payback time" (payback for what?) you are OK with a bit of hyperbole.

Re:What's all this fuss about Erlang? by vonkow on Sunday August 05, 2012 @01:22PM (#4341973)
I was half of the team that created the instapaper-like functionality on bostonglobe.com using Erlang. It fit the bill perfectly and has run (mostly) untouched since it launched. Features like being able to get a REPL on a production node and quickly add and remove machines from a cluster were quite nice to have.
Re:What's all this fuss about Erlang? by minikomi on Wednesday August 08, 2012 @07:47AM (#4355033)
Sounds like a cool project!
Re:What's all this fuss about Erlang? by AaronBBrown on Sunday August 05, 2012 @06:54AM (#4341135)
"is it being used in more and more important things?"

Riak is written in Erlang.

Re:What's all this fuss about Erlang? by timClicks on Sunday August 05, 2012 @07:08AM (#4341150)
Same with CouchDB, which was very fashionable when the article came out.
Re:What's all this fuss about Erlang? by chubot on Sunday August 05, 2012 @11:52AM (#4341733)
That was sort of my point -- erlang was fashionable like couchdb, but neither ended up living up to the hype :). In that sense couchdb doesn't count.
Re:What's all this fuss about Erlang? by bitdiddle on Sunday August 05, 2012 @11:59AM (#4341751)
We use both Erlang and CouchDB at Cloudant and have great success with both
Re:What's all this fuss about Erlang? by AaronBBrown on Thursday August 09, 2012 @10:39AM (#4361234)
We use Riak extensively at ideeli. It looks poised to stick around for the long-haul.
Re:What's all this fuss about Erlang? by skue on Sunday August 05, 2012 @01:26PM (#4341986)
I wrote another comment above questioning whether some of the early multicore promises of Erlang have become less relevant with the rise of single-emulated-core VPS servers. That could have dampened the hype.

Also, I'm not an Erlang expert but Erlang does seem to have had a much larger influence than just the uptake of the language. Scala and Clojure have certainly borrowed heavily from it, and that has had a further trickle-down effect into other higher order languages (eg, the actor model).

Re:What's all this fuss about Erlang? by Androsynth on Sunday August 05, 2012 @01:44PM (#4342033)
This is probably a HN phenomenon rather than being Erlang specific. I suspect that as HN ramped up in users, we learned all these great new technologies and now they are 'old' to the community.

Thats why you dont see as many posts about nginx, node, nosql, erlang, haskell, etc. At least not nearly as much as 2,3,4 years ago.

The most popular language I see now on HN is clojure, which tells me a lot about which language stuck with people.