November 1, 2025
Haskell goes brrr (except in Safari)
GHC now runs in the browser
Haskell in your browser: mind-blown demos, Safari tears, and a big 'but why?'
TLDR: GHC, the main Haskell compiler, now runs inside your browser via WebAssembly; the demo works in Brave with warnings but stalls in Safari. Commenters split between “wow, great for education” and “why would anyone use this,” while others debate memory tech and compare it to Blazor — a sign in-browser dev tools are evolving.
The Haskell world just tossed a glitter bomb into the browser: GHC — the language’s main compiler — now runs fully client‑side thanks to WebAssembly (a tech that lets non‑JavaScript code run on the web). There’s even a playground demo, delivered with a cheeky ‘terms and conditions apply’ — translation: expect some jank. Early testers reported Brave loads after a mini freeze and throws a warning about the Monaco editor worker, while Safari leaves the Run button sitting there like a prop. So, yes, it’s flashy… with a few gremlins.
The comments? Deliciously split. One camp is pure "but what is this for?" skepticism, led by practical‑minded voices asking for real‑world uses. Another camp is pumped: one educator says this could’ve massively simplified teaching Haskell online, hinting at instant coding lessons without installs. Meanwhile, the tech‑heads dove straight into the weeds: is this using WasmGC (a new memory cleanup feature for WebAssembly) or rolling its own garbage collector? And then the comparison questions arrived: how is this different from Microsoft’s Blazor Wasm, which lets you write websites without JavaScript?
Cue the drama: is this the start of serious in‑browser Haskell development, or just a very cool science fair project? Either way, the spectacle has everyone clicking, questioning, and arguing — which is half the fun. For the confused, a kind soul even linked what GHC is: the official Haskell compiler.
Key Points
- •GHC now runs entirely client-side in the browser via its WebAssembly backend.
- •A Haskell playground demo showcases the in-browser GHC capability.
- •The author notes caveats and plans to provide a more detailed explanation later.
- •In Brave, the demo loads after an initial unresponsive period; Web Worker warnings appear but the Run button works.
- •In Safari, the same Web Worker warning appears, but the Run button remains disabled.