News for hackers. Stuff that matters.
Re:Unsupervised translation of programming languages by p4bl0 on Tuesday June 09, 2020 @07:00PM (#23471902)
It says that it is possible to train the translator for any pair of languages. But they did it with C++, Java, and Python, which are all object oriented imperative languages. Would it work as well for a C++ to OCaml translation, or a Prolog to Java translation? Changing of programming paradigm can be quite tricky…
Re:Unsupervised translation of programming languages by lostcolony on Tuesday June 09, 2020 @07:57PM (#23472360)
Yeah; I was far less impressed when I saw the languages in question when I ran across this. Yes, there are extra/fewer bits to consider when translating between these, but fundamentally there is a direct translation possible, that would still be reasonably idiomatic. Translate a Java program to Erlang, though...you have to completely change the design or it's not at all idiomatic. A task scheduler wouldn't rely on a priority queue; it would rely on spinning up a process per task that would sleep until it needs to execute, for instance.
Re:Unsupervised translation of programming languages by tanilama on Tuesday June 09, 2020 @11:55PM (#23473757)
It is possible but the quality will suffer.

In NLP land, En-Fr unsupervised translation yield significantly better result than say for En-Zh translation.