News for hackers. Stuff that matters.
Re:How One Missing `var` Ruined our Launch by pbz on Tuesday November 01, 2011 @01:36AM (#3180779)
JS in browsers is not multi-threaded. There's only one JS thread where requests from async calls are queued: http://ejohn.org/blog/how-javascript-timers-work/

When dealing with true multi-threading you have all sorts of issues you need to worry about, like locking for writing, worrying about deadlocks, etc. that make coding much more difficult.

Re:How One Missing `var` Ruined our Launch by bzbarsky on Tuesday November 01, 2011 @03:06AM (#3180986)
Yes, I know JS in browsers is not multi-threaded. It runs multiple globals all on the same thread, as I said. Node is not multithreaded either; it could run a bunch of separate globals on the same thread as well, if it wanted to.