Ask HN: ChatGPT being too lazy, how would you convert Python to Java?

https://news.ycombinator.com/item?id=39449779
by guybedo • 2 years ago
1 1 2 years ago

I have a large codebase in python, i need to rewrite it in Java.

The problem isn't how to do the work, i know both Python and Java, the problem is to actually do the boring work.

I thought i could use ChatGPT to do the heavy lifting as there's thousands of lines of code.

All i can get out of it is a few lines of code, and most of the acual code, logic, etc is converted to this:

// Further processing... // Additional methods like load, compute, etc.

// Define parameters needed // Other fields and methods... // Other fields follow the same pattern // Continue with other fields // Other fields... // Methods like isHigh(), addEvent() need to be implemented based on logic

Related Stories

Loading related stories...

Source preview

news.ycombinator.com