Comment by IshKebab

Comment by IshKebab 2 days ago

3 replies

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.

pjmlp 15 hours ago

Cross-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.

krater23 a day ago

The 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 a day ago

    The 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.