Show HN: Zero C#, Power of C# without any GC
|
Zero C# is a fork of bflat that compiles C# directly to native executables without requiring a .NET runtime or garbage collector, while retaining C#'s syntax, type checking, and generics features. The resulting programs are minimal in size (ranging from 10 KB to 64 KB depending on platform) and can run on multiple targets including Linux, macOS, Windows, WebAssembly, and DOS on 386 processors. Memory management uses arena allocation that frees all memory at once, and developers gain access to core C# features like records, tuples, lambdas, and interfaces while sacrificing garbage collection, reflection, and async/await functionality.