On 7/12/12 12:32 AM, David Bruant wrote:
To the best of my knowledge, Rust compiles down to LLVM and Emscripten compiles from LLVM to JS, so it seems like the hardest part of the job is already done.

Maybe so, but there remains a good bit of work. Emscripten requires non-trivial libraries and so forth to be ported as well (although we might be able to compile them down to C with clang and then emscripten them in turn, have to try it and see how far we get).

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.


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

Reply via email to