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. …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]…
  2. https://github.com/thepowersgang/mrustc
    comment by steveklabnik · 2020-09-04 · in Rust is not a good C replacement (2019)
  3. 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
  4. …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
  5. …It doesn't implement the borrow checker, but can successfully bootstrap a bit-identical rustc. https://github.com/thepowersgang/mrustc
  6. https://github.com/thepowersgang/mrustc/ Might want to check this out:-)
  7. Is it very bad that https://github.com/thepowersgang/mrustc calls itself a Rust compiler?
    comment by tedunangst · 2019-12-24 · in Rust's Freedom Flaws
  8. mrustc[1] can help with this issue. [1] https://github.com/thepowersgang/mrustc
  9. …done writing rustc. For a from-scratch reimplementation of (most of) a Rust frontend, see mrustc ( https://github.com/thepowersgang/mrustc ), which is written in C++, and served to demonstrate that (a prior version of) rustc did not…
    comment by kibwen · 2019-12-08 · in GCC-Rust: Rust frontend for GCC
  10. …to C code. Every platform has a C compiler (though maybe not C11, which is what mrustc targets). https://github.com/thepowersgang/mrustc
    comment by johnsoft · 2019-11-11 · in Notes on Type Layouts and ABIs in Rust
  11. https://github.com/thepowersgang/mrustc is a Rust compiler without borrow checker.
    comment by sanxiyn · 2019-10-12 · in Uber Go Style Guide
  12. mrustc is being worked on here: https://github.com/thepowersgang/mrustc/tree/nightly-1.29
    comment by muizelaar · 2019-09-16 · in Show HN: Darklang
  13. …this year :/. Last I checked, it was capable of compiling releases of rustc well past 1.0. [0]: https://github.com/thepowersgang/mrustc
    comment by ejmg · 2019-09-16 · in Show HN: Darklang
  14. …1 implementation of Rust. Rust is whatever HEAD in the Rust repository implements. That's not true: https://github.com/thepowersgang/mrustc
    comment by ChickeNES · 2019-06-22 · in C, Fortran, and single-character strings
  15. …project, but it's not something you can use to replace to compile your own arbitrary rust code. [1] https://github.com/thepowersgang/mrustc
    comment by littlestymaar · 2019-06-19 · in Debian Riscv64 port in mid 2019
  16. This is probably what you mean: https://github.com/thepowersgang/mrustc It's still a work in progress, with only x86 even supported. It's not a GCC frontend, it generates C, and is based on an old version of rust (1.19). Right now I think…
    comment by pedrocr · 2019-06-19 · in Debian Riscv64 port in mid 2019
  17. Can't you use this "alternative rust compiler. Capable of building a fully-working copy of rustc" https://github.com/thepowersgang/mrustc and a trusted C++ compiler instead?
    comment by pjtr · 2019-05-24 · in Announcing Rust 1.35.0
  18. …from Rust but setting a flag to turn borrow checker errors into warnings or something similar. https://github.com/thepowersgang/mrustc kind of does that. It assumes the input code is valid at the moment. But if you want to experiment…
  19. https://github.com/thepowersgang/mrustc is an alternative compiler for Rust.
    comment by heinrich5991 · 2019-02-07 · in About V, the language Volt is written in
  20. There’s also one that exists, so that proves it can be done: https://github.com/thepowersgang/mrustc
    comment by steveklabnik · 2019-01-11 · in Impediments to transpiling Rust to C?
  21. …explosion of surface-level constructs, or just handwave based in the intuition of control flow. - https://github.com/thepowersgang/mrustc/tree/master/src/mir this is the alternative Rust implementation's MIR. It's pretty close to the same…
    comment by Ericson2314 · 2018-12-27 · in Rust 2019 and beyond: limits to some growth
  22. …a ton of reasons to keep working on it. mrustc is effectively written entirely by one person: https://github.com/thepowersgang/mrustc/graphs/contributors It's extremely impressive, but I can also understand why trying to keep up doesn't…
    comment by steveklabnik · 2018-12-15 · in Bootstrapping Rust
  23. mrustc [1] compiles rust to optimized C also. 1. https://github.com/thepowersgang/mrustc
    comment by karavelov · 2018-11-09 · in Writing Network Drivers in Rust [pdf]
  24. …it would increase pressure to actually port it there or to use another compiler like mrustc[0] [0] https://github.com/thepowersgang/mrustc
    comment by dmytrish · 2018-09-20 · in Adding Mercurial support to Gitlab
  25. …event c99 supported. I was thinking about rust to C compiler [1], but thats require c11 support. 1. https://github.com/thepowersgang/mrustc
    comment by tov_objorkin · 2018-03-01 · in Should you Rust in embedded yet?
  26. https://github.com/thepowersgang/mrustc
    comment by steveklabnik · 2018-02-28 · in Is C the Best Embedded Programming Language?
  27. ... and the hope is that https://github.com/thepowersgang/mrustc will let us do this for Rust.
    comment by steveklabnik · 2017-12-04 · in Integrating “safe” languages into OpenBSD?
  28. There was a new implementation of rust in c++ https://github.com/thepowersgang/mrustc
    comment by earenndil · 2017-10-07 · in C2 Programming Language: An Evolution of C
  29. ▲ 182
    Mrustc: a Rust compiler written in C++
    story by mabynogy · 2017-09-21 · 121 comments
  30. ▲ 4
    Mrustc: alternative Rust compiler written in C++
    story by adamnemecek · 2017-09-20 · 0 comments
  31. There's been some experimentation with using https://github.com/thepowersgang/mrustc to target the ESP8266: https://github.com/emosenkis/arduino-esp-rs The same would work for the ESP32.
  32. …the only thing stopping me from putting rust into production. I have high hopes for something like https://github.com/thepowersgang/mrustc
    comment by jjnoakes · 2017-06-15 · in System programming in Rust: beyond safety
  33. What are these implementations? The one I immediately found by searching ( https://github.com/thepowersgang/mrustc ) is accompanied by an explicit nongoal to correctly implement the language. It also doesn't seem particularly independent…
    comment by cwzwarich · 2017-05-15 · in Two years of Rust
  34. …more platforms, though you should still develop with the official rustc for the borrow checking. 1: https://github.com/thepowersgang/mrustc
    comment by zeotroph · 2017-02-07 · in Rust's 2017 Roadmap
  35. https://github.com/thepowersgang/mrustc is getting closer. Currently it can compile rustc through to failing codegen.
    comment by muizelaar · 2017-01-05 · in Librsvg now requires Rust
  36. Someone has tried to do something along those lines: https://github.com/thepowersgang/mrustc/blob/master/README.m... > Thankfully, (from what I have seen), the borrow checker is not needed to compile rust code (just to ensure that it's…
    comment by comex · 2016-12-02 · in Reflections on Rusting Trust
  37. …path and type resolution is the tough part and so far we only have one implementation of that. https://github.com/thepowersgang/mrustc exists, anyway. I don't think it can compile rustc yet.
    comment by Manishearth · 2016-12-02 · in Reflections on Rusting Trust
  38. As for alternate implementations, https://github.com/thepowersgang/mrustc . As for specification, https://github.com/rust-lang/rfcs/pull/1643 is what's currently happening, i.e. specifying exactly how unsafe code behaves (this is more…
    comment by Manishearth · 2016-10-05 · in The cost of forsaking C
  39. ▲ 4
    Alternative Rust Compiler
    story by miqkt · 2016-08-16 · 2 comments
  40. There are two nascent alternative Rust compiler projects that I know of. One is https://github.com/thepowersgang/mrustc , which does not aim to be a GCC or LLVM front-end, and seems aimed at bootstrapping rust on platforms with only C/C++…
    comment by dikaiosune · 2016-08-10 · in Rust compiler walk-through – Introduction