Erlang is a general-purpose programming language and runtime environment. It has built-in support for concurrency, distribution and fault tolerance. Erlang is used in several large telecommunication systems from Ericsson. Erlang is open source and available for download on GitHub.

learn more… | top users | synonyms

3
votes
1answer
41 views

Erlang pattern matching excersise

I recently started my first project with Erlang. I've been skimming documentation and various books to get the information I need, and it's going well, but now that I have something that works I want ...
3
votes
2answers
122 views

Is there a better way to write these two nested loops in Erlang?

Since one month, I'm learning Erlang and I like it so much. Today, I wrote an algorithm to solve a problem. Some time ago, I used two nested for loops in C# to ...
4
votes
0answers
105 views

Review of genetic algorithm code in Erlang

I've written an Erlang implementation of the genetic algorithm for a hello world program described here: http://www.puremango.co.uk/2010/12/genetic-algorithm-for-hello-world/ This is my first time ...
7
votes
1answer
200 views

Improving clarity and style of this “Document at a time” algorithm

I've created a module that implements a basic "Document at a time" algorithm for inverted index querying (more background here). There are many algorithm improvements possible, but I'm now interested ...
2
votes
3answers
177 views

Slow Erlang code to find Pythagorean triplets

Why does this Erlang code take about one minute on my machine? On Pascal something like this took less then second on my machine. What I can do to speed it up? ...
0
votes
1answer
50 views

Feedback on Erlang Lists processing function

I have just started learning erlang...I am just practicing the recursion and all in erlang...I tried to write a few of the list processing functions on my own in erlang...Can someone review the code ...
1
vote
3answers
272 views

List-flattening function in erlang feels too wordy

I wrote a tail-recursive list-flattening function, but I'm not too happy with it. a) Is tail-recursion necessary here, or will the function be optimized without it? b) It's ugly how many clauses ...
2
votes
3answers
141 views

Erlang arithmetic progression to 7561

hi im new to erlang and this is my first code in that. it took me 3 days to write. as erlang has no loop statement, only way i could think of doing this is as follows: ...
2
votes
1answer
181 views

Erlang FFI into ImageMagick

This is a short program meant to give me an Erlang hook into the ImageMagick FFI for performance reasons. All comments welcome, but specifically my C experience is minimal, bordering on ...
1
vote
1answer
177 views

Erlang code that generates text output

I have recently made a small program to generate D&D (original edition) monster stat blocks in text form. I use this program myself to generate stats block so that I can then copy and paste them ...
5
votes
2answers
252 views

Beginner Erlang - Take a number and return English language representation

Like many, I started out with procedural programming. Of course, when learning a functional language, old habits may die hard, so I wrote a fairly trivial little thing which takes an integer and ...
7
votes
3answers
276 views

Erlang concurrency in circles

I am new to erlang (2 days to be honest) and I would highly appreciate some peer review. I am doing these exercises and was a bit stuck at this point: 2) Write a function which starts N processes ...
4
votes
1answer
709 views

Newbie Map/Reduce word frequency counter

I present you my first ever module to learn some Erlang awaiting your scrutiny . It does a word frequency count using map/reduce . I'm an Erlang noob, so I would very much like feedback about: ...
4
votes
2answers
522 views

Erlang code to list all IP addresses

This is some Erlang code I wrote to output a string of all the IP addresses of the machine. The string is simply printed to the user for him to read. ...