Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fauigerzigerk
on Aug 21, 2011
|
parent
|
context
|
favorite
| on:
Why threads vs events is a nonsensical question.
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.
dramaticus3
on Aug 21, 2011
[–]
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 :)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: