Remix.run Logo
▲ afdbcreid 2 hours ago

Rust requires LLVM (or GCC) which requires C++, not just C.

▲VorpalWay an hour ago | parent | next [-]

LLVM is the default yes, there is also an experimental cranelift backend, which is all Rust. Not sure if it is good enough to build the compiler itself using it.

(There is also a GCC backend called codegen_gcc that is pretty far along. And a separate reimplementation of both the frontend and backend using gcc and C++, called gccrs, which is not nearly as far along.)

▲afdbcreid 40 minutes ago | parent [-]

I'm pretty sure it does not support enough features to build the compiler (e.g. inline asm is not supported at all), and it will also be very, very slow to unusable.

▲someonebaggy 2 hours ago | parent | prev [-]

Maybe it should be rewritten in Rust then