MIT's new tool automatically rewrites the old code for new software
Writing computer software requires many cut-and-paste steps. It is also only part of the normal workflow - find a solution on Google, copy from Stack Overflow (or another source) and include it in the code. The final step will include some editing, rewriting, debugging.
Earlier this month, a team of scientists at MIT's CSAIL Lab revealed a new system that automatically puts code from one program to another.
The tool called CodeCarbonCopy (CCC) works by comparing the execution of the two software, then updating the variable name, representing the data with the source code. For example, if the original program called x, CodeCarbonCpy will find and replace the variables in the new code with the name x.
The work sounds normal but requires a basic understanding of what each software really does, as a variable makes sense in a certain context and how the software uses it.
Similar to data representation. This is a very interesting issue. CCC resolves by giving each software an input file and see what each will do. The result is a representative symbol of each value that the two software computes.
Transfer code from this software to another software automatically by CCC
In addition, CCC is also capable of detecting the functionality in the code used by the core software that the original software capital does not use.
The MIT team has experimented with 8 times of transcoding between 6 software, including VLC, mtPaint and MPlayer. During 7 transfers, the function is successfully kept during the transfer. At the 8th time from mtPaint to bmp2tiff, CCC cannot work because there are some strange data structures.
There is an anecdote that still communicates among developers about automation, that is, we will soon outsource to programming machines. CCC will not have good news then. But now rest assured that the system still needs human intervention.
People will have to determine the code to be transferred from the original program and the function to be transferred. CCC also takes a lot of time to work, the longest time when testing is 12 minutes.
You should read it
- Standard color encoding for programmers and designers
- Multiple choice questions about programming with P1 prize
- 10 best programming games to test and develop your coding skills
- Share free programming bookstores for you to read restlessly
- Should we learn many programming languages or just one?
- 27 things I wish I knew before programming
- How to build a QR Code generator using React
- C ++ exercises have solutions (sample code)
May be interested
- Raspberry Pi Foundation introduces Code Editor, a simple and useful online code editing toolprogramming can be considered a difficult skill to learn, especially for young people. if you are looking to learn or teach your friends and family about programming from a fundamental perspective, a new service from the raspberry pi foundation can serve as a useful tool.
- How to automatically wrap lines in Excel (Wrap Text in Excel)the line break in excel is not as simple as pressing enter as in ms word software. today, dexterity software will guide you to the warp text tool to automatically wrap lines that match the width of the column!
- 10 best free HTML editing tools for Windows 2018a good html editor must have a spell checker, line number, autocomplete, page preview and a text and image editing tool. there are many types of editing tools (text, object and wysiwyg), so it is important to find an appropriate tool.
- How to kill virus automatically delete Unikey, Vietkey, Zalo on the computera new malicious code that works similarly to wannacry, using the ms17-010 vulnerability can delete vietkey, unikey or zalo on the computer. so how to prevent this malicious code?
- How to disable Chrome Software Reporter Toolin this article, tipsmake.com will explain in detail what chrome software reporter tool is and also provide you with 2 easy ways to permanently disable chrome software reporter tool.
- Detecting vulnerabilities in the QR code reader tool of iOS 11 may trick users into accessing malicious websitesinfosec has just discovered a security flaw in the qr code reader tool of the ios 11 camera app that could trick users into accessing malicious websites they didn't know.
- The software automatically updates the best Driver for computersthis article introduces 2 best software automatically updated drivers for your computer to help you reduce time and do not worry about driver problems after reinstalling win.
- Risk of ransomware infection when downloading crack software onlineresearchers from cybersecurity firm sophos have discovered another malicious code distribution network hiding in the shadow of cracked software. because of wanting to use software without paying royalties, many people have become victims of cybercrime.
- How to automatically display names when entering code in Excelinstead of entering names and entering code in excel, users can combine the if and vlookup functions to automatically display the name when entering the code.
- Code Snippet in VS 2005one of the most prominent features in vs2005 is the use of code snippet. this is a utility that helps develop applications faster by automatically inserting the commonly used program code into the editing environment, so that the programmer will be able to