1. 26
  1.  

  2. 2

    It seems super important for GCC to get Rust support. Otherwise Rust’s growing influence will be pushing GCC out.

    1. 4

      Your statement is pretty bold. However, I agree with the sentiment that GCC should adopt Rust, because it would greatly benefit the Rust ecosystem. It’s never good to be a single-implementation language and it’s keeping many people (including myself) from writing anything in it.

      1. 4

        The linux kernel (still?) doesn’t compile with llvm last I checked, think they’re one patch away from that working. I don’t think one implementation compiler is that problematic. If it is, I’d say that is moving goal posts needlessly.

        A lot of software only builds on one compiler or tool chain.

        1. 2

          It’s also not necessary for the Linux kernel to be compiled with LLVM for it to be linked to Rust. Linking objects created by rustc into gcc-created codebases is pretty standard.

          1. 1

            I was more noting that the kernel only really compiled with gcc for… mostly ever to date. And that is with a language that has probably the most compilers out there. So constraining a test to a language with one compiler doesn’t strike me as a huge issue.

    2. 1

      The mrustc project is an experimental Rust compiler that emits C code.

      Pretty cool stuff. Doesn’t Zig also compile to C?

      1. 5

        It’s the opposite, Zig is a C compiler. https://ziglang.org/#Zig-is-also-a-C-compiler

        1. 1

          In addition, a C backend is in progress for the self-hosted compiler.

        2. 2

          No, Zig does not compile to C.

          1. 1

            OK, ok, it is nim =)