Ask HN: What tool would you use to convert a whole project to another language?

by mike31fron 2/13/2024, 9:59 PMwith 2 comments

Use case: A colleague implemented an HTTP REST API using PHP. For some specific internal reasons, we would like to convert the whole PHP project to NodeJS. All files wouldn't fit into GPT-4 context. How would you achieve this task?

by telaandrews2on 2/14/2024, 12:19 AM

Have you tried just opening it in Cursor.sh and saying "make this a [language] project instead of PHP"? Curious about the results you'd get.

by CSharpSteveon 2/14/2024, 1:45 PM

Could consider something like Sourcetrail or Codeporing