News for hackers. Stuff that matters.
Re:Why threads vs events is a nonsensical question. by aufreak3 on Sunday August 21, 2011 @12:30AM (#2908521)
It's shared mutable memory that's the problem. Shared constants are alright.
Re:Why threads vs events is a nonsensical question. by masklinn on Sunday August 21, 2011 @03:31AM (#2908722)
Sure, but semantically constants are about sharing values not memory, so they don't fall under "sharing memory" as far as I'm concerned.
Re:Why threads vs events is a nonsensical question. by aufreak3 on Tuesday August 23, 2011 @06:32AM (#2916050)
That is a good abstraction for thinking about code. In the meanwhile, machines still have "one memory, many cores" architecture, in which inter-proc communication is about references is a practical optimization (like ref counting of binaries in Erlang). Some of those design decisions will have to change when machine archs move to "many (core, memory)" form.