Is Translating Code Between Programming Languages Still a Problem Worth Solving?
Asked by
+61 sewing patterns
I'm working on a school project about a deterministic code translation tool, but before I start building it, I want to understand whether this is still a meaningful problem or whether existing translators and AI have mostly solved it. Have you ever needed to convert code from one programming language to another? What approach did you useโAI, an automated translator, or manual rewritingโand how reliable was the result? I'm especially interested in cases where the generated code was incorrect, inefficient, or subtly changed the original behavior. Honest criticism would help me identify the limitations of current tools and decide whether there is a worthwhile problem for my project to address.
Answers
A good school-project scope would be one specific language pair with a deliberately limited feature set. Clearly reject unsupported constructs instead of generating questionable output, then compare your results with an existing translator and an AI system using the same test suite. That would let you demonstrate exactly where each approach succeeds or fails.
Reply to this answer
There are definitely real use cases. For example, Java-to-JavaScript tools can make existing code usable on another platform. The difficult part isnโt just producing syntax that runsโitโs preserving the original behavior. A deterministic translator can repeat the same mistake every time if it doesnโt account for differences in operators, types, libraries, edge cases, and performance.
Reply to this answer
The assignment may be primarily about learning parsing, language structure, and translationโnot necessarily creating a tool that solves an untouched commercial problem. Even if AI can generate a translation, someone still needs enough understanding to verify whether the result is correct. Building a small translator can be valuable for that reason.
Reply to this answer
The general problem is usually called transpiling, compiling, or porting, depending on what is being converted. Tools such as the TypeScript compiler and CoffeeScript handle common language-to-language transformations, while porting can also involve moving code to a different platform. AI is another option now, but it still needs careful review.
Reply to this answer
Add your answer
Answers are reviewed before publication.
+61 sewing patterns: That makes sense. Iโm not planning to have AI write the project for meโIโm trying to understand whether the problem itself is already well covered and where current tools still struggle.