News for hackers. Stuff that matters.
Re:The State of JavaScript - Brendan Eich by pcwalton on Tuesday October 09, 2012 @03:24AM (#4630403)
Rust is never going to be part of the Web. Content will never be able to execute Rust code. If Mozilla had been proposing to integrate Rust as a potential client-side scripting language (which wouldn't happen to begin with), the process would have been totally different.
Re:The State of JavaScript - Brendan Eich by z3phyr on Tuesday October 09, 2012 @10:08AM (#4631543)
Thats a good thing. Rust is THE alternative to C++, and it should not lose focus by compiling to javascript.... Rust should not compile to javascript.. It should remain native(LLVM).

@pcwalton Please assure me that rust won't compile to javascript, and it will remain Native (C/C++ compatible, ahead-of-time). Rust is my last haven, let it remain rust only!!

Re:The State of JavaScript - Brendan Eich by pcwalton on Tuesday October 09, 2012 @11:00AM (#4631852)
Well, we aren't going to stop, or even discourage, people from writing Rust-to-JS compilers, but we won't be working on such a thing...
Re:The State of JavaScript - Brendan Eich by z3phyr on Tuesday October 09, 2012 @09:17PM (#4634661)
Hey, thanks...

I believe - Anything can reach very high, granted it dosen't lose aim/target... Javascript as a target is intrestingly beautiful, but this might fork up a way for yet another dart. Rust should remain, what its meant for....

Re:The State of JavaScript - Brendan Eich by gsnedders on Tuesday October 09, 2012 @01:35PM (#4632871)
LLVM doesn't mean native: LLVM means whatever there is a LLVM backend written for, and this includes higher-level things such as JS.
Re:The State of JavaScript - Brendan Eich by daeken on Tuesday October 09, 2012 @03:42AM (#4630448)
On a side note, has there been any experimentation with Rust on NaCl or with Emscripten? I'd love to write some web demos with it.
Re:The State of JavaScript - Brendan Eich by z0w0 on Tuesday October 09, 2012 @04:06AM (#4630504)
Rust can't run without it's runtime yet, which means the runtime needs to be wrapped into JavaScript code on the Emscripten side. The runtime needs some important parallel and memory functionality and last I heard most of it isn't easily to implement in JavaScript (workers and typed arrays and other HTML5 goodies probably bring it closer to being feasible).

NaCL is a more realistic target - in theory it should be as simple as making the compiler use NaCL's GCC instead of the system's C compiler. However, I don't know about how strict the sandboxing is, there might be certain things that the generated Rust code isn't allowed to do.