News for hackers. Stuff that matters.
Re:Why threads vs events is a nonsensical question. by fauigerzigerk on Sunday August 21, 2011 @08:59AM (#2909104)
My ideal version would be something like

  parallel for(item in source)
    log(write(process(read(item))))
And let the compiler/runtime figure out how to do that. It could generate something similar to your code for instance.
Re:Why threads vs events is a nonsensical question. by dramaticus3 on Sunday August 21, 2011 @10:56AM (#2909300)
ok, but now I have a generic logger that I can send all kind of messages to. I can use the source channel anywhere and pop a new data source into it etc. etc.

channels rule :)