Automated Cross-Platform Code Synthesis from Web-Based Programming Resources
dc.contributor.author | Byalik, Antuan | en |
dc.contributor.committeechair | Tilevich, Eli | en |
dc.contributor.committeemember | Batra, Dhruv | en |
dc.contributor.committeemember | Raghvendra, Sharath | en |
dc.contributor.department | Computer Science | en |
dc.date.accessioned | 2015-08-05T08:01:05Z | en |
dc.date.available | 2015-08-05T08:01:05Z | en |
dc.date.issued | 2015-08-04 | en |
dc.description.abstract | For maximal market penetration, popular mobile applications are typically supported on all major platforms, including Android and iOS. Despite the vast differences in the look-and-feel of major mobile platforms, applications running on these platforms in essence provide the same core functionality. As an application is maintained and evolved, programmers need to replicate the resulting changes on all the supported platforms, a tedious and error-prone programming process. Commercial automated source-to-source translation tools prove inadequate due to the structural and idiomatic differences in how functionalities are expressed across major platforms. In this thesis, we present a new approach---Native-2-Native---that automatically synthesizes code for a mobile application to make use of native resources on one platform, based on the equivalent program transformations performed on another platform. First, the programmer modifies a mobile application's Android version to make use of some native resource, with a plugin capturing code changes. Based on the changes, the system then parameterizes a web search query over popular programming resources (e.g., Google Code, StackOverflow, etc.), to discover equivalent iOS code blocks with the closest similarity to the programmer-written Android code. The discovered iOS code block is then presented to the programmer as an automatically synthesized Swift source file to further fine-tune and subsequently integrate in the mobile application's iOS version. Our evaluation, enhancing mobile applications to make use of common native resources, shows that the presented approach can correctly synthesize more than 86% of Swift code for the subject applications' iOS versions. | en |
dc.description.degree | Master of Science | en |
dc.format.medium | ETD | en |
dc.identifier.other | vt_gsexam:6052 | en |
dc.identifier.uri | http://hdl.handle.net/10919/55273 | en |
dc.publisher | Virginia Tech | en |
dc.rights | In Copyright | en |
dc.rights.uri | http://rightsstatements.org/vocab/InC/1.0/ | en |
dc.subject | Recommendation Systems | en |
dc.subject | Code Synthesis | en |
dc.subject | Mobile Computing | en |
dc.subject | Android | en |
dc.subject | iOS | en |
dc.subject | Java | en |
dc.subject | Swift | en |
dc.title | Automated Cross-Platform Code Synthesis from Web-Based Programming Resources | en |
dc.type | Thesis | en |
thesis.degree.discipline | Computer Science and Applications | en |
thesis.degree.grantor | Virginia Polytechnic Institute and State University | en |
thesis.degree.level | masters | en |
thesis.degree.name | Master of Science | en |