Facebook says its TransCoder can convert code from one high-level programming language into another.
The system, which Facebook researchers describe as “a neural transcompiler,” uses an unsupervised learning approach to translate between languages like C++, Java, and Python.
The researchers trained TransCoder on a public GitHub corpus featuring more than 2.8 million open source repositories.
To evaluate its capabilities, the researchers extracted 852 parallel functions in C++, Java, and Python from the online GeeksforGeeks platform and developed a new computational accuracy metric that tests whether hypothesis functions generate the same outputs as a reference when given the same inputs.
Wrote the researchers, “TransCoder can easily be generalized to any programming language, does not require any expert knowledge, and outperforms commercial solutions by a large margin.”
View Full Article
Abstracts Copyright © 2020 SmithBucklin, Washington, DC, USA
No entries found