18 ms·
Think twice before translating all C to Rust
- cratermoon 10mo 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 10mo agoPossible! But fixing this seems easier than re-writing in Rust with reasonable expectation that the software behaves the same?
- cratermoon 10mo agoIt 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 10mo agoRust 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.