Re:The future of programming languages in a massively concur...
by ctkrohn on Sunday November 04, 2007 @09:07PM
(#76167)
You're talking about automatic parallelization. There's been quite a bit of research done in this area, but the results aren't that great. Some languages (particularly functional ones) are better suited to automatic parallelization than others, and it's pretty doubtful that you'll see a good automatically parallelizing compiler anytime soon, especially for an imperative interpreted language like Javascript.
See http://en.wikipedia.org/wiki/Automatic_parallelization for more info.
Threads are usually the problem IMHO not the solution.
I don't agree with the suggestion that javascript will need threads either. Javascript works extremely well in a single thread. There isn't really much of a need for threads. Having multiple cores doesn't change that, it just means you might need some abstraction layer like I described above, that utilizes all cores, whilst appearing as a single core.