top | item 42623230

(no title)

bieganski | 1 year ago

> while there's also a push to statically link everything

could you elaborate? who is pushing and what?

dynamic linking has it pitfalls, often it's a pain, but it has big big profits as well.

discuss

order

dspillett|1 year ago

> > while there's also a push to statically link everything

> could you elaborate? who is pushing and what?

I don't know of a more general movement, but Go developers seem very eager/proud about the single-binary thing. It can make deployments, particularly updates, much less issue prone.

makapuf|1 year ago

Well, if you're deploying in a container where the only useful userspace program is your http server web API, embedding the whole clib and cpplib just for a few functions, it is smaller and simpler to deploy to use static linking.