GithubHelp home page GithubHelp logo

bladams / weasel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stinaq/weasel

0.0 1.0 0.0 165 KB

C 9.01% Clojure 4.48% CoffeeScript 3.35% Common Lisp 4.21% C# 8.67% D 7.10% F# 11.17% Go 5.87% Haskell 3.45% Java 9.30% JavaScript 4.42% Nim 4.17% Perl 2.53% PowerShell 5.60% Python 12.09% Rust 4.59%

weasel's Introduction

A whole lotta weasels

A joint effort to write the Dawkins' Weasel algorithm in as many languages as possible, using the language's specific idioms.

Algorithm described here.

  • Each implementation should only be one file and placed in the root folder.
  • Each file should be named by the language in which it was written.
  • The program should print the fittest string of each generation, as well as the number of generations it took.
  • Mutation rate should be 4%, generation size 100.

Each implementation should, as far as it is feasable, capture the charachteristics of that language. The goal is readable and enjoyable implementations in as many languages as possible.

=======

Building the examples:

Below are the basic instructions to run the code examples, sorted by OS -> Language.

Ubuntu

Python

python python.py

Haskell

runhaskell haskell.hs

Go

apt-get install go
go run go.go

D

apt-get install gdc
gdc d.d
./a.out

F#

first install mono:

    apt-get install mono

clone the github repo and follow the instructions there (make && make install)

then:

    fsharpc fsharp.fs
    mono fsharp.exe

Common Lisp

install:

apt-get install sbcl

run:

sbcl --script common-lisp.lisp

Coffeescript

  1. install node via apt-get

  2. install coffee-script via npm

  3. run:

     coffee coffee-script.coffee
    

Nimrod

1. Compile Nimrod from the github sources
2. run:

	nimrod -r nimrod.nim

perl

perl perl.pl

weasel's People

Contributors

stinaq avatar roobie avatar joladev avatar andrewgregory avatar mirontoli avatar bladams avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.