NetWasm – Independent .NET Compiler/Runtime designed for WebAssembly.
Raw Developer Origin & Technical Request
Hacker News
Sep 29, 2026
I’ve been building NetWasm: an independent .NET compiler, CoreLib and runtime designed specifically for WebAssembly. It compiles Roslyn-generated CIL into standalone core WASM or WASI Preview 2 components - without shipping CoreCLR or Mono.A clean Release application containing Console.WriteLine(42) produces 82.5 KB of final WASM with WASI p2, including the runtime and precise garbage collector.Website: netwasm.com
Playground: playground.netwasm.com/The playground runs fully on the browser without a backend / cloud server compiling your code - it's all WASM! Locally, you use dotnet new, dotnet build, dotnet test, etc like you would normally. You can run the self-contained .wasm output with wasmtime, fully portable.GitHub repos:
github.com/zion-sati/NetWasm
github.com/zion-sati/NetWasm... is it?It's CIL (used to be called MSIL - it's the dotnet bytecode in other words) to WASM compiler. But more than that it's intentionally not using Microsoft's Corelib. We avoid reflection, typename with full namespace strings etc where the resulting .wasm can end up bloated. The goal is to have C# (and later .NET in general - thus F# and VB.NET) be on equal footing as Kotlin/WASM. Note that Kotlin/WASM uses WasmGC, NetWasm uses BoehmGC in precise mode. NetWasm makes Wasm a first class target.Why NetWasm?I fell in love with C# in 2006 and have OSS attempts at building C#-like syntax using C++ template metaprogramming with BoehmGC a long time ago because I didn't like the idea of having a runtime pre-installed. This idea was revitalized when I tried to migrate my web UI framework FUI-RS to C# - the resulting smoke test was already a minimum of 1 MB Brotli compressed running in interpreter mode! FUI-RS (Rust) had it at under 50 KB uncompressed. What already works?C# 15, precise GC, finalization, exceptions, generics, virtual/interface dispatch, LINQ, tasks / value tasks (thus async-await), JSON, dependency injection, regex, XML, HTTP, WIT/WASI and TUnit (a modern source generated unit testing framework) etc.What's left to do?There's a roadmap to v1.0 on the repo's README - tl;dr there's a lot to do before we can get there, e.g. Expression trees, faster dev loops, threading, web workers, interop via libimport and globalization (opt-in just like NetWasm's implementation of timezone info).NuGet packages should be able to multitarget to support NetWasm as well as the full .NET as long as there's no reflection / typename involved.Licence: Runtime, CoreLib, templates and libraries: MIT
Compiler and tooling: NetWasm Community LicenseNote that NetWasm is pre-1.0 (currently v0.5) and evolving rapidly, so I'd appreciate any technical feedbacks from the community if you'd like to help me shape this project. Particularly, real WASI use cases people want supported, NuGet packages to multitarget (or even better if you're one of the popular open source packages and would like to start multitargeting).
Developer Debate & Comments
No active discussions extracted for this entry yet.
Frequently Asked Questions
Market intelligence mapped to NetWasm – Independent .NET Compiler/Runtime designed for WebAssembly..
What is the technical positioning of NetWasm – Independent .NET Compiler/Runtime designed for WebAssembly.?
Are engineers actively discussing NetWasm – Independent .NET Compiler/Runtime designed for WebAssembly.?
Which technical concepts are associated with NetWasm – Independent .NET Compiler/Runtime designed for WebAssembly.?
Engagement Signals
Cross-Market Term Frequency
Counts stored text matches for foundational terms like JSON and MIT in analysed public discussions. These counts do not measure adoption.
Stored text matches, not adoption or market-share measurements.
- JSON: 80 records
- MIT: 57 records
- HTTP: 54 records
- Runtime: 21 records
- WebAssembly: 12 records
- regex: 8 records
- XML: 7 records
- Mono: 5 records
- exceptions: 4 records
- dependency injection: 3 records
- threading: 3 records
- generics: 2 records
- NetWasm: 1 records
- .NET Compiler: 1 records
- Roslyn-generated CIL: 1 records
- standalone core WASM: 1 records
- WASI Preview 2 components: 1 records
- CoreCLR: 1 records
- 82.5 KB: 1 records
- BoehmGC (precise mode): 1 records
- Kotlin/WASM: 1 records
- WasmGC: 1 records
- C# 15: 1 records
- precise GC: 1 records
- finalization: 1 records
- virtual/interface dispatch: 1 records
- LINQ: 1 records
- tasks/value tasks: 1 records
- async-await: 1 records
- WIT/WASI: 1 records
- TUnit: 1 records
- Expression trees: 1 records
- faster dev loops: 1 records
- web workers: 1 records
- interop via libimport: 1 records
- globalization: 1 records
- NuGet packages: 1 records
- multitarget: 1 records
- NetWasm Community License: 1 records
SaaS Metrics