3 ms·
Any automatic translation is bug-compatible with the original. Did you expect it to divine some requirements? It still leave you with Rust code that you can im
by marcosdumay 2y ago
Any automatic translation is bug-compatible with the original. Did you expect it to divine some requirements?
It still leave you with Rust code that you can improve piecewise. The only question is if something like it is better than FFI calling the C code.
- bornfreddy 2y ago> Any automatic translation is bug-compatible with the original. Did you expect it to divine some requirements? That would be useless when translating C to Rust. Yes, I would expect the tool to point out the flaws in the original memory handling and only translate the corrected code. This is far from easy, since some information (intent) is missing, but a good coder could do it on decent codebases. The question is, can an automated tool do it too? We'll see.