2023 · 10 citations · 18 references
ComputingCybersecurityFault ToleranceFault-tolerant SystemsSecure Software DevelopmentDependency ManagementDependency ParsingPackage ManagementRedundancy ManagementSoftware MaintenanceVulnerability ManagementBug FixingCode Size OptimizationDependency OptimizationDependency Tree EvaluationDependency Vulnerability ManagementPackage Dependency ManagementSoftware Development MethodologySoftware Package Dependencies
Package managers such as NPM have become essential for software development. The NPM repository hosts over 2 million packages and serves over 43 billion downloads every week. Unfortunately, the NPM dependency solver has several shortcomings. 1) NPM is greedy and often fails to install the newest versions of dependencies; 2) NPM's algorithm leads to duplicated dependencies and bloated code, which is particularly bad for web applications that need to minimize code size; 3) NPM's vulnerability fixing algorithm is also greedy, and can even introduce new vulnerabilities; and 4) NPM's ability to duplicate dependencies can break stateful frameworks and requires a lot of care to workaround. Although existing tools try to address these problems they are either brittle, rely on post hoc changes to the dependency tree, do not guarantee optimality, or are not composable. We present Pacsolve, a unifying framework and implementation for dependency solving which allows for customizable constraints and optimization goals. We use Pacsolve to build Maxnpm, a complete, drop-in replacement for NPM, which empowers developers to combine multiple objectives when installing dependencies. We evaluate Maxnpm with a large sample of packages from the NPM ecosystem and show that it can: 1) reduce more vulnerabilities in dependencies than NPM's auditing tool in 33% of cases; 2) chooses newer dependencies than NPM in 14% of cases; and 3) chooses fewer dependencies than NPM in 21% of cases. All our code and data is open and available.
18
Potassco: The Potsdam Answer Set Solving Collection
Martin Gebser, Benjamin Kaufmann, Roland Kaminski et al. · AI Communications · 2011 · 471 citations
Todd Gamblin, Matthew LeGendre, Michael Collette et al. · 2015 · 279 citations
Growing solver-aided languages with rosette
Emina Torlak, Rastislav Bodík · 2013 · 185 citations
OPIUM: Optimal Package Install/Uninstall Manager
Chris Tucker, David Shuffelton, Ranjit Jhala et al. · 2007 · 87 citations · Full text