Posts

Network Programming in Erlang

Network Programming in Erlang Since I'm learning Erlang I thought my first non-trivial piece of code would be in an area where the language excels: network programming. Network programming (or socket programming) is a pain in the ass in most languages. I first learned how to do it in C using  Beej's Guide to Network Programming . Read it if you dare. The big roadblock for most server applications is concurrency. Languages like, where concurrency was an afterthought, make developing robust server software more difficult than it has to be. Even so-called modern languages like Java, Ruby, or Python don't handle it all  that  well, although you are relieved from the pain of managing all the minute details of the network connections. Erlang, on the other hand, was built with this purpose on mind. I won't be writing any user-facing applications in Erlang any time soon, but I thought, "If I'm going to learn Erlang I may as well learn its strong points firs...