News for hackers. Stuff that matters.
Re:Erlang: A New Way to Program That's 20 Years Old by jgrahamc on Thursday December 20, 2007 @09:09AM (#91483)
Since I partly learnt programming at college and was taught about CSP and Occam, erlang's lightweight processes and inter-process communication model are very appealing. And it's interesting to see a number of projects get written in it, and since even Facebook is using it... :-)

This particular article references Tim Bray's attempts to use erlang for web log processing. He found erlang to be very slow because of the I/O implementation, and criticized it for its regular expression handling. This seems like a silly test since surely you'd use Perl and friends for something like that.

Personally, I'm interested in building something with erlang just to get my feet wet with the language. And I'd be interested to hear about the experiences of others with erlang in real projects.

Re:Erlang: A New Way to Program That's 20 Years Old by yariv on Thursday December 20, 2007 @12:36PM (#91534)
I've been using Erlang to create ErlyWeb (http://erlyweb.org) and Vimagi (http://vimagi.com) (which is built with ErlyWeb). Erlang is a lot of fun once you get past the initial hurdle.
Re:Erlang: A New Way to Program That's 20 Years Old by shankys on Thursday December 20, 2007 @03:42PM (#91564)
I'm now very curious -- what is Facebook using Erlang for?
Re:Erlang: A New Way to Program That's 20 Years Old by DarrenStuart on Thursday December 20, 2007 @10:55AM (#91507)
having never played with it I am tempted, I think a webserver might be a could project for it.
Re:Erlang: A New Way to Program That's 20 Years Old by jgrahamc on Thursday December 20, 2007 @11:05AM (#91510)
The problem with a web server is that I'm not sure there's much interesting inter-process communication which I think is where erlang would really shine. Sure you can spawn a lightweight process for each incoming connection, but after that?
Re:Erlang: A New Way to Program That's 20 Years Old by simpleenigma on Thursday December 20, 2007 @11:47AM (#91525)
The things you would end up learning about Erlang while writing a web server aren't as much about processes but more about pattern matching.

Most people focus on Erlang as an easy way for multi-core/multiprocessor and distributed computing and it is wonderful at that, but the core of the language is a pattern matching engine that is simply amazing.

Also, anyone who thinks that Erlang is slow with regular expression should convert the regular expressions into a binary and try some pattern matching. That tends to be more of the Erlang Way of doing things ...

Re:Erlang: A New Way to Program That's 20 Years Old by DarrenStuart on Thursday December 20, 2007 @11:17AM (#91517)
true, but what about a comet one? that way its doing a little more than serving up data.
Re:Erlang: A New Way to Program That's 20 Years Old by pius on Thursday December 20, 2007 @08:26PM (#91629)
Re:Erlang: A New Way to Program That's 20 Years Old by simpleenigma on Thursday December 20, 2007 @11:42AM (#91522)
A friend of mine is working on a comet server in Erlang at http://code.google.com/p/erlycomet/
Re:Erlang: A New Way to Program That's 20 Years Old by DarrenStuart on Friday December 21, 2007 @06:52AM (#91715)
that looks pretty smart. Anyone know what the hardware to connections ratio is for it?
Re:Erlang: A New Way to Program That's 20 Years Old by simpleenigma on Thursday December 20, 2007 @10:38AM (#91501)
For those of us who program in Erlang calling it 'weird' is a compliment :-) I think it's like complaining about parenthesis to a Lisper ...

Both Lisp and Erlang make you think is a different way that once you get into that mode of thinking you really do become more efficient.

Re:Erlang: A New Way to Program That's 20 Years Old by a-priori on Thursday December 20, 2007 @11:10AM (#91515)
I totally agree, but really, I don't see what's so horribly strange about Erlang. Don't get me wrong: it's my favourite language and I'm in the process of founding a startup with Erlang as the core language. I just don't understand the aversion... people seem to treat it like an impenetrable terra incognita.
Re:Erlang: A New Way to Program That's 20 Years Old by anupamkapoor on Friday December 21, 2007 @12:42AM (#91680)
i think its more to do with functional aspects of the language rather than it's "user-interface" aka the syntax. erlang as first intro to functional language might be non-trivial (imho ofcourse). starting with sicp to understand it's (functional programming's) essence should put anyone on terra-firma.
Re:Erlang: A New Way to Program That's 20 Years Old by Tichy on Thursday December 20, 2007 @04:49PM (#91578)
I recently tried Erlang and it was fun, but I am not that excited by it anymore. It could do with some convenience features, like arrays. List module could be imported per default and stuff like that. I ended up having to write my own methods for fairly standard things (could have been because of my lack of experience with Erlang, though). And I only did some simple project euler problems, nothing big.
Re:Erlang: A New Way to Program That's 20 Years Old by evgen on Friday December 21, 2007 @07:09PM (#91852)
You may want to examine Erlang again. The recent R12B-0 release included an array module that allows you to do nice sparse-arrays, etc.
Re:Erlang: A New Way to Program That's 20 Years Old by Tichy on Friday December 21, 2007 @07:20PM (#91855)
Thanks, will do.
Re:Erlang: A New Way to Program That's 20 Years Old by a-priori on Thursday December 20, 2007 @09:17AM (#91487)
That article's horse crap. Do they not have any better criticism of Erlang other than "it's weird"?
Re:Erlang: A New Way to Program That's 20 Years Old by DarrenStuart on Thursday December 20, 2007 @10:57AM (#91508)
I didn't really feel they were criticizing it but merely pointing out that its not a main stream programming language.