25launches

The first launch of Zero C#.

Zero C# page

Zero C#

Launching today

C# without a runtime, down to DOS on a 386

Hunted by IlyasHunter
Visit onurgumus.github.io (opens in a new tab)

Zero C# compiles C# to small native programs with no .NET runtime and no garbage collector. It uses a fork of bflat's zero mode with its own MIT core library; DOS and WebAssembly builds go through NativeAOT-LLVM. Targets: Linux, macOS, Windows, WebAssembly, DOS on a 386 and UEFI with no OS. A Linux hello world is 16 to 39 KB. You keep generics, spans and lambdas, but lose catchable exceptions, reflection and most of the base library; memory goes in arenas. MIT; the compiler fork is AGPL.

Meet the team

Hunted by Ilyas. The makers are not on 25launches yet.

H (Hunter)
  • Zero C# screenshot 1
  • Zero C# screenshot 2

Discussion 1

Ask questions, give feedback. Comments don't count in the ranking.

Sign in to join the discussion.

  • IlyasHunter Pinned

    NativeAOT still puts a runtime and a GC inside your binary. Zero C# drops both and has you manage memory with arenas, which feels closer to C with C# syntax. The 386 DOS build, and a tiny language model that tells the same story on every target, show how far it goes. Its Show HN reached 178 points and 130 comments.