TL;DR
This paper empirically evaluates the performance and correctness of reimplementing popular third-party Python libraries using only the standard library, aided by LLMs, to assess dependency reduction feasibility.
Contribution
It introduces zerodep, a collection of stdlib-only Python modules reimplemented with LLM assistance, and systematically benchmarks their performance and correctness.
Findings
Stdlib-only implementations often achieve near-parity performance within 2x of reference libraries.
C-extension-backed computations are the main performance bottleneck.
LLM-generated reimplementations can be 5-115x faster than original libraries in some categories.
Abstract
Third-party Python libraries introduce dependency management overhead, supply chain risk, and deployment friction in constrained environments. A natural question is how much of this ecosystem can be replicated using only Python's standard library -- and at what correctness and performance cost. We address this empirically through zerodep, a growing collection of single-file Python modules, each a stdlib-only reimplementation of a popular third-party library, developed with LLM assistance under strict constraints: no external imports, single file, drop-in API compatibility, and mandatory correctness validation against the reference library. Spanning over 40 modules across 12 categories -- including serialization, networking, cryptography, agent protocols, and text processing -- zerodep provides a controlled testbed for two interrelated questions: (1) Where does the stdlib suffice? and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
