The last few days I have been playing with gen_tcp and writing a simple TCP server. I have found a number of resources helpful: gen_tcp, miniserv, 20bits and Programming Erlang. My server will run and display the data sent to it along with the client IP address and a timestamp. The server will also echo [...]
Entries Tagged as 'Dev'
A Simple Concurrent Erlang TCP Server.
November 12th, 2008 · No Comments
Erlang R12B-5 is out.
November 5th, 2008 · No Comments
Downloads are available here.
The highlights according to the readme:
OTP-7531 Processes spawned using proc_lib (including gen_server and
other library modules that use proc_lib) no longer keep the
entire argument list for the initial call, but only the
[...]
Message Passing in Erlang.
October 24th, 2008 · No Comments
In an attempt to do something other than XML parsing (here and here) in Erlang this week I started playing around with Erlang processes and message passing. It’s pretty cool and fairly intuitive. I wrote two small programs one a receiver and the other a sender. The receive runs as a registered PID and will [...]
SSH and Ruby
October 13th, 2008 · No Comments
The last couple days I have been a bit distracted from the Erlang stuff I have been doing lately and ended up some how playing with Ruby and the SSH library. For running commands on a bunch of machines at once it would work really well. Here’s some code I wrote and paraphrased from various [...]
Playing With Erlectricity.
September 28th, 2008 · 2 Comments
Looking for ways to have Erlang and other languages inter-operate I found Erlectricity. It is a ruby library (gem install erlectricity) that assists in message passing between Erlang and Ruby. Electricity basically allows Ruby and Erlang to talk using an Erlang port to a Ruby process.
I checked out a couple of the examples contained [...]