3 ms·
> My experiments with a "hello world" program resulted in a 1.7MB binary and a directory of library files that occupied a further 91MB lol
by nineteen999 11mo ago
> My experiments with a "hello world" program resulted in a 1.7MB binary and a directory of library files that occupied a further 91MB
lol
- pjmlp 11mo agoIf you want to LOL even more, see Rust or Go with a full static linked binary without using something like UPX.
- nineteen999 11mo agoI have, and what's worse, those ecosystems full on encourage static linking as a panacea, at least Rust used to.
- ChrisRackauckas 11mo agoThe caveat to mention here is that this is with the standard IO interface. If you use Core.println instead of println you get something substantially smaller. A limitation of v1.12 is that the handling of IO is not that great, and this is something that IIUC is being addressed in the v1.13 updates.
- leephillips 11mo agoI just tried compiling using Core.println and still got a 92MB build directory.