logoalt Hacker News

__coaxialcabal10/01/20241 replyview on HN

Have you had any success using LLMs to rewrite Python to rust?


Replies

throwup23810/01/2024

They’re very good at porting code between languages but going from a dynamically typed language with a large standard library to a static one with a large library ecosystem requires a bit more hand holding. It helps to specify the rust libraries you want to use (and their versions) and you’ll probably want to give a few rounds of feedback and error correction before the code is ready.