Sun Jan 26 07:04:36 EST 2020
Why can't I just write into a task's buffer?
Keeps coming back.
Buffers aren't always the best way to represent data.
EDIT: Coming back to this: the core idea is ownership.
Shared mutable memory isn't a good idea, but if there is a concept of
ownership then it might not be such a big deal. Channels can still
transfer lazy buffers, e.g. callbacks or state machines that produce
or consume data.
Data on channels doesn't have to be "just bytes".
The key is:
- information transfer + syncrhonization
- some kind of task structure with local execution context