About FSharp WasmGC
Bringing F# to the WebAssembly era
FSharp WasmGC is a community project building a clean-room F# compiler backend for WebAssembly GC. We believe strongly typed functional programming and Wasm are a perfect match.
Why F# + WasmGC?
F# is one of the most elegant functional languages on the .NET platform. WebAssembly GC brings structured, garbage-collected memory to the browser. Together they enable safe, expressive, high-performance web applications — without a JavaScript runtime as an intermediary.
Clean-room implementation
FSharp WasmGC replaces only the code generation backend of Fable. The F# parser, type-checker, and optimizer remain untouched — giving us a battle-tested foundation with zero maintenance burden on the front-end.
Open, transparent development
Every sprint is documented with design rationale. Architecture decisions are published as markdown docs in the repository. The entire codebase is Apache-2.0 licensed (the two forks it is built on keep MIT) and welcoming of contributions.
Our core values
We build this compiler the way we wish all compilers were built — with clarity, correctness, and the F# community in mind.
Correctness first
Every feature is validated with comprehensive test suites. 353 QuickTests catch regressions at every commit. We do not ship broken code.
F# idioms preserved
Write idiomatic F# — pattern matching, computation expressions, discriminated unions — and get correct Wasm. No compromises on language fidelity.
Transparency
All design decisions are documented in detailed sprint notes and architecture documents in the repository. Nothing is hidden behind closed doors.
Community-driven
The roadmap is public. Issues and discussions on GitHub drive priorities. We build what the community needs, not just what is easy.
Standards compliant
We target the WasmGC MVP specification. Our output is compatible with Chrome, Firefox, Node.js, Wasmtime, and any compliant WasmGC runtime.
Minimal dependencies
The compiler is written in F#. The BCL is F# compiled with our own backend. We eat our own cooking and trust our own output.
Project roadmap highlights
We develop in focused sprints with clear, documented goals. Here is where we have been and where we are going.
- 1
Sprints 1–9: Core foundation
WasmGC type system, closures, discriminated unions, multi-file pipeline, List/Array/String BCL. 353 QuickTests green.
- 2
Sprints 10–17: BCL & architecture
Computation expression builder architecture, BCL project structure, Map/Set, List sort, Showcase app, Component Model, vtable design.
- 3
Sprint 18+: Generics & optimization
Fat-pointer vtable generics, monomorphization, inlining, dead-code elimination, full Wasm component linking.
- 4
v1.0: Production-ready F# subset
Complete BCL coverage for common patterns, full generics, benchmark suite, polished documentation, and a stable public API.
Proudly sponsored by Amano Services
Amano Services believes in open-source tools that push the boundary of what is possible on the web. Their sponsorship helps us dedicate focused time to FSharp WasmGC.
