top | item 44305137

(no title)

solarized | 8 months ago

Do they use any llm to transpile the C to Rust ?

discuss

order

Twirrim|8 months ago

If you're going to use tools to transpile, don't use something that hallucinates. You want it to be precise.

https://github.com/immunant/c2rust reportedly works pretty well. Blog post from a few years ago of them transpiling quake3 to rust: https://immunant.com/blog/2020/01/quake3/. The rust produced ain't pretty, but you can then start cleaning it up and making it more "rusty"

solarized|8 months ago

So, have the "toxic" people from StackExchange migrated here too? I just asked out of curiosity and got downvoted. :Sigh

nightfly|8 months ago

Task that requires precision and potentially hard to audit? Exactly where I'd use an LLM /s

CGamesPlay|8 months ago

Without commenting on whether an LLM is the right approach, I don't think this task is particularly hard to audit. There is almost assuredly a huge test suite for bzip2 archives; fuzzing file formats is very easy; and you can restrict / audit the use of unsafe by the translator.