Sign In

Communications of the ACM

ACM TechNews

Facebook's TransCoder AI Converts Code From One Programming Language Into Another


View as: Print Mobile App Share: Send by email Share on reddit Share on StumbleUpon Share on Hacker News Share on Tweeter Share on Facebook
A simple translation between coding languages.

Facebook researchers say they have developed a neural transcompiler, a system that converts code from one high-level programming language into another.

Credit: Yannic Kilcher

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.”

From VentureBeat
View Full Article

 

Abstracts Copyright © 2020 SmithBucklin, Washington, DC, USA


 

No entries found