Monthly Archives: December 2010

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

Advertisements
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

Python websocket server ( websocket protocol 76 )

A simple python server that handshakes (version 76 of the ietf websocket protocol ) an HTML5 enabled browser connecting to it using websockets. Also includes basic message framing. Continue reading

Posted in Uncategorized | Tagged , , , | 6 Comments