3 ms·
Rust Hello World is larger than Git. Still smaller than Java and Electron, but not exactly small.
by 1718627440 1y ago
Rust Hello World is larger than Git. Still smaller than Java and Electron, but not exactly small.
- ChrisSD 1y agoThat's an entirely different issue. The kb's of overhead for backtrace printing and the format machinery is fixed and does not grow with the binary size. All combined it wouldn't account for anywhere close to 1mb let alone 100's of mb.
- vga42 1y ago[dead]
- ben-schaaf 1y agoEntirely untrue. Download git, run make and you'll get a 19MB `git` binary along with a whole lot of other 19MB binaries. Running `cargo build` produces a 3.8MB binary. And that's still comparing apples to oranges, because git is compiled with full optimizations. Running `cargo build --release` produces a 462KB binary. Even if I'm comparing to my system's git installation, that's still 3.9MB, and that's with all the debug info stripped. Yes rust (like C++) tends to produce larger binaries than C, but lets be real here: The reason Zed has a bloated binary is the ~2000 rust packages that comprise it.
- deleted 1y ago[deleted]
- kibwen 1y ago> The reason Zed has a bloated binary is the ~2000 rust packages that comprise it. Hundreds of those MBs are from tree-sitter grammars, which are JavaScript compiled to C.