Menu

The Fractal Geometry of Software: What PyTorch and Ray's Dependency Cycles Reveal
📰

The Fractal Geometry of Software: What PyTorch and Ray's Dependency Cycles Reveal

DEV Community: python·Alexis Román·17 days ago
#HKVuOaLD
#devtopython#devto#dev#graph#modules
Reading 0:00
15s threshold

The Fractal Geometry of Software: What PyTorch and Ray's Dependency Cycles Reveal

Code search can find a function. Retrieval-augmented generation can retrieve relevant passages. Neither result, by itself, tells us how modules depend on one another.

That distinction matters. A codebase is not only a collection of text. It is also a directed structure: files import modules, modules connect to other modules, and some paths eventually lead back to where they began.

We extracted public Python import graphs for ten repositories and published the sanitized JSON in the Platino Labs Data Room . The graphs expose a structural fact that a passage search does not answer: the shape and scale of strongly connected components in the declared import graph.

From code retrieval to code structure

Retrieval systems and dependency graphs solve different problems. A retrieval system is designed to find text relevant to a query. An import graph records directed relationships declared by source code.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.