Hacker News new | past | comments | ask | show | jobs | submit login

It may run on multiple threads but I don't think it exposes threading to the runtime. Ecmascript is certainly single threaded and async by design, so v8 would be straying far from the spec.

I'd love to be proven wrong.




Wait, what are Web-workers then?


for opening up a new separate thread, that you can only communicate through message passing. It's not part of the core language but the browser library hence why you can't use them in Node.


They're also more directly comparable to processes than threads, as they do not share memory (though there are a couple of proposals to allow them to).


Apparently ParallelArray allows shared memory.


yeah but that's not approved yet and from what I can tell ParallelArray is higher level then Workers and doesn't really expose that sort of thing.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: