Package Managers ร  la Carte: A Formal Model of Dependency Resolution

๐Ÿ“… 2026-02-20
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
Existing package managers suffer from semantic fragmentation due to language- and operating system-specific differences, making it difficult to precisely express cross-language dependencies, versioned system or hardware requirements, and hindering effective security vulnerability tracking. To address these challenges, this work proposes Package Calculusโ€”the first unified formal model that captures the core mechanisms of mainstream package managers through semantic reduction. Serving as an intermediate representation, Package Calculus enables translation and resolution of dependencies across heterogeneous ecosystems. The model facilitates cross-language and cross-platform dependency interoperability and supports global analysis, thereby establishing a rigorous theoretical foundation and practical pathway for dependency resolution and security research.

Technology Category

Application Category

๐Ÿ“ Abstract
Package managers are legion. Every programming language and operating system has its own solution, each with subtly different semantics for dependency resolution. This fragmentation prevents multilingual projects from expressing precise dependencies across language ecosystems; it leaves external system and hardware dependencies implicit and unversioned; it obscures security vulnerabilities that lie in the full dependency graph. We present the \textit{Package Calculus}, a formalism for dependency resolution that unifies the core semantics of diverse package managers. Through a series of formal reductions, we show how this core is expressive enough to model the diversity that real-world package managers employ in their dependency expression languages. By using the Package Calculus as the intermediate representation of dependencies, we enable translation between distinct package managers and resolution across ecosystems.
Problem

Research questions and friction points this paper is trying to address.

package managers
dependency resolution
multilingual projects
dependency graph
security vulnerabilities
Innovation

Methods, ideas, or system contributions that make the work stand out.

Package Calculus
dependency resolution
formal model
cross-ecosystem
package managers
๐Ÿ”Ž Similar Papers
No similar papers found.
R
Ryan Gibb
University of Cambridge, United Kingdom
P
Patrick Ferris
University of Cambridge, United Kingdom
D
David Allsopp
Jane Street, United Kingdom
Thomas Gazagnaire
Thomas Gazagnaire
Tarides
distributed systemsfunctional programming
Anil Madhavapeddy
Anil Madhavapeddy
Professor of Planetary Computing, University of Cambridge
Computer Science