Erlang is a functional language with strong support for concurrency and distribution. It is quite trivial to start Erlang on multiple hosts and connect them. However, you have to write custom scripts to start these nodes. For example, on a set of local machines, ssh with public/private keys can be used to start cluster of nodes. If you don’t have the computing environment, you can lease your servers using Amazon’s EC2 webservice. In this blog, I am going to show how to start Erlang nodes on the instances of EC2. I have broken the instructions into two parts, setting up the EC2 instances and starting the Erlang cluster.
Setting up EC2
Get an Account
If you don’t have S3 and EC2 account, you can get account for Amazon Simple Storage Service
and account for Amazon Elastic Compute Cloud .
Create X.509 certificate
Select the “AWS Access Key Identifiers under “Your Web Services Account” and follow the “Create New” button in this secti...
Content suppressed by ://URLFAN, for full article visit source
More Children Dying in Iraq Today Than Under SanctionsFrom: weblog.plexobject.com
Post Date: 2007-11-17 09:39:35
More Children Dying in Iraq Today Than Under Sanctions
some 122,000 Iraqi children - the equivalent of one in eight - died in 2005, before reaching their fifth birthday. More than half of the deaths were among newborn babies in their first month of life.
a senior UNICEF official, said in an interview with Reuters that around half a million children under the age of five had died in Iraq since the international embargo was imposed.
The Unwillingness of the Main Stream Media to Con...
more Evaluating dynamic mathematical expressions in Java/JavascriptFrom: weblog.plexobject.com
Post Date: 2007-11-14 12:23:27
Recently, I was looking for a tool to evaluate some mathematical expressions in Java, which were stored in some configuration file. I like dynamic features of languages like Ruby, Python, Javascript or even Erlang to evaluate snippet of code dynamically. Since, Java does not support this inherently, I tried looking for some scripting language that I can embed inside Java. Also, I needed a scripting language that provides two-way integration, i.e., ability to call scripting language from Java an...
more Erlang translation of States PuzzleFrom: weblog.plexobject.com
Post Date: 2007-11-02 18:48:23
I came across neat solution from A Simple Programming Puzzle Seen Through Three Different Lenses regarding states puzzle from Mark Nelson , which was originally posted NPR . Here is translation of Anders Pearson’s solution in Erlang:
1 -module(states).
2
3 %%——————————————————————–
4 %% External exports
5 %...
more