Skip to content

Comment on Computing with JavaScript Web Workersparent

Comments

So what better solution are you proposing?

Gripes:

* All communication is done via strings. This is really a hack which takes advantage of the immutability of strings in JS. Maybe some kind of queueing/message passing system would be better but that is another can of worms. * Loading workers via a separate file is nice for the web, and I get the point that it makes sense for keeping workers out of the global namespace. However, I would have liked to see something function (or even object) based.

All that being said. I think it is a good start and is coming at the concurrency problem from the right angle (i.e. no threads/locking).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.