Hacker GitHub

← All repos

thepowersgang/mrustc

View on GitHub ↗ ★ 2,553 C++

Alternative rust compiler (re-implementation)

90 mentions on Hacker News by 72 people: 8 stories, 82 comments · first 2016-08-10 · latest 2026-10-14

Mentions per year 90 mentions · busiest year 2019 (15)
20082026
  1. …is using a binary package of the previous version released by the Rust Foundation. Or using https://github.com/thepowersgang/mrustc . And it is not released by the Foundation . > Since there exists only a single fully-functional, usable…
    comment by estebank · 2026-10-14 · in Problems with the Rust Language
  2. …interesting but idk if i get it. couldn't you compile it with a different rust implementation like https://github.com/thepowersgang/mrustc
    comment by rgbrgb · 2026-10-14 · in Problems with the Rust Language
  3. You could use https://github.com/thepowersgang/mrustc to get relatively modern Rust compiler (1.90 currently apparently, but every now and then that is updated). Then build newer rustc from there to reach the current 1.99. But I don't get…
  4. This exists: https://github.com/thepowersgang/mrustc .
  5. …Oh, but I see there's a C++ implementation of the Rust compiler. https://github.com/thepowersgang/mrustc Anyway, this part sounds useful too, that crustc can compile across network and devices. > You build a small C server
  6. …if you do this, as the language is designed around those semantics. Nonetheless, mrustc exists: https://github.com/thepowersgang/mrustc It will not be noticeably faster because most of the time isn't spent in the checks, it's spent in the…
  7. …This does not paint the full picture. Rust can be bootstrapped with mrustc, which is written in C++ https://github.com/thepowersgang/mrustc Now, mrustc supports only Rust 1.74. To build Rust 1.92, you need almost 20 builds. But this can be…
    comment by nextaccountic · 2026-02-03 · in Rust in the NetBSD Kernel, and other odd decisions
  8. I assume mrustc is capable of bootstrapping rust? https://github.com/thepowersgang/mrustc
    comment by hyperman1 · 2026-01-16
  9. Another Rust compiler with a C backend: https://github.com/thepowersgang/mrustc
    comment by nutjob2 · 2025-12-07 · in Eurydice: a Rust to C compiler
  10. …make a Rust compiler in C[4] that compiles to QBE IR which can then be compiled with QBE/cc. [1]: https://github.com/thepowersgang/mrustc [2]: https://github.com/FractalFir/rustc_codegen_clr [3]: https://old.reddit.com/r/rust/comments/1bhaj…
    comment by forgotpwd16 · 2025-11-25 · in APT Rust requirement raises questions
  11. …supports. Presumably whenever gccrs comes online that will be yet another defensive layer. [0]: https://github.com/thepowersgang/mrustc
    comment by aw1621107 · 2025-11-18 · in Pre-PEP: Rust for CPython
  12. …let alone drop order. They are definitely erased as well. Not sure how you got this so wrong). [0]: https://github.com/thepowersgang/mrustc
  13. …"simple" enough? Its purpose is as you describe, and it can bootstrap rustc to version 1.74.0. https://github.com/thepowersgang/mrustc
    comment by Smaug123 · 2025-06-16 · in Retrobootstrapping Rust for some reason
  14. There are multiple Rust compilers, for example - https://github.com/Rust-GCC/gccrs - https://github.com/thepowersgang/mrustc
    comment by sealeck · 2024-11-12 · in Rust Needs an Official Specification
  15. There is also mrustc [0] which can bootstrap rust 1.54.0 and then you can continue from there. [0] https://github.com/thepowersgang/mrustc
  16. …> rustc bootstrap tested and validated (1.19.0 isn't fully repeatable, but later versions are) https://github.com/thepowersgang/mrustc?tab=readme-ov-file#p... This means you'd have to land the same attack in both mrustc and rustc, making…
    comment by steveklabnik · 2024-04-29 · in The dire state of NixOS's moderation culture
  17. …of course). Of course, this only means we could, it doesn't necessarily mean we should. [1]: https://github.com/thepowersgang/mrustc
    comment by perlclutcher · 2024-01-21 · in The Case for Rust in the base system
  18. …worth, rust developers are already maintaining an independent C++ implementation of the language: https://github.com/thepowersgang/mrustc
  19. Incidentally C++ is the only way to bootstrap rust without rust today. https://github.com/thepowersgang/mrustc
  20. …a borrow-checker, so it's again probably more on the optimization side than being essential. [0]: https://github.com/thepowersgang/mrustc [1]: https://stackoverflow.com/a/57259339
  21. …aforementioned GNU Mes, in that it's a reimplementation of Rust, intended for bootstrapping rustc. https://github.com/thepowersgang/mrustc
  22. …easily, although it's a little bit time consuming. You can use mrustc to bootstrap Rust 1.54: https://github.com/thepowersgang/mrustc And from then you can go through each version all the way to the current 1.72. (Each new Rust version…
  23. Ideally, what Guix would want is similar to what https://github.com/thepowersgang/mrustc/ does for Rust (a compiler, not written in Rust, for Rust). So for Dylan, we'd like to have a compiler for Open Dylan, not written in Dylan. (it can…
  24. I wonder if a solution to your use case could look something like mrustc: https://github.com/thepowersgang/mrustc The idea here would be to compile in a way that just assumes everything is correct and either crashes catastrophically or…
    comment by jeffparsons · 2022-10-25 · in Rust in the Linux Kernel: Just the Beginning
  25. …still, but if simply depending on the library the Rust components could be transpiled to C… [0] - https://github.com/thepowersgang/mrustc
    comment by bpye · 2022-10-04 · in SQLite: QEMU All over Again?
  26. …representation is C code, which is then run through another compiler to produce the final output: https://github.com/thepowersgang/mrustc Should its author generate Rust from Rust? Would it be better if Copilot produced object files or…
  27. …machine, but I don't know how tough it would be to get it to support new targets. [0] https://github.com/thepowersgang/mrustc
    comment by LegionMammal978 · 2022-08-20 · in Zig is now self–hosted by default
  28. https://github.com/thepowersgang/mrustc is already providing that; it targets 1.54 right now, which is farther along than this project (though obviously that may not be always true in the future).
    comment by steveklabnik · 2022-07-11 · in GCC Rust Approved by GCC Steering Committee
  29. …different policies for when they break backward compatibility with older compiler versions. [0] https://github.com/thepowersgang/mrustc
    comment by LegionMammal978 · 2022-06-30 · in How Websites Die
  30. And then there's mrustc https://github.com/thepowersgang/mrustc , a Rust compiler written in C++, using LLVM.
  31. …the standard llvm-based compiler, I know of at least two others: https://github.com/Rust-GCC/gccrs https://github.com/thepowersgang/mrustc
  32. The simpler way to obtain C from Rust would be to use mrustc https://github.com/thepowersgang/mrustc Not that the C will be much more readable than the dissassembly, but there's a chance less information will be lost.
  33. …to be used for bootstrapping a Rust compiler with a C++ compiler. It produces "very ugly C". [0] https://github.com/thepowersgang/mrustc
  34. Maybe some ideas here: https://github.com/thepowersgang/mrustc
  35. …if it assumes it. mrustc works that way, it is not trying to check code, only compile valid code: https://github.com/thepowersgang/mrustc This is similar to C/C++'s " undefined behaviors". There are things you can write that aren't valid…
    comment by remram · 2021-07-08 · in Compiling Rust is NP-hard
  36. mrustc[0] I think. [0]( https://github.com/thepowersgang/mrustc/ )
    comment by shipp02 · 2021-05-31 · in GCC Rust Monthly Report #6 May 2021
  37. I am assuming they're talking about https://github.com/thepowersgang/mrustc
    comment by steveklabnik · 2021-05-31 · in GCC Rust Monthly Report #6 May 2021
  38. Seems like mrustc is up to 1.39: https://github.com/thepowersgang/mrustc Does the bootstrapping require every single step up to the current rustc or can it skip some steps?
  39. …checker though (and instead assumes the program is correct). Also, mrustc isn't based on gcc. https://github.com/thepowersgang/mrustc (There's a fourth project, https://github.com/sapir/gcc-rust , but it seems abandoned)
    comment by nextaccountic · 2021-04-18 · in First steps with Rust
  40. Maybe this alternative Rust compiler? https://github.com/thepowersgang/mrustc
  41. TIL https://github.com/thepowersgang/mrustc
  42. We have a way to bootstrap Rust: https://github.com/thepowersgang/mrustc
  43. The closest thing i am aware of is mrustc: https://github.com/thepowersgang/mrustc But AIUI that is not aimed at being a Rust compiler you would actually use day-to-day, just at being a way to bootstrap a Rust toolchain without needing a…
    comment by twic · 2021-02-11 · in Rust 1.50
  44. …It would allow the support of older architectures by taking advantage of their C compilers. [0] https://github.com/thepowersgang/mrustc
  45. …you can always just run the reference implementation as a glorified linter in the meantime. [0]: https://github.com/thepowersgang/mrustc
    comment by Nullabillity · 2021-01-10 · in GCC Rust: GCC Front-End for Rust
  46. …are WIP, e.g. mrustc[1], rust front-end for gcc[2][3], or using cranelift[4] for the back-end. [1] https://github.com/thepowersgang/mrustc [2] https://github.com/sapir/gcc-rust/tree/rust [3] https://github.com/Rust-GCC/gccrs [4]…
  47. https://github.com/thepowersgang/mrustc
    comment by steveklabnik · 2020-09-04 · in Rust is not a good C replacement (2019)
  48. There is the mrustc compiler https://github.com/thepowersgang/mrustc It's not fully complete. But there is no reason why it couldn't be.
    comment by AquaLineSpirit · 2020-08-31 · in Supporting Linux kernel development in Rust
  49. …triggering UB like rustc. But you can use rustc for the borrow check and mrustc for codegen. [1]: https://github.com/thepowersgang/mrustc [2]: https://github.com/bjorn3/rustc_codegen_cranelift [3]: https://github.com/rust-lang/miri
    comment by cbarrick · 2020-06-12 · in A New RegExp Engine in SpiderMonkey
  50. …It doesn't implement the borrow checker, but can successfully bootstrap a bit-identical rustc. https://github.com/thepowersgang/mrustc