EUVIMEDEUVIMED entdecken
Crossref

Mapping APIs in Dynamic-typed Programs by Leveraging Transfer Learning

Zhenfei Huang, Junjie Chen, Jiajun Jiang, Yihua Liang, Hanmo You, Fengjie Li

ACM Transactions on Software Engineering and Methodology · 31.05.2024 · 33 (4) · 1-29

DOI: 10.1145/3641848 ↗

Kurz gefasst

Fachartikel in der Zeitschrift ACM Transactions on Software Engineering and Methodology, online erschienen am 18.04.2024. Verfasst von Zhenfei Huang und 5 weiteren Autor:innen. Die Arbeit wurde bisher 11-mal zitiert (Crossref) und nennt 89 Literaturangaben. Gefördert von: National Natural Science Foundation of China.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Application Programming Interface (API) migration is a common task for adapting software across different programming languages and platforms, where manually constructing the mapping relations between APIs is indeed time-consuming and error-prone. To facilitate this process, many automated API mapping approaches have been proposed. However, existing approaches were mainly designed and evaluated for mapping APIs of statically-typed languages, while their performance on dynamically-typed languages remains unexplored. In this article, we conduct the first extensive study to explore existing API mapping approaches’ performance for mapping APIs in dynamically-typed languages, for which we have manually constructed a high-quality dataset. According to the empirical results, we have summarized several insights. In particular, the source code implementations of APIs can significantly improve the effectiveness of API mapping. However, due to the confidentiality policy, they may not be available in practice. To overcome this, we propose a novel API mapping approach, named Matl , which leverages the transfer learning technique to learn the semantic embeddings of source code implementations from large-scale open-source repositories and then transfers the learned model to facilitate the mapping of APIs. In this way, Matl can produce more accurate API embedding of its functionality for more effective mapping without knowing the source code of the APIs. To evaluate the performance of Matl , we have conducted an extensive study by comparing Matl with state-of-the-art approaches. The results demonstrate that Matl is indeed effective as it improves the state-of-the-art approach by at least 18.36% for mapping APIs of dynamically-typed language and by 30.77% for mapping APIs of the statically-typed language.

Förderung

  • National Natural Science Foundation of China

Zitieren

APA

Huang, Z., Chen, J., Jiang, J., Liang, Y., You, H., & Li, F. (2024). Mapping APIs in Dynamic-typed Programs by Leveraging Transfer Learning. ACM Transactions on Software Engineering and Methodology, 33(4), 1-29. https://doi.org/10.1145/3641848

Vancouver

Huang Z, Chen J, Jiang J, Liang Y, You H, Li F. Mapping APIs in Dynamic-typed Programs by Leveraging Transfer Learning. ACM Transactions on Software Engineering and Methodology. 2024;33(4):1-29. doi:10.1145/3641848

BibTeX
@article{Huang2024,
  author = {Huang, Zhenfei and Chen, Junjie and Jiang, Jiajun and Liang, Yihua and You, Hanmo and Li, Fengjie},
  title = {Mapping APIs in Dynamic-typed Programs by Leveraging Transfer Learning},
  journal = {ACM Transactions on Software Engineering and Methodology},
  year = {2024},
  volume = {33},
  number = {4},
  pages = {1--29},
  doi = {10.1145/3641848}
}
Kostenlos starten →