printf, generics and structural equality — verified by differential tests against .NET on every commit.F#, compiled to WebAssembly GC.
No JavaScript app code.
A real compiler — not a transpiler — tested against .NET on hundreds of thousands of generated inputs, plus a browser runtime written in F#. Everything interactive on this page is F# running as WasmGC.
Live: this is F#
Five of the demos, running right here. Each one is an F# program compiled to its own WebAssembly module — the page around it contains no application code.
Speed — measured in your browser, right now
Thirteen algorithms, each written once in F# (compiled by fsharp-wasm) and once in plain JavaScript, run on your machine, in a worker.
| workload | JavaScript | F# → WasmGC | ratio | same result |
|---|---|---|---|---|
| press “Run the benchmark” | ||||
How it works
Three small pieces, each replaceable.
div { … }) and an Elmish loop. A JS import is an F# function marked nativeOnly; the compiler does the marshalling.let update msg model =
match msg with
| Increment -> { model with Count = model.Count + 1 }, Cmd.none
| Decrement -> { model with Count = model.Count - 1 }, Cmd.none
| Reset -> { model with Count = 0 }, Cmd.none
let view model dispatch =
article {
h2 "Counter"
el "p" { class' "count-display"; string model.Count }
button { onClick (fun () -> dispatch Increment); "+" }
}
let start () = run "counter-root" { Init = init; Update = update; View = view }
All demos
Every one is a separate F# project compiled to its own .wasm; each has a Playwright test that drives it in Chromium.
Why sponsor
F# is the best language for correct, concise software — and the browser still treats it as a JavaScript source. This project makes it a first-class WasmGC target. Sponsorship pays for the unglamorous parts that make it usable.
Dictionary,HashSet,Map/Setwith any key- async / tasks,
fetch, storage, IndexedDB - Source maps & debugging in browser devtools
- More differential-test coverage (collections, text, numerics)
- Exact
%A,%g, culture-free formatting - Performance regression tracking in CI
- NuGet distribution of the compiler and runtime
- Web Components, WebGPU, workers as F# modules
- Templates and documentation
Needs WebAssembly GC and the JS String Builtins: Chrome / Edge 130+, Firefox 134+.