paperbot · PL 论文追踪

全部论文 待读 收藏

P2 SAR: learning cross-language API mappings with little knowledge

SAR:用少量知识学习跨语言 API 映射
FSE Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2019匹配度 2/10 · 该论文研究跨语言 API 映射与程序翻译,属于机器学习与程序语言交叉,但与用户核心关注的静态分析、形式化验证、浮点/贝叶斯程序分析及其与 LLM/Agent 的交叉方向不符,也未涉及 LLM 或 Agentic 程序。引用 28 inbox
Nghi D. Q. Bui, Yijun Yu, Lingxiao Jiang
crossref: 2026-09-12

AI 速览

一句话:提出 SAR,在少量知识条件下学习跨语言 API 映射,以降低程序翻译对大规模平行语料的依赖。

在跨语言程序翻译中,开发者需要将一种语言使用的 API 替换为另一种语言中功能等价的 API,因此自动识别跨语言 API 映射十分关键。现有方法虽然能辅助这种翻译,但通常依赖大量平行语料,包括功能等价的 API 对、代码片段或相似代码注释,构建成本很高。该论文提出 SAR,目标是在仅有少量知识的条件下学习跨语言 API 映射,从而减少对大规模平行语料的依赖。不过,给出的摘要仅说明了问题与动机,未具体披露 SAR 的方法细节、实验设置与关键结果。

问题
如何自动识别跨编程语言之间功能等价的 API 映射,以支持程序翻译,同时避免依赖大规模平行语料。
方法
论文提出 SAR,旨在少量知识条件下学习跨语言 API 映射;摘要未展开其具体技术路线。
评估
摘要未提供评估细节,无法概括具体实验方式与结果。
原文摘要(Abstract)

To save effort, developers often translate programs from one programming language to another, instead of implementing it from scratch. Translating application program interfaces (APIs) used in one language to functionally equivalent ones available in another language is an important aspect of program translation. Existing approaches facilitate the translation by automatically identifying the API mappings across programming languages. However, these approaches still require large amount of parallel corpora, ranging from pairs of APIs or code fragments that are functionally equivalent, to similar code comments.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5069,
  title = {SAR: learning cross-language API mappings with little knowledge},
  author = {Nghi D. Q. Bui and Yijun Yu and Lingxiao Jiang},
  booktitle = {FSE},
  year = {2019},
  doi = {10.1145/3338906.3338924}
}