| ▲ | mccoyb 8 hours ago |
| Cool work! Aside but 12 MB is ... large ... for such a thing. For reference, an entire HTTP (including crypto, TLS) stack with LLM API calls in Zig would net you a binary ~400 KB on ReleaseSmall (statically linked). You can implement an entire language, compiler, and a VM in another 500 KB (or less!) I don't think 12 MB is an impressive badge here? |
|
| ▲ | nine_k 6 hours ago | parent | next [-] |
| 12 MB is not large; it's like 3 minutes of watching YouTube. Actual RAM consumption is only very weakly correlated to the binary size, and that's what matters. |
| |
| ▲ | mccoyb 5 hours ago | parent [-] | | It is large compared to a stripped Zig ReleaseSmall binary with no runtime. With agents, one can take this repo, and create an extremely small binary. To your point, why even advertise the number? If that particular number is completely irrelevant in practical usage, why mention it? It seems like the point is to impress, hence my response. |
|
|
| ▲ | ipython 8 hours ago | parent | prev [-] |
| it's written in golang. 12MB barely gets you "hello world" since everything is statically linked. With that in mind, the size is impressive. |
| |
| ▲ | nuxi 6 hours ago | parent | next [-] | | golang doesn't statically link everything by default (anymore?), this is from FreeBSD: $ ls -l axe
-rwxr-xr-x 1 root wheel 12830781 Mar 12 22:38 axe*
$ ldd axe
axe:
libthr.so.3 => /lib/libthr.so.3 (0xe2e74a1d000)
libc.so.7 => /lib/libc.so.7 (0xe2e74c27000)
libsys.so.7 => /lib/libsys.so.7 (0xe2e75de6000)
[vdso] (0xe2e7366b000)
| |
| ▲ | emmanueloga_ 2 hours ago | parent | prev | next [-] | | The excessive size of Go binaries is a common complain. I last recall seeing a related discussion on Lobsters [1]. Who knows, maybe the binary could be shrunk a bit? IMHO 12mb binary size is not that big of a deal. -- 1: https://lobste.rs/s/tzyslr/reducing_size_go_binaries_by_up_7... | |
| ▲ | mccoyb 8 hours ago | parent | prev [-] | | I know off topic, but is that mostly coming from the Go runtime (how large is that about?) |
|