# Emscripten

18 Hacker News commenters recommended Emscripten and 14 criticized it, November 2025 to November 2026. It was recommended in 11 of 13 months.

**Verdict:** Free compiler that turns C and C++ code into WebAssembly for the browser, praised for working reliably. Critics say it adds bulky output and is hard to set up.

## Why people recommend it

- Works for porting C and C++ (4 comments): "I have been flabbergasted by how well Emscripten actually worked" ([source](https://news.ycombinator.com/item?id=48209252)) "Emscripten exists, DWARF debugging support exists and works" ([source](https://news.ycombinator.com/item?id=47348027)) "Just build a web app with emscripten. You can do anything." ([source](https://news.ycombinator.com/item?id=47765467))
- Easy calls between C and JavaScript (4 comments): "FFI calls into Javascript are trivial (it's even possible to embed JS code into C/C++ source files)" ([source](https://news.ycombinator.com/item?id=45930025)) "one of my favorite technologies ever since the first time I called malloc from the JS console" ([source](https://news.ycombinator.com/item?id=46551536)) "you can even mix C/C++ and Javascript in the same source file" ([source](https://news.ycombinator.com/item?id=47338046))
- Good runtime performance (2 comments): "Performance-wise WebAssembly and Emscripten seem remarkable" ([source](https://news.ycombinator.com/item?id=50064599)) "Emscripten output performance was surprisingly good" ([source](https://news.ycombinator.com/item?id=48208114))

## What people warn about

- Bloated generated output (5 comments): "Emscripten adds a lot of bloat and edges just to serve out of the box posix compatibility" ([source](https://news.ycombinator.com/item?id=47296567)) "thousands lines of generated javascript to glue the wasm and javaecript together" ([source](https://news.ycombinator.com/item?id=46834229)) "tools like emscripten include the entire C++ standard library" ([source](https://news.ycombinator.com/item?id=50331016))
- Hard to install and set up (3 comments): "I was writing emscripten and getting lots of errors and problems and it wouldn't run at all" ([source](https://news.ycombinator.com/item?id=48106542)) "It's too heavy to install, too much of a hassle to get running" ([source](https://news.ycombinator.com/item?id=46744194)) "Emscripten can be a fickle beast" ([source](https://news.ycombinator.com/item?id=46993808))
- Legacy versions and flag issues (2 comments): "compiling legacy code with legacy versions of Emscripten is quite frustrating" ([source](https://news.ycombinator.com/item?id=48208156)) "Emscripten export flags still bite" ([source](https://news.ycombinator.com/item?id=48542767))

## Alternatives hackers recommend

- [GCC](https://hackerapproved.com/p/gcc.md): 138 recommend
- [Clang](https://hackerapproved.com/p/clang.md): 74 recommend
- [Free Pascal compiler](https://hackerapproved.com/p/free-pascal.md): 38 recommend
- [GraalVM Native Image](https://hackerapproved.com/p/graalvm-native-image.md): 31 recommend
- [.NET Native AOT](https://hackerapproved.com/p/net-native-aot.md): 26 recommend

## Cite as

Hacker Approved, "Emscripten", https://hackerapproved.com/p/emscripten/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
