Skip to content

Commit d080c6f

Browse files
Add viewing suggestion to source code growth post (#40)
1 parent 5e85d3b commit d080c6f

File tree

1 file changed

+2
-0
lines changed
  • content/posts/cpython-codebase-growth

1 file changed

+2
-0
lines changed

content/posts/cpython-codebase-growth/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ published: true
1111
---
1212
![Stacked area chart showing CPython's growth from a few lines in 1990 to 2.9 million lines in 2026, broken down by language](cpython_growth.svg)
1313

14+
([Click to zoom!](https://blog.python.org/_astro/cpython_growth.CDpb_itO_ZomrED.svg))
15+
1416
While working on a patch and navigating through CPython, I got curious as to how the codebase has grown over the years. Using an interesting tool I found on the internet to *count lines of code* ([cloc](https://github.com/AlDanial/cloc)), some scripts, and some patience (thank goodness for multiple cores, or I’d be at this all day), I amassed a [1,392 commit dataset.](https://gist.github.com/StanFromIreland/bd33d5ee3c59c54cbe1f3bad2fbdb4e9) With that, and some Git spelunking for the annotations, I was able to generate the above graph.
1517

1618
Many thanks to Tim, Ned, and Hugo for their help with this little project! I plan to tidy my scripts and upload them to a repository sometime in the near future. Please feel free to use my dataset :-)

0 commit comments

Comments
 (0)