Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
story
0 points
fabian2k
1y ago
0 comments
Share
C# can create single-binary executables, even without native AOT.
0 comments
default
newest
oldest
cardanome
1y ago
They are still going to significant bigger than the equivalent golang binary because of the huge .NET runtime, no?
zigzag312
1y ago
https://github.com/MichalStrehovsky/sizegame
C#: 945 kB
Go: 2174 kB
ricardobeat
1y ago
Is this a fair comparison, won't doing anything more significant than `print` in C# require a .NET framework to be installed (200MB+)?
2 more replies
xarope
1y ago
Since this is just Hello World, then TinyGo: 644kB
Rapzid
1y ago
Yeah and I doubt many people care if the TS compiler is 200MB anyway LOL. It's 2025.
fabian2k
OP
1y ago
Depends on how well trimming works. It's probably still larger than Go even with trimming, but Go also has a runtime and won't produce tiny binaries.
j
/
k
navigate · click thread line to collapse