On Jul 12, 2012, at 7:15 AM, Niko Matsakis wrote:

> Certainly there is no pthread or stack-switching implementation for 
> Javascript so I guess we'll have to rewrite at least the scheduler! We might 
> end up having to model each Rust thread with a web worker or something like 
> that, as a first attempt anyhow.

That would result in a very different performance model, since Rust expects to 
be able to create several metric craptons [1] of concurrent tasks, whereas the 
number of workers you can create is much smaller. But who knows, it might still 
be interesting enough to be useful for some kinds of programs; ClojureScript is 
making progress as a single-threaded dialect of Clojure, after all.

Dave

[1] Give or take.

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

Reply via email to