I've had much better luck with LLMs translating code from one language to another than with writing it from scratch.