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

1 points by mike31fr ↗ HN
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?

2 comments

[ 3.3 ms ] story [ 19.1 ms ] thread
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.
Could consider something like Sourcetrail or Codeporing