This document discusses using Emscripten to compile C++ code to JavaScript. It shows how Emscripten adds an asm.js backend to LLVM, allowing any LLVM-supported language like C++ to target JavaScript. Benchmarks show Emscripten-compiled code runs faster than native JavaScript for tasks like summing arrays and matrix multiplication by using optimized libraries and compiler optimizations not available to JavaScript. The document advocates using Emscripten to compile C++ to JavaScript when performance is important, as it allows using the best tools and libraries for the job.