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

Lack of support for shared state is no disadvantage! When you write multithreaded programs in a language such as C++ or C#, you try to impose on yourself the same restriction, in the interests of making your life easier...

(I haven't used web workers, so maybe they're in fact awful to use. But from what I've read, it looks like the right decisions were made, pretty much.)



Why be so protective? Perhaps somebody invents some programming tool that makes it easy to reason about shared state. This is exactly the kind of mind-set that makes it difficult to develop for the web.

Also, shared immutable state is a useful (often perhaps even essential) property for building efficient code in a multithreaded environment, even when using the message-passing style.


Tastes differ. I don't have any problem with erring on the side of overprotectiveness when it comes to multithreaded programming.




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

Search: