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?