Re:Shrink Go binaries 7x with this one weird trick
by userbinator on Sunday April 17, 2016 @07:41PM
(#11516884)
The availability of huge disks has probably skewed the perception of sizes to some extent. 300MB is more than sufficient for an entire operating system, including a GUI and several dozen CLI tools. A full install of Windows 98 was 175MB.
On the other hand, internet speeds have not increased quite as dramatically, so we can still relate with stories of "this app is how big? And it only does what?"
Re:Shrink Go binaries 7x with this one weird trick
by agumonkey on Monday April 18, 2016 @04:41AM
(#11518496)
Said this here a few times already but since you mention it: last month I booted a win98 box. The bliss of small binaries. Everything was snappy even on a Pentium 3. Bonus point: enjoying the Turbo Pascal suite (IDE, Compiler) for a total of 800KB. I want to backport crypto, binary hardening some lisp over win98 and live in MB land (pun not intended).
Re:Shrink Go binaries 7x with this one weird trick
by skykooler on Monday April 18, 2016 @12:24AM
(#11517721)
Indeed. Just the other day I was trying (with no luck) to find a simple drawing app for Android (something like Paint on windows) that was less than 18 MB. Seriously, that sort of app should not need huge executables like that.
Re:Shrink Go binaries 7x with this one weird trick
by vetinari on Monday April 18, 2016 @04:40AM
(#11518488)
You mean something like Markers? (https://play.google.com/store/apps/details?id=org.dsandler.a...)
301 kB.
Re:Shrink Go binaries 7x with this one weird trick
by voltagex_ on Monday April 18, 2016 @01:46AM
(#11517925)
I'd bet that they're shipping all kinds of graphics libraries, and probably some support for older Android versions. What drawing app was 18MB?
Re:Shrink Go binaries 7x with this one weird trick
by hvm on Monday April 18, 2016 @04:23AM
(#11518428)
Or 15MB out of those 18MB are the 100 ad libraries bundled in that serve weird/dubious ads at best.
Re:Shrink Go binaries 7x with this one weird trick
by pmahoney on Sunday April 17, 2016 @11:23PM
(#11517534)
The amd64 Linux version of Terraform [1] unzipped uses 739 Megabytes on disk (`du -hc`). It is a collection of CLI tools, or one CLI tool that wraps many provider-specific tools (providers such as aws, azure, etc.).
I noticed this recently when trying to upload a container image that happened to include Terraform.
Re:Shrink Go binaries 7x with this one weird trick
by lmm on Monday April 18, 2016 @05:38AM
(#11518683)
Eh, 300mb, who cares? There's plenty of disk space and usually plenty of bandwidth. If it's becoming a problem for you then sure, do something about it, but I don't think 300mb is a priori a problem.
> Depends what that 30MB does, or how much of it is actually needed [....]
Moreover, let's consider a CLI tool suite. Dozen little tools, each doing perfectly what it was designed to (think of coreutils, util-linux, sysstat, binutils, or iproute2). Such a suite suddenly weighs 300MB, more than X.Org or PostgreSQL (or the two combined). Does it really do more than any of these two to justify the size? I doubt it.