logoalt Hacker News

reactordevlast Tuesday at 5:59 PM2 repliesview on HN

Static linking will do that. Imagine you have 400mb of binary objects your app depends on. Libraries your company uses for app analytics, SSO, 2FA, Corporate service bus api, etc. You statically link all those for your 50mb Swift UI app and bam, you’re in the 700mb range.


Replies

chasillast Tuesday at 6:23 PM

The use of Go will definitely do that, as it prefers to statically link everything.

https://go.dev/wiki/Mobile

If we had an entire POSIX OS built with Go, then we would be back to statically-linked UNIX prior to BSD.

https://www.freecodecamp.org/news/golang-statically-and-dyna...

show 1 reply
tormehlast Tuesday at 6:31 PM

That's a lot of code, though. I can't imagine common libraries so big. The Linux kernel is less than 100mb.

show 2 replies