News for hackers. Stuff that matters.
Re:Task.js: Beautiful Concurrency for JavaScript by fzzzy on Thursday April 25, 2013 @07:41AM (#5606633)
Yep. I wrote some code a few years ago that does this. I wrote it before I knew about task.js and should rewrite it using task.js, removing my handrolled clone of it.

https://github.com/fzzzy/pavel.js

There is also another slightly different scheduler that I started that includes a multithreaded scheduler with webworkers and works in a browser. This version, because it is designed to work in stock browsers, has a callback api and does not use generators, but task.js could easily be layered on top.

https://github.com/fzzzy/actors.js

Please excuse the use of an explicitly provided "pattern" string in both of these. I did it for simplicity. It would be possible to port my concept of shapes from my python-actors project to js, but the runtime overhead of using explicit strings is extremely low and it makes the code very simple.

There are no comments on this comment yet.