# 💻 Hacker News debates what Zero C# retains when it drops the .NET runtime

All Today · published 2026-11-22T06:21:27Z · https://all-today.com/discussions/2d4388fe-a0dd-4fa1-bc3a-95b1d4cc393d?lang=en

- 🔧 A Show HN post introduced an experimental way to compile C# without automatic garbage collection.
- The thread weighs small executables and unusual targets against library compatibility and manual memory management.

💬 A project called Zero C# set off a discussion on Hacker News about the boundary between a programming language and its platform. Its compiler generates small native programs that run without the usual .NET runtime. Some commenters saw promise for unusual targets. Others argued that familiar libraries and automatic memory management are much of what makes C# useful in the first place.

💾 Zero C# uses memory regions called arenas. A program can allocate related objects together and release the whole region in one operation. That can fit data that only has to live for the length of one request. When objects have different lifetimes, developers have to work out where those boundaries belong. Several commenters saw that change as substantial porting work.

Another suggestion was to keep ordinary C# and change only the performance-sensitive paths, for example by reading data without copying it. The thread also distinguished native compilation from giving up garbage collection. Microsoft’s NativeAOT translates a program ahead of time while retaining automatic memory management. Supporting a target such as DOS on a 386 gives Zero C# an unusual use case. The thread does not provide a comparative performance benchmark.

## Sources

- [Original Show HN discussion about Zero C#](https://news.ycombinator.com/item?id=50590279)
- [Author’s overview of compiler targets and language limitations](https://onurgumus.github.io/zero-csharp/index.html)

---
This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources.
