Researchers Develop New System That Allows the Transferring of Code Across Programs
A new system has been created by researchers at MIT’s Computer Science and Artificial Intelligence Laboratory (CSAIL) that will enable programmers to transfer code from one program to another.

A new system has been created by researchers at MIT’s Computer Science and Artificial Intelligence Laboratory (CSAIL) that will enable programmers to transfer code from one program to another. All the programmer has to do is simply select the code from one program and choose where to insert it in the next. Then, the system will do all the necessary modifications to ensure it works correctly in the new program.
This remarkable new system has been nicknamed CodeCarbonCopy and was showcased recently at the Association for Computing Machinery’s Symposium on the Foundations of Software Engineering. “CodeCarbonCopy enables one of the holy grails of software engineering: automatic code reuse,” confirmed Stelios Sidiroglou-Douskos, a research scientist at CSAIL and first author on the paper. “It’s another step toward automating the human away from the development cycle.”
A total of eight experiments were carried out by the researchers where they used CodeCarbonCopy to transfer code between six of the most popular image-processing programs. Out of the eight transfers, seven were successful with the new program functioning as it should. With CodeCarbonCopy the first step in transferring code is to give both programs the same input file. The system then has a chance to compare how each program processes the file. With this information intact, the system identifies any correspondences between the variables and presents them to the user. It also presents any variables it was unable to find matches for in the recipient together with the variable’s original definitions.
In order to map these data representations across programs, CodeCarbonCopy examines the values that both programs store in its memory. Then, if a systematic relationship is found between the two programs it will generate a set of operations for how to go about transferring the code. This system can be used for file formats such as images and with programs such as image processors. Moving forward, the researchers will be looking at a way to generalize their approach to allow more flexibility and can use data structures other than arrays.
More News to Read
- Meet Robo R2 – The High-Performance 3D Printer With WiFi
- Scientists Discover a New Way to Repair DNA
- Your Newborn Baby Keeps you Up All Night, Tranquilo Mat Here to Help
- Potential Treatment Discovered for Controlling Bleeding Brains After Strokes
- Hubble Telescope Reveals Unusual Object in the Asteroid Belt
Related Coverage
- Does the Answer to Better Patient Care Lie in Machine Learning?
- How To Improve Rapid Software Program Development Procedures
- Synthetic Biology Takes Another Leap Forward with the Development of New Circuitry
- Now Quantum Computers Can Send Information Using a Single Particle of Light
- Jumping Gene and Bacterial Gene-Editing System Join Forces
Don't miss new tech stories on Google
Add TrendinTech once in the Google app and our stories appear in your news suggestions.
Yusuf Demir
Yusuf Demir is the Cloud & Software Reporter at TrendinTech, where he covers cloud infrastructure, enterprise platforms, developer tools and the digital transformation of businesses in the UK and the United States. He previously reported on enterprise technology for The Register in London and covered the cloud and SaaS beat for TechCrunch, following the competition between AWS, Microsoft Azure and Google Cloud, the open source licensing disputes and the rise of Kubernetes. Yusuf holds an MEng in Computing from Imperial College London and speaks regularly at KubeCon and AWS re:Invent, where he moderates conversations with engineers and chief technology officers. He is most interested in the gap between vendor roadmaps and the systems engineers actually run, and in what the cloud bill looks like once the free credits expire.
All stories by Yusuf Demir (294)