Settings

Theme

Think twice before translating all C to Rust

agarriga.substack.com

9 points by rhaps0dy 2 months ago · 4 comments

Reader

cratermoon 2 months ago

"Another downside is that Fil-C is not compatible with libraries in binary form, it requires a re-compile."

My gut tells me this is only going to work for a relatively small part of the existing C code in production. Recompiling old C with new compiler is fraught with risks.

  • rhaps0dyOP 2 months ago

    Possible! But fixing this seems easier than re-writing in Rust with reasonable expectation that the software behaves the same?

    • cratermoon 2 months ago

      It depends. There's a lot of code out there old enough that reproducing is effectively lost knowledge. But also, there is some evidence that bugs are more common in new code, so rewriting that is a good idea.

nacozarina 2 months ago

Rust is clearly not stable in either toolchain or the lang, and any substantial component you make today will be an anachronism to the common Rust man 18 mos from now.

Migrating critical c code to an unstable toolchain is utter insanity, and that madness will come back to haunt everyone.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection