On 15/04/2011 7:49 AM, Marijn Haverbeke wrote:
For clarity, all of my concerns come from task migration being too expensive
to be practical.

Can you suggest some reading material on this? It's not clear to me
why task migration *has* to be that expensive.

They have pointers into a heap shared with other tasks in their thread. We'd have to dig through that heap cloning everything they point to.

Erlang is more militant about his and just says "message sends never share" -- they're either deep copies or moves. We *could* adopt that stance (especially after we have unique boxes). If we did, we could reassign tasks to threads arbitrarily.

-Graydon
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to