GPCE 2015
Mon 26 - Tue 27 October 2015 Pittsburgh, Pennsylvania, United States
co-located with SPLASH 2015
Tue 27 Oct 2015 10:30 - 11:00 at Grand Station 1 - Session 6 Chair(s): Matthew Flatt

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, the resulting changes must be replicated on all the supported platforms, a tedious and error-prone programming process. Existing 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 paper, 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.

Presentation Slides (native-2-native (1).pdf)1.68MiB

Tue 27 Oct

gpce2015
10:30 - 12:00: GPCE - Session 6 at Grand Station 1
Chair(s): Matthew FlattUniversity of Utah
gpce201510:30 - 11:00
Talk
Antuan ByalikVirginia Tech, Sanchit ChadhaVirginia Tech, Eli TilevichVirginia Tech
Media Attached File Attached
gpce201511:00 - 11:20
Talk
Dmitri MakarovUniversity of Lugano, Matthias HauswirthUniversity of Lugano, Switzerland
Media Attached File Attached
gpce201511:20 - 11:40
Talk
Bernhard RumpeRWTH Aachen University, Germany, Andreas WortmannRWTH Aachen University, Jan Oliver RingertTel Aviv University
Media Attached File Attached
gpce201511:40 - 12:00
Talk
Milan KabáčUniversity of Bordeaux / Inria Bordeaux / LaBRI, Charles ConselUniversity of Bordeaux
Media Attached