3 ms·
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 a
by jgrahamc 19y ago
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.
- DarrenStuart 19y agohaving never played with it I am tempted, I think a webserver might be a could project for it.
- jgrahamc 19y agoThe 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?
- DarrenStuart 19y agotrue, but what about a comet one? that way its doing a little more than serving up data.
- simpleenigma 19y agoA friend of mine is working on a comet server in Erlang at http://code.google.com/p/erlycomet/ http://code.google.com/p/erlycomet/
- DarrenStuart 19y agothat looks pretty smart. Anyone know what the hardware to connections ratio is for it?
- pius 19y agohttp://news.ycombinator.com/item?id=90211 http://news.ycombinator.com/item?id=90211
- simpleenigma 19y agoThe 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 ...
- yariv 19y agoI've been using Erlang to create ErlyWeb (http://erlyweb.org http://erlyweb.org) and Vimagi (http://vimagi.com http://vimagi.com) (which is built with ErlyWeb). Erlang is a lot of fun once you get past the initial hurdle.
- shankys 19y agoI'm now very curious -- what is Facebook using Erlang for?