Hi. I recently started coding in Zig, and I love the language. However, recently (since version 0.16.0), due to the introduction of the “Io” interface, the size of a typical console “Hello, World!” has grown significantly. (About 470 KB with “-Doptimize=ReleaseSmall” and all possible optimizations in build.zig enabled.) This is happening for obvious reasons. Io entails a vtable with over 100+ functions, and this raises the question: will this issue be resolved in the future? Because, as a recent user who coded on version 0.15.2, I really liked the small binary sizes.
5 Likes
My chess engine grew 300 kb (releasefast) with zig 0.16
Don’t know why and where.