4 ms·
> 35MB seems relatively small already 35 MB is huge! Are there any assets inside the binary?
by pantalaimon 6y ago
> 35MB seems relatively small already
35 MB is huge!
Are there any assets inside the binary?
- cesarb 6y ago> 35 MB is huge! For context, 35MB is two and a half boxes of high-density floppy disks. There were whole operating systems, complete with applications, smaller than that.
- pantalaimon 6y agoWere? My initrd + vmlinuz is still smaller than that today on a stock Ubuntu kernel.
- perl4ever 6y agoI remember when a OO framework like MacApp would produce a minimal "hello world" program that took up hundreds of KB and that was considered almost too bloated to be usable. I can't remember exactly how much, but the better part of a floppy to do nothing was ridiculous.
- erik_seaberg 6y agoSeems like a culture clash between “why would you not use your distro’s shared libraries?” and “containerize all the things!”
- qiqitori 6y agoAren't Go binaries completely static? That sort of is a large part of an operating system (the libraries minus hardware-related libraries) -- Just add a kernel (tens of MB) and whatever userland stuff you need to get your hardware to work (which could be "nothing" in some cases) and you're ready to go.
- pjmlp 6y agoQNX used to be shipped on a single high density floppy.
- distortedsignal 6y agoThere are no assets (other than a helpfile) inside the binary. This is (compiled) 35 MB of Golang.
- wlll 6y agoWhat OS/arch? I have a small program that compies to 16MB, 14 with -w on OS X. Compiling for Linuxx with -w results in a 14MB binary too.
- distortedsignal 6y agoThis is a binary with ~1800 LoC including comments and generous whitespace. Probably 16-1700 Executable SLoC. Mostly some API handling, file reading, and user input requests. I'm running the following go version: go version go1.14.4 darwin/amd64 Looks like the Linux and Darwin versions of the binaries are only a few hundred kb different.
- deleted 6y ago[deleted]
- jmalicki 6y agoFor context, the Starbucks app on Android is 92MB. My bank's app is 180MB. They might have assets, but modern app size has become ridiculous.
- pjmlp 6y agoThey are mostly assets or frameworks like React Native, Flutter, Xamarin what have you. Native Android doesn't need such big sizes.