Re:Was Rust Worth It?
by neonsunset on Thursday October 26, 2023 @05:03AM
(#38023362)
This is an unfair comparison of apples to oranges by building the binary with the wrong flags. .NET produces smaller binaries than Go with NativeAOT (despite including more features).
[ Parent
| on HN ]
Re:Was Rust Worth It?
by leeman2016 on Thursday October 26, 2023 @05:16AM
(#38023432)
Yea, I missed trimming. But still NativeAOT results in 10x the size of the Go binary in Windows (win-x64)
Re:Was Rust Worth It?
by neonsunset on Thursday October 26, 2023 @05:22AM
(#38023462)
Two aspects:
- There is no point in chasing smallest possible binary size if it trades off performance and features one wants to use in production scenario, or comes with other tradeoffs that sacrifice developer productivity. I don't see anyone complaining about the size of GraalVM native images. As long as binaries are reasonably sized, it's not an issue.
- dotnet publish -c release -p:PublishAot=true definitely produces smaller binaries than Go as of .NET 8 (and no, you cannot use the argument that it's not released yet - it's in RC.2 which is intended for evaluation for adopting .NET 8 scheduled for release next month)
Re:Was Rust Worth It?
by leeman2016 on Thursday October 26, 2023 @05:25AM
(#38023477)
That's awesome, honestly. Can't wait.