Hacker News new | ask | show | jobs
by wvh 1125 days ago
My system Python tree is almost 1GB. That doesn't matter for desktop systems, but most software is published as container images these days and using a language like Python, Ruby or Perl for an image that doesn't already need it is pretty wasteful and pulls in a lot of extra dependencies.

I'm not sure there is a good alternative to sh/bash shell scripts as most dynamic languages have become pretty large dependencies these days.

1 comments

That surely includes plenty of globally installed dependencies. I looked at the package sizes for debian and it is around 100 kB for the python3 package and on the order of another 100kb for python3-minimal. Couldn’t find a cumulative install size, but it is surely not larger than a few megabytes.
Just span up a clean alpine linux container and installed python3, it added 51MB according to apk.
Arch does not do much spliting (except ruby where there is some kind of circular dependency)

Any way for: python - 75M perl - 59M ruby - 25M bash - 8M dash - 0.15M