Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

V8 isn't really designed to run multi-threaded code, which makes sense, since it's designed to run JavaScript code for the browser, and browser JS is single-threaded (except for Web Workers, which are isolated, and isolation requires a different style of code just like asynchronicity does). Here's one effort to add multithreading to V8: http://code.google.com/p/v8-juice/wiki/ThreadingInJS However, it has limitations because V8 isn't really intended to be used that way.

If you just want to write code in blocking style, you can use asyncblock with node.js: https://github.com/scriby/asyncblock



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

Search: