arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1709.04638cs.SE
收藏

微包装的影响--基于npm JavaScript生态系统的实证研究

On the Impact of Micro-Packages: An Empirical Study of the npm JavaScript Ecosystem

Raula Gaikovina Kula, Ali Ouni, Daniel M. German, Katsuro Inoue

摘要:

用户贡献的开源软件(OSS)生态系统的兴起表明了它们在软件工程学科中的普遍性。图书馆通过在整个生态系统中相互依赖来共同工作。从这些生态系统中出现了一个最小化的库,称为微包。当一个关键的生态系统依赖性的中断对不知情的用户产生影响时,微包就成了问题.在本文中,我们研究了微包在npm JavaScript生态系统中的影响。具体来说,我们对169,964个JavaScript npm包进行了实证研究,以了解(i)微包的普遍现象,(ii)微包继承的大小依赖性以及(iii)开发人员使用成本(即,获取、安装、加载时间)。研究结果发现,微包构成了npm生态系统的重要组成部分。除了易于阅读和理解之外,我们还展示了一些微包具有很长的依赖链,并且与其他npm包一样会产生同样多的使用成本。我们设想,这项工作激发了开发人员意识到他们的第三方依赖关系对软件生态系统中的关键变化有多敏感的需求。

英文摘要:

The rise of user-contributed Open Source Software (OSS) ecosystems demonstrate their prevalence in the software engineering discipline. Libraries work together by depending on each other across the ecosystem. From these ecosystems emerges a minimized library called a micro-package. Micro- packages become problematic when breaks in a critical ecosystem dependency ripples its effects to unsuspecting users. In this paper, we investigate the impact of micro-packages in the npm JavaScript ecosystem. Specifically, we conducted an empirical in- vestigation with 169,964 JavaScript npm packages to understand (i) the widespread phenomena of micro-packages, (ii) the size dependencies inherited by a micro-package and (iii) the developer usage cost (ie., fetch, install, load times) of using a micro-package. Results of the study find that micro-packages form a significant portion of the npm ecosystem. Apart from the ease of readability and comprehension, we show that some micro-packages have long dependency chains and incur just as much usage costs as other npm packages. We envision that this work motivates the need for developers to be aware of how sensitive their third-party dependencies are to critical changes in the software ecosystem.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑