小巧却可配置:揭示软件中的空变异性
Small Yet Configurable: Unveiling Null Variability in Software
AI总结:
本文通过分析GNU coreutils中的108个程序,发现小型软件存在显著的编译时和运行时变异性,且变异性随时间增加而提升,提出空变异性软件概念,表明高可配置性不局限于大规模系统,减少冗余变异性可使软件更轻量易维护。
摘要:
许多小型软件系统,即代码库或二进制体积有限的系统,在日常任务中被广泛使用,但其可配置性仍很少被研究。同时,现代软件系统的研究显示,可配置性趋势增加,同时对构建不可变、专用和可重复的软件兴趣增长。本文首次对小型软件系统的可配置性进行了实证研究。通过分析GNU coreutils中的108个程序,我们发现即使小型程序也能表现出显著的编译时和运行时变异性,每个程序多达76个选项。然后,运行时变异性与代码库大小之间存在高相关性(0.78)。此外,分析了85个版本中最小的20个程序,发现变异性随时间增加,主要由于编译时变性的增加。这表明,将选项从运行时转移到编译时、移除不必要的运行时变性或在早期解决编译时变性,有助于减少代码库复杂性和大小。我们还首次引入了空变异性软件系统的概念,即除了必需功能外没有其他可配置性的系统。我们的发现表明,高可配置性不局限于大规模系统,减少不必要的变异性可以导致轻量、更小和更易维护的软件。我们希望这项努力有助于通过理解如何在可配置性和代码库大小之间取得平衡来设计新的软件。
英文摘要:
Many small-scale software systems, that is, with limited codebase or binary size, are widely used in everyday tasks, yet their configurability remains largely unexplored. At the same time, studies on modern software systems show a trend toward increasing configurability, alongside growing interest in building immutable, specialized, and reproducible software. In this paper, we present the first empirical study on the extent of configurability in small-scale software systems. By analyzing 108 programs from GNU coreutils, we show that even small programs can exhibit significant compile-time and run-time variability, with up to 76 options per program. Then, there is a high correlation (0.78) between run-time variability and codebase size. Furthermore, an analysis of the 20 smallest programs across 85 releases reveals that variability tends to increase over time, primarily due to the added compile-time variability. This suggests that shifting options between run-time and compile-time, removing unnecessary run-time variability, or resolving compile-time variability early, can help reduce codebase complexity and size. We also introduce, for the first time, the concept of null-variable software system, one with no configurability beyond mandatory features. Our findings show that high configurability is not exclusive to large-scale systems and that reducing unnecessary variability can lead to lightweight, smaller, and more maintainable software. We hope this effort contributes to designing new software by understanding how to balance its configurability with codebase size.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。