Hacker News new | ask | show | jobs
by bradfitz 1896 days ago
To promote my own tool, https://github.com/bradfitz/shotizam lets you drill down into why Go binaries are large without having to make up terms like "dark bytes".
3 comments

If physicists can have dark matter and dark energy, then why can't we have dark bytes? Why should we let the physicists have all the dark fun?
Because it's genuinely unknown what those are, figuring out what these bytes are is just a deep dive into the opensource go compiler at worst or just asking around on some go channels for much less effort.
You're taking a joke too serious :-)
Sadly it doesn't work with Go 1.16 :(( https://github.com/bradfitz/shotizam/issues/10
Oh right :)
This code, if I'm reading it right, uses the symbol table and ELF section headers.

As explained in OP, the sum of sizes advertised in the symtable and ELF section headers does not add up to the final binary size. The shotizam tool is thus blind to that difference.

This sounds like a bug to me, not nefarious intent.
What in my reply suggests I assumed nefarious intent?

Brad is a good person, it's the code we're talking about here.