News for hackers. Stuff that matters.
Re:Self-Contained Pure-Go Web Server with Lua, MD, HTTP/2, Q... by sagichmal on Thursday April 04, 2019 @10:49PM (#19579231)
Who cares? Literally, what problem does it cause, or what does it make worse? It is totally immaterial.
Re:Self-Contained Pure-Go Web Server with Lua, MD, HTTP/2, Q... by takeda on Thursday April 04, 2019 @10:59PM (#19579271)
- increases amount of time to fetch and run container (it actually is quite noticeable when you have app that scales out and you updating it)

- it increases amount of storage to store multiple versions of containers (when you have an internal app and do frequent releases it adds quickly)

- it increases amount of data transferred on every deployment

- increases amount of memory used (the whole point of containers, was to efficiently use hardware (BORG), although a lot of people today miss that reason and run containers on VMs)

Re:Self-Contained Pure-Go Web Server with Lua, MD, HTTP/2, Q... by yetanotherme on Friday April 05, 2019 @12:47AM (#19579783)
True. Luckily, most Go binaries can be upx'd ( https://upx.github.io/ ) for a fraction of their original size. Just put it into your Dockerfile as a part of the build process.
Re:Self-Contained Pure-Go Web Server with Lua, MD, HTTP/2, Q... by penagwin on Friday April 05, 2019 @09:55AM (#19582483)
This works and helps with storage/transit. Word of warning though that many AV like to flag UPX'd executables (only important if it's not an internal tool), and it'll take even longer for it to start, and will use more memory. My understanding is it essentially does standard compression on the executable and appends the decompression part on the front of it.
Re:Self-Contained Pure-Go Web Server with Lua, MD, HTTP/2, Q... by xyproto on Sunday April 07, 2019 @09:37AM (#19596683)
With UPX the entire docker image with Algernon takes only 9MB.
Re:Self-Contained Pure-Go Web Server with Lua, MD, HTTP/2, Q... by TickleSteve on Friday April 05, 2019 @01:07AM (#19579875)
You have to ask yourself what is that space used for??

They're all compiled languages doing (roughly) the same operations. There is an order of magnitude difference in the number of instructions in one compared to the other.

Apache is more likely to be entirely cached whereas the others aren't.

Size matters for performance.... if you're not CPU bound, fine, but to say its immaterial is naive.

Re:Self-Contained Pure-Go Web Server with Lua, MD, HTTP/2, Q... by xg15 on Friday April 05, 2019 @08:24AM (#19581786)
Even if we don't know which particular problem it might cause right now, being wasteful when you can avoid it is never a good idea.

Image size is currently not the most important metric, but - guessing how your average node.js package already looks today - demanding people ignore it completely will probably set you on the road of multi TB images that also contain the developer's favorite desktop environment in the medium future.