> If we want task migration, we have to deal with these trade-offs no matter 
> what, no?

Not at all. Just being able to restore the registers and stack of a
task in another thread and continue running is all that takes. The
only big obstacle is that our current design for value sharing makes
some optimizations for within-thread sharing that will be dropped.

Also, scoped resources (destructors, RAII) as Rust currently uses them
become quite hairy in the face of arbitrary continuations. Scheme's
dynamic-wind is a cute, but utterly unsatisfactory, alternative.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to