subprotocol/genetic-js

complex solutions

gkucmierz opened this issue · 2 comments

Correct me if I am wrong.
This library looks very nice, but its useless for more complex problems.
It is impossible to use in seed, fitness or any oter functions complex calculations that needs to call external functions from another library. References are not working, because code is stringified first to make possible passing it to webworker.
This library require to be rewrited I think.

Ok, I found another promising library: https://github.com/dolphin278/genetic

yeah, that is the downside of web workers. What you can do is separately load the library inside the webworker context and get access that way, but the objects that move around do need to be string-ified.