3 ms·
> Would a transpiler written in GCC compatible C, compiling Rust to C, solve this issue forever? Solve what issue? If you're talking about the problem of, "Li
by steelframe 5y ago
> Would a transpiler written in GCC compatible C, compiling Rust to C, solve this issue forever?
Solve what issue?
If you're talking about the problem of, "Linux is available on more systems than the Rust compiler has been ported to," then I'm gonna say "no," because many (if not all) of the core issues that make Rust difficult to support well on various architectures (and hence why said support isn't in official Rust today) would also have to be solved by any so-called "Rust-to-C transpiler."
- jeofken 5y agoA transpiler would throw the types away before generating C code. It does not need to implement traits or any other rust features. Alternatively, LLVM byte code to C compiler would do the job, as rustc emits LLVM byte code afaik