Show HN: Zero C# – C# without a runtime or GC
Points and comments are a snapshot, not live.
Zero C# compiles C# to native code without a runtime or garbage collector.
A fork of bflat compiles C# 15 to small native binaries for Linux, macOS, Windows, WebAssembly, and DOS on a 386. It removes the .NET runtime, GC, reflection, async, and exception catching. Memory uses arenas freed all at once; strings and collections live in arenas. Hello world is 11 KB on Windows and 40 KB on Linux. The compiler still enforces type checking, generics, interfaces, and memory safety rules.
What commenters are saying
Commenters split into two camps: those who see GC as a feature worth keeping for productivity and safety, and those who value explicit control for performance or embedded use. Several note that GC pauses remain a concern for real-time systems, while others argue that modern GCs offer significant control. A few draw parallels to Beef and reference counted languages like Swift. One commenter points out that arenas can be used today in vanilla C# by pausing GC.