Learning about evolutionary algorithms and visualising them in Processing, via JRubyArt.
Ruby JavaScript HTML CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
album
genetic
nsgaii
output
pso
reference
web
.gitignore
.ruby-version
README.textile

README.textile

Clever Algorithms & JRubyArt Playground

Learning about evolutionary algorithms and visualising them in Processing, via JRubyArt.

Install

Check the JRubyArt docs for latest install instructions. My merry dance was something like installing Java 8, JRuby then JRubyArt and adding some paths like so:

# JAVA
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
export PATH=$PATH:$JAVA_HOME/bin
# JRUBY
export PATH=/data/development/vendor/jruby-9.0.3.0/bin:$PATH

Run

Once installed you can do something like this to fire up Processing and get a REPL.

$ k9 watch genetic-oo.rb

Web

The end game is to get this on the web. I’m working in JRubyArt to prototype, then transpiling the algorithm to Javascript via Opal and rendering in p5js. You’ll be able to run up a web server if you have Node/Bower/Grunt installed like so:

$ npm install
$ grunt serve

Work in progress for the web is here

The webapp was bootstrapped via Yeoman.

Thanks

- Clever Algorithms
- JRubyArt
- Processing
- p5js
- Opal