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
20082026
-
…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 -
…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 -
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…
comment by VorpalWay · 2026-10-05 · in Mold Linker Version 3.0.0 Release – Rewritten in Rust -
This exists: https://github.com/thepowersgang/mrustc .
comment by afdbcreid · 2026-10-05 · in Mold Linker Version 3.0.0 Release – Rewritten in Rust -
…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
comment by lioeters · 2026-07-02 · in crustc: entirety of `rustc`, translated to C -
…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…
comment by Philpax · 2026-02-05 · in We tasked Opus 4.6 using agent teams to build a C Compiler -
…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 -
I assume mrustc is capable of bootstrapping rust? https://github.com/thepowersgang/mrustc
comment by hyperman1 · 2026-01-16 -
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 -
…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 -
…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 -
…let alone drop order. They are definitely erased as well. Not sure how you got this so wrong). [0]: https://github.com/thepowersgang/mrustc
comment by aw1621107 · 2025-10-08 · in A comparison of Ada and Rust, using solutions to the Advent of Code -
…"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 -
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 -
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
comment by SushiHippie · 2024-08-26 · in Bootstrap a Linux system from a 512 byte binary seed with 170 steps -
…> 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 -
…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 -
…worth, rust developers are already maintaining an independent C++ implementation of the language: https://github.com/thepowersgang/mrustc
comment by gpm · 2023-12-18 · in Progress toward a GCC-based Rust compiler -
Incidentally C++ is the only way to bootstrap rust without rust today. https://github.com/thepowersgang/mrustc
comment by lrvick · 2023-11-23 · in I think C++ is still a desirable coding platform compared to Rust -
…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
comment by hobofan · 2023-11-10 · in Rust – Faster compilation with the parallel front-end in nightly -
…aforementioned GNU Mes, in that it's a reimplementation of Rust, intended for bootstrapping rustc. https://github.com/thepowersgang/mrustc
comment by thaliaarchi · 2023-10-26 · in Running the "Reflections on Trusting Trust" Compiler -
…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…
comment by kouteiheika · 2023-09-19 · in Forty years of GNU and the free software movement -
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…
comment by dannymi · 2022-11-13 · in A brief interview with Common Lisp co-creator Dr. Scott Fahlman -
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 -
…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? -
…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…
comment by rzzzt · 2022-08-28 · in Copilot: Realtime programming language and runtime verification framework -
…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 -
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 -
…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 -
And then there's mrustc https://github.com/thepowersgang/mrustc , a Rust compiler written in C++, using LLVM.
comment by dannymi · 2022-06-17 · in Adding a Rust compiler front end to GCC [video] -
…the standard llvm-based compiler, I know of at least two others: https://github.com/Rust-GCC/gccrs https://github.com/thepowersgang/mrustc
comment by ______-_-______ · 2022-05-03 · in Will Hare replace C? Or Rust? Or Zig? Or anything else? -
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.
comment by speed_spread · 2022-04-22 · in Snowman native code to C/C++ decompiler for x86/x86_64/ARM -
…to be used for bootstrapping a Rust compiler with a C++ compiler. It produces "very ugly C". [0] https://github.com/thepowersgang/mrustc
comment by paavohtl · 2021-12-19 · in Show HN: IR stove thermometer, firmware in Rust -
Maybe some ideas here: https://github.com/thepowersgang/mrustc
comment by tyingq · 2021-08-01 · in Lang Jam: create a programming language in a weekend -
…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 -
mrustc[0] I think. [0]( https://github.com/thepowersgang/mrustc/ )
comment by shipp02 · 2021-05-31 · in GCC Rust Monthly Report #6 May 2021 -
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 -
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?
comment by pedrocr · 2021-05-23 · in Rustc_codegen_GCC can now run libcore’s tests and pass most of them -
…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 -
Maybe this alternative Rust compiler? https://github.com/thepowersgang/mrustc
comment by xet7 · 2021-03-02 · in Weird architectures weren't supported to begin with -
TIL https://github.com/thepowersgang/mrustc
comment by ithkuil · 2021-02-28 · in Weird architectures weren't supported to begin with -
We have a way to bootstrap Rust: https://github.com/thepowersgang/mrustc
comment by wizzwizz4 · 2021-02-18 · in Mitigating Memory Safety Issues in Open Source Software -
…It would allow the support of older architectures by taking advantage of their C compilers. [0] https://github.com/thepowersgang/mrustc
comment by imtringued · 2021-02-11 · in dev-python/cryptography to use rust, killing alpha, hppa, ia64, m68k, s390 -
…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 -
…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]…
comment by karavelov · 2020-11-28 · in AWS hires Rust compiler team co-lead Felix Klock -
https://github.com/thepowersgang/mrustc
comment by steveklabnik · 2020-09-04 · in Rust is not a good C replacement (2019) -
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 -
…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 -
…It doesn't implement the borrow checker, but can successfully bootstrap a bit-identical rustc. https://github.com/thepowersgang/mrustc
comment by steveklabnik · 2020-03-31 · in “C is how the computer works” is a dangerous mindset for C programmers