5 ms·
It's not pointless. For a start it frees you from the C toolchain so things like cross-compilation and WASM become much easier. Secondly, it's a sensible first
by IshKebab 1y ago
It's not pointless. For a start it frees you from the C toolchain so things like cross-compilation and WASM become much easier.
Secondly, it's a sensible first step in the tedious manual work of idiomatic porting. I'm guessing you didn't read the article but it's about automating some of this step too.
- krater23 1y agoThe big bloaty part it the rust toolchain, not the C toolchain. But this beside, you are now free from a C toolchain and have unmaintainable automatically generated unsafe Rust code. Don't see a win there.
- IshKebab 1y agoThe Rust toolchain is waaaay better than the C toolchain. Pretty much everyone agrees on that. And yes the generated Rust code is going to be harder to maintain, but you aren't supposed to just run c2rust and then stop. It's a starting point for converting to idiomatic Rust.
- pjmlp 1y agoCross-compilation is not hard, it appears what was used to be common knowledge about compilers and linkers nowadays is considered TL;DR; content for all pratical learning purposes.