Show HN: Zero C#, Power of C# without any GC
Web page · https://onurgumus.github.io/zero-csharp/index.html
First seen by Oriel on .
AI summary
Zero C# is a bflat fork that compiles C# directly into small native programs without the .NET runtime or garbage collector across five target environments.
- It retains C# 15, specialized generics, interfaces, records, lambdas, queries, and threads, but excludes catchable exceptions, reflection, and async.
- Memory uses explicitly freed arenas; stack spans avoid per-operation allocation, while strings and collections that must persist are stored in arenas.
- The same source targets Linux, macOS, Windows x64, WebAssembly through NativeAOT-LLVM, and DOS on a 386, with output verified by one test suite.
- Hello-world binaries measure 39,848 bytes on Linux, 64,728 on macOS, 10,752 on Windows, 15,833 for WebAssembly, and 16,384 on DOS.
- The accompanying library provides input, output, formatting, List, Dict, queries, and arena-backed variants for references and string keys.
#c# #native compilation #memory management #webassembly
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 178, latest observation ; +170 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 130, latest observation ; +128 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50590279 | https://onurgumus.github.io/zero-csharp/index.html Read discussion |