News for hackers. Stuff that matters.
Re:Mrustc: a Rust compiler written in C++ by ptx on Friday September 22, 2017 @04:32AM (#15310314)
You still need the borrow checker, and this compiler won't change the kinds of programs you can write. It only works on programs that pass the borrow checker, just like the regular compiler, the difference being that it doesn't check that the program is valid (i.e. passes the checker) but assumes that its validity has already been checked earlier by the regular compiler.

If you give an invalid program to the regular compiler it will be rejected, but if you give the same program to this compiler it might produce nonsense. So the developer of a program would feed it to the regular compiler for checking, but others could take the finished release of the program, assume that it's valid and feed it to this compiler instead, as I understand it.

Re:Mrustc: a Rust compiler written in C++ by Sharlin on Friday September 22, 2017 @06:54AM (#15310954)
OTOH that's already the case with C and C++ where the compiler is allowed to assume undefined behavior cannot happen.