rokicki / twophase.js

Kociemba two-phase solver for the Rubik's cube in JavaScript; derived from cube20.org/src
5 stars 0 forks source link

Web workers #1

Open lgarron opened 11 years ago

lgarron commented 11 years ago

Tests are not really practical without web workers. That should be easy to add.

rokicki commented 11 years ago

The code should be pretty easy to adapt to web workers. I would break it out to the following:

  1. Expose a couple of functions (init, solve) from C to JavaScript; test them without webworkers;
  2. Move that to webworkers with the appropriate JSON interface

I'd be happy to do #1 given my copious free time. I can't remember; there was a reason you did all sorts of magic voodoo with webworkers (some limited access to something or the other but I forgot what---oh yeah, testing on a local machine without a webserver, right?) but that's not a real concern because it only takes 10 lines of Perl to have a sufficient httpd server . . . or was it something else?

-tom

On Tue, Jun 4, 2013 at 5:18 PM, Lucas Garron notifications@github.comwrote:

Tests are not really practical without web workers. That should be easy to add.

— Reply to this email directly or view it on GitHubhttps://github.com/rokicki/twophase.js/issues/1 .

-- http://cube20.org/ -- http://golly.sf.net/ --