rob pike on Nostr: There's been a thread about dependencies lately and the challenge of convincing ...
There's been a thread about dependencies lately and the challenge of convincing developers to look at the full dependency chain.
I once maintained a C++ binary that included a PostScript interpreter, a JPEG decoder, a JavaScript interpreter, and a number of other utterly irrelevant pieces causing a huge factor increase in the size of the binary.
The culprit: A single logging statement that invoked a general-purpose printer that could print web stuff. Switching to sprintf fixed it.
Published at
2024-03-20 21:31:04Event JSON
{
"id": "ebc16dc2794f9f652c333544a1d2c299a82e1ab1108a8074ec6847c0250f58b4",
"pubkey": "d42a5c13222abccde8bd8b069c5bac5077cfe39fb8c422d308f9d4138eb769f2",
"created_at": 1710970264,
"kind": 1,
"tags": [
[
"proxy",
"https://hachyderm.io/users/robpike/statuses/112130147225559778",
"activitypub"
]
],
"content": "There's been a thread about dependencies lately and the challenge of convincing developers to look at the full dependency chain.\n\nI once maintained a C++ binary that included a PostScript interpreter, a JPEG decoder, a JavaScript interpreter, and a number of other utterly irrelevant pieces causing a huge factor increase in the size of the binary.\n\nThe culprit: A single logging statement that invoked a general-purpose printer that could print web stuff. Switching to sprintf fixed it.",
"sig": "52661838967a3f936188b58ee34012bf7a99570394e4ce231935ab4ac1fdf32720e8f7a30758a758275d6730b26f328a82367be833b4a0046ba497dec57c99b6"
}