Applied WebAssembly: Compiling and Running C++ in Your Web Browser
summary
Ported Clang and LLD to WebAssembly so a full C++ compile+link pipeline runs client-side in the browser, using a WASI-like capability layer, an in-memory filesystem and JavaScript shims plus wasm-time for native testing. Building touches about 12 source files and stubs ~28 POSIX functions, produces a clang binary ~50 MB (reduced to ~35 MB after optimization) and an lld ~28 MB, and only uses ~25 of the 45 WASI calls; the demo compiles and runs real C++ in-page via a worker and service worker caching.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 13:58What is WebAssembly
- 27:37WebAssembly capabilities
- 33:46WASI and toolchains
- 45:14Compiling Clang to WebAssembly
- 1:00:17Live demos
- 1:14:35Technical limitations
- 1:17:30Q&A








