3 ms·
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 se
by reactordev 9mo ago
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.
- chasil 9mo agoThe use of Go will definitely do that, as it prefers to statically link everything. https://go.dev/wiki/Mobile 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-dynamically-linked-go-binaries/ https://www.freecodecamp.org/news/golang-statically-and-dyna...
- reactordev 9mo agocan you build a Swift UI in go?
- chasil 9mo agoThere is a single mention of Swift on the developer page that I posted. "Note that you can also invoke GoHelloGreetings from Swift by importing Hello." @import Hello // ... let msg = Hello.GoHelloGreetings("gopher")
- reactordev 9mo agoOh lord…
- tormeh 9mo agoThat's a lot of code, though. I can't imagine common libraries so big. The Linux kernel is less than 100mb.
- lxgr 9mo agoThe neat thing about code is that there's no upper limit on how inefficient one can get.
- HPsquared 9mo agoIt's literally "work expands to fill the available time" (s/time/cycles and memory/)
- yobbo 9mo agoThat would be the source code. The default debian kernel is around 12 MB but it could be much smaller. It doesn't bundle full random external libraries compiled with debugging symbols and "whatever other stuff".