Tag Archives: erlang

Markov chain sentence generator in erlang

Markov chains explained, and an erlang example :) Continue reading

Posted in Uncategorized | Tagged , , , , | 3 Comments

A genetic algorithm example in Erlang.

The idea behind this program is to begin with a base population of X people, and try to breed/mutate into Y ( where Y is specified on the command line ), through general selection and random mutation. Basically, what this means is that we can select the population fit to breed, and can randomly mutate the progenies formed out of the mating. Varying the parameters (like the policy with which we select the population fit to mate, or the probabiliy with which mutation occurs, leads to interesting results!)

Continue reading

Posted in Uncategorized | Tagged , , , , , , , | 3 Comments

Erlang websocket server ( websocket protocol 76 )

Erlang websocket server implementing handshake draft 76 Continue reading

Posted in Uncategorized | Tagged , , , | 1 Comment

A very basic erlang Crawler

1.Save the code below as spyder.erl 2.Run as : erl spyder.erl  -s spyder start http://site_to_crawl.com -s init stop http://pastebin.com/Qw9f11bi This is a very crude crawler – will crawl all the links in a page, and then further. It doesn’t protect you … Continue reading

Posted in Uncategorized | Tagged , | 1 Comment