Thursday, June 11, 2020

Facebook transcoder AI :convert code from one programming language to other

Facebook transcoder AI gives you the power to convert code from one programming language to another. It has been a year for me  that I started programming. My first language was python and then I learnt C.




I always wondered if we can create a software or an application which can convert code from one programming language to another.

Like we learn a new programming  language, our first step is learning the syntax of that language. Then we learn concepts models and dynamic programming.

Different languages like Java, C, python, ruby, rust, golang- they all must be having a different syntax. So no doubt that it will be difficult to to learn and memorize the the syntax of the language that we want to to master.

But don't worry, Facebook transcoder AI has been developed by Facebook itself, which can solve the problem of programmers.




They call it a neural trans compiler which can convert a high level programming language like python, java, c  into another programming language.That might sound like a wonder to you. But it is possible today. The technical jargon states that it is unsupervised. Now unsupervised means that this AI transcompiler performs this task of conversion without any human guidance or intervention.

In simple words, learning in the absence of a teacher is similar to unsupervised way of learning. Hope this jargon is now easy to understand.


Unsupervised Learning

You would be perplexed to know that commonwealth Bank of Australia spend over $750 million to convert its platform from COBOL to Java.Financial Giants still rely upon COBOL platform for most of their work.

With the use of unsupervised learning, this FB transcoder has been trained over about 2.8 million open source GitHub repositories.

It basically tries to map pieces of code from one language to another.   Following are principles of unsupervised machine translation, this system uses sequence to sequence model with an encoder and decoder with a transformer architecture.

Results
Although not all language conversions got a decent accuracy but The results for Java-> C++ conversion has an accuracy of 91%.




At the same time it has been found that transcoder failed to account certain variable types at the time of language generation.

Future Improvements
Facebook is  not only organisation is trying to develop a cross-platform programming language converter. Before this Microsoft's openAI built a model that used English language comments to generate entire functions. 

And two years ago, researchers at Rice University create a system BAYOU, that could write its own software by associating intense behind publicly available intents.

What do you think on Fbs Transcoder AI? What opportunities do you think it can open to non- tech guys? 
Share your views in comment section!Till then stay tuned with us and share the news!

Written by: Vikas Singh

Reference: https://venturebeat.com/2020/06/08/facebooks-transcoder-ai-converts-code-from-one-programming-language-into-another/

Labels:

3 Comments:

At June 11, 2020 at 5:43 AM , Blogger Priyanshu Srivastava said...

Great work!!

 
At June 11, 2020 at 7:33 AM , Blogger VIKI SINGH said...

Thanks buddy! N Please do share with your friends

 
At June 11, 2020 at 11:19 PM , Blogger nikhilesh bisht said...

Good one

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home