计算机科学 > 软件工程
[提交于 2016年8月27日]
标题:Type-Directed Code Reuse using Integer Linear Programming
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In many common scenarios, programmers need to implement functionality that is already provided by some third party library. This paper presents a tool called Hunter that facilitates code reuse by finding relevant methods in large code bases and automatically synthesizing any necessary wrapper code. The key technical idea underlying our approach is to use types to both improve search results and guide synthesis. Specifically, our method computes similarity metrics between types and uses this information to solve an integer linear programming (ILP) problem in which the objective is to minimize the cost of synthesis. We have implemented Hunter as an Eclipse plug-in and evaluate it by (a) comparing it against S6, a state-of-the-art code reuse tool, and (b) performing a user study. Our evaluation shows that Hunter compares favorably with S6 and significantly increases programmer productivity.
提交历史
来自:Yuepeng Wang[v1] 2016年8月27日 星期六 22:00:09 UTC