4 ms·
From the article: Because of these performance requirements, we originally wrote the server in Erlang (with MochiWeb) two years ago. After two years of
by tzs 15y ago
From the article:
Because of these performance requirements, we originally wrote the
server in Erlang (with MochiWeb) two years ago. After two years of
iteration, the code has become difficult to maintain. No one on
our team is an Erlang expert, and we have had trouble debugging
downtime and performance problems. So, we decided to rewrite it
in Python, the de-facto language at Mixpanel.
My first impulse would have been to have one or more team members become Erlang experts. Was that considered?
- mhd 15y agoIt seems in a lot of cases, Erlang is just used because of its reputation at being really good at concurrency, mostly in rather minimal API implementations -- or in other words, servers that could easily be done in almost any language that provides some decent event-handling functions. Ruby, Python, node, C/libev, etc. So unless we're talking about thousands of lines of code, it really doesn't matter what library or language you'll choose for something like this. If this would be your only use of Erlang, it's probably not worth it. Erlang is pretty great at building distributed, high-concurrency applications that are good at coping with errors. For one out of those three, you have plenty of other options…
- Aloisius 15y agoOut of curiosity, how long do you think it takes to become become an expert in Erlang?
- diN0bot 15y ago10,000 hours.
- deleted 15y ago[deleted]
- plinkplonk 15y ago"After two years of iteration (on an Erlang codebase) ...no one on our team is an Erlang expert," This sounds a little strange. How is this possible? High turnover on the team?
- hello_moto 15y ago... and guess who got the task to re-write the server? ...an intern...
- codexon 15y agoOr why not point out the obvious? Erlang is hard to learn. Anyone claiming to have mastered it in a couple of months like most fanatics here are (pardon my language) full of crap.
- zwischenzug 15y agoI've seen people master it quickly, writing their own behaviours etc.. I learned it on the tube to and from work in a relatively short space of time, writing a comet server for streaming updates to browsers with a colleague. After the initial hump it was easy and fun. I don't claim to be a genius programmer, just an interested dabbler. To be fair though, the more average developer does struggle with it, and that was a reason my company didn't take it up widely.
- mahmud 15y agoTook me a week to be comfortable with it, but would take at least 2 years for me to grok the performance implications of each construct.
- scraplab 15y agoErlang is the first functional language I've written, and I found it very easy to get going with. The syntax takes a bit of getting used to, but it's a compact language with not too many constructs to learn. I bought the Erlang and OTP in Action book to get my head around the OTP system, but the rest was fairly approachable.
- nirvana 15y agoWell, "Mastery" is a standard that I think, by definition, few achieve. But competence in erlang is certainly achievable in a couple of months. In my example, I started having never once written anything in a functional language. I started by reading Armstrongs book with pragmatic programmers. After a couple of months I could write anything I wanted to in erlang, without too much trouble, and much more importantly: I was in love with erlang The idea of writing something in erlang was very exciting and pleasurable to do. I think that's quite an accomplishment for a language with such a different syntax and with me only putting a couple months into it. Now, obviously, I won't say I'd mastered it. But prior to that I had the fear of the unknown when it came to functional languages, and a distinct repulsion at erlangs syntax. The only reason I learned it was that I believed it to be the only language that had done concurrency right. And I had a project to write in it that required concurrency. That might be a big help. I imagine it is hard to learn any language if you don't have a goal that it is well positioned to achieve to work towards while learning. I suspect people who think erlang is hard to learn, haven't spent any time learning erlang. But in truth, no language, except the very first one, was hard for me to learn.