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. ▲ 1
    mrustc – Alternative Rust Compiler
    story by peter_d_sherman · 2026-09-30 · 1 comment
  6. …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
  7. …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…
  8. …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
  9. I assume mrustc is capable of bootstrapping rust? https://github.com/thepowersgang/mrustc
    comment by hyperman1 · 2026-01-16
  10. 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
  11. …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
  12. …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
  13. …let alone drop order. They are definitely erased as well. Not sure how you got this so wrong). [0]: https://github.com/thepowersgang/mrustc
  14. …"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
  15. 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
  16. 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
  17. …> 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
  18. …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
  19. …worth, rust developers are already maintaining an independent C++ implementation of the language: https://github.com/thepowersgang/mrustc
  20. Incidentally C++ is the only way to bootstrap rust without rust today. https://github.com/thepowersgang/mrustc
  21. …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
  22. …aforementioned GNU Mes, in that it's a reimplementation of Rust, intended for bootstrapping rustc. https://github.com/thepowersgang/mrustc
  23. …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…
  24. 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…
  25. 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
  26. …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?
  27. ▲ 2
    Alternative Rust compiler producing C
    story by yuuta · 2022-09-12 · 1 comment
  28. …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…
  29. …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
  30. 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
  31. …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
  32. And then there's mrustc https://github.com/thepowersgang/mrustc , a Rust compiler written in C++, using LLVM.
  33. …the standard llvm-based compiler, I know of at least two others: https://github.com/Rust-GCC/gccrs https://github.com/thepowersgang/mrustc
  34. 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.
  35. ▲ 3
    Mrustc Bootstraps Rustc 1.54.0
    story by notriddle · 2022-02-26 · 0 comments
  36. …to be used for bootstrapping a Rust compiler with a C++ compiler. It produces "very ugly C". [0] https://github.com/thepowersgang/mrustc
  37. Maybe some ideas here: https://github.com/thepowersgang/mrustc
  38. …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
  39. mrustc[0] I think. [0]( https://github.com/thepowersgang/mrustc/ )
    comment by shipp02 · 2021-05-31 · in GCC Rust Monthly Report #6 May 2021
  40. 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
  41. 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?
  42. …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
  43. ▲ 3
    Mrustc Bootstraps Rustc 1.39.0
    story by sanxiyn · 2021-04-05 · 0 comments
  44. Maybe this alternative Rust compiler? https://github.com/thepowersgang/mrustc
  45. TIL https://github.com/thepowersgang/mrustc
  46. ▲ 80
    mrustc: In-progress alternative Rust compiler (to C)
    story by my123 · 2021-02-28 · 62 comments
  47. We have a way to bootstrap Rust: https://github.com/thepowersgang/mrustc
  48. 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
  49. …It would allow the support of older architectures by taking advantage of their C compilers. [0] https://github.com/thepowersgang/mrustc
  50. …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