Genetic - nodejs genetic algorithm implementation

183 views
Skip to first unread message

dolphin 278

unread,
Apr 8, 2012, 12:59:28 PM4/8/12
to nod...@googlegroups.com
To your collection of 'things you should never do with JavaScript' — brand new module that implements genetic algorithm.
See more, watch and fork — https://github.com/dolphin278/genetic

So whether you want to deal with simple optimization problems without using external tools like Octave or Mathlab (sure they are much more powerful), or you want your web application to evolve to suit your users better you can do it right in NodeJs :)

If you curious, what is all about — http://en.wikipedia.org/wiki/Genetic_algorithm

I know, there is plenty of features to add and things to make more convenient, but it works :)
Pull requests and issues are very welcomed.

npm install genetic

P.S. it's asynchronous, of course.
---------
Boris Egorov
skype/gtalk/nickname: dolphin278
mobile: +7 905 728 1543

C. Mundi

unread,
Apr 8, 2012, 1:54:24 PM4/8/12
to nod...@googlegroups.com

Right.  I probably would not have done this in JavaScript unless of course you're brute force distributing generations over a huge cloud.  :)

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

dolphin 278

unread,
Apr 8, 2012, 2:40:07 PM4/8/12
to nod...@googlegroups.com
Sure, this thing distributes very well. This can be done right now inside fitness function, or i may add distributions to several process/remote processes in future :)

---------
Boris Egorov
skype/gtalk/nickname: dolphin278
mobile: +7 905 728 1543


Egor Egorov

unread,
Apr 25, 2012, 12:36:08 PM4/25/12
to nod...@googlegroups.com

Добрый день, тезка:-) 

I'm doing pretty heavy GA in node.js, and I must admit that you absolutely have to distribute the load across all your CPU cores; otherwise you're just wasting resources. Some GA solutions could run for hours.

Pity I've got close to nothing to contribute because my generation code and fitness functions are done in plain C in a separate multithread process spawned from node.js; not much JS code there. 
Reply all
Reply to author
Forward
0 new messages