News for hackers. Stuff that matters.
Re:Mozilla lays off 70 by zozbot234 on Wednesday January 15, 2020 @07:42PM (#22060539)
> I was working on Cranelift, the WebAssembly compiler that is also a plausible future backend for Rust debug mode.

Just curious, but could Cranelift (or rustc_codegen_cranelift, I'm not sure which would be the closest) also acquire a C-transpiling backend, making it a viable replacement for mrustc? There might be quite a few people willing to fund that sort of work, since it could suffice to bring Rust to a whole lot of platforms that people care about.

Re:Mozilla lays off 70 by sstangl on Wednesday January 15, 2020 @08:17PM (#22060754)
Yes, it's plausible that were Rust to adopt Cranelift as a supported backend, you could use Cranelift as an intermediary to translate Rust MIR (via Cranelift CLIF) into C. Outputting functional-but-horrifying C would not be terribly difficult.

The CLIF format is low level but relatively architecture-independent.

Re:Mozilla lays off 70 by Agrailag on Thursday January 16, 2020 @01:52PM (#22067621)
Sorry for question, but will you continue work on adopt it to Rust?
Re:Mozilla lays off 70 by roca on Wednesday January 15, 2020 @09:14PM (#22061079)