top | item 46092367

Think twice before translating all C to Rust

9 points| rhaps0dy | 3 months ago |agarriga.substack.com

4 comments

order

cratermoon|3 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.

rhaps0dy|3 months ago

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

nacozarina|3 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.