4 ms·
Rust to C? Why would someone do that. Just write C.. if you can figure rust out you surely can figure C out and be proficient.
by alexpadula 2y ago
Rust to C? Why would someone do that. Just write C.. if you can figure rust out you surely can figure C out and be proficient.
- alexpadula 2y agoI will read further into the project just off the bat I don’t get the point. Good luck it looks quite extensive :)
- AS04 2y agoBecause of the niceties of Rust, combined with the widespread compatibility and architecture support of gcc / C compilers in general? Rust is a modern language, with package management, streamlined integrated build/testing tools, much less cruft, and lots of high-level features and syntax that people actually like. C is neat but complex codebases benefit from modern languages that help in building robust abstractions while still maintaining the speed of C. Not to mention, of course, the borrow checker and memory safety.
- wolrah 2y agoIt seems like there's a healthy dose of "because it can be done" in play here, but also because there are a lot of platforms that are not supported by Rust where a Rust-to-C converter that generated standard-enough code could be used to bridge the gap.
- AlotOfReading 2y agoSo you can get the benefits of Rust on platforms that rustc doesn't support. Seems pretty straightforward.
- deleted 2y ago[deleted]