Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You will need to generate code for the target which means LLVM/Clang (a C++ project) must support at the very least some amount of codegen for that target.


You can use the cranelift backend, written in Rust, if you prefer. Nothing about LLVM being the best choice by default has to do with the choice of implementation language.


Or more likely for something that needs to be high performance mrustc, but you obviously have to be careful there.


mrustc is written in C++, so I don't see how it's a counter to what the parent is proposing. I also don't know anything about mrustc's performance characteristics, I didn't think performance was a goal, but it's also been a while since I've checked in on it.


Oh right, I don't even know if there's a C compiler that's not written in C++ that can compile the output of mrustc anyway, so there's that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: