HeadlinesBriefing favicon HeadlinesBriefing.com

Mozilla Retires asm.js After 13 Years as WebAssembly Takes Over

Hacker News •
×

Mozilla has disabled asm.js optimizations in Firefox 148, marking the beginning of the end for the technology that brought near-native performance to web browsers. The asm.js compiler, codenamed OdinMonkey, will be completely removed in a future release. Existing asm.js code continues running through Firefox's regular JIT compiler without breaking functionality.

asm.js emerged in 2013 as Mozilla's response to Google's Native Client, providing a statically-typed JavaScript subset that engines could compile to native code. This breakthrough enabled Unity and Unreal Engine to port C/C++ games to the web, with the Epic Citadel demo running in browsers within just four days. The technology proved web-based native-speed execution was possible, directly paving the way for WebAssembly's eventual arrival in Firefox 52.

Mozilla's decision reflects WebAssembly's successful adoption across the web development ecosystem. The company encourages developers still shipping asm.js content to recompile to WebAssembly for better performance and smaller file sizes. Maintaining both compilation paths creates unnecessary maintenance overhead and security attack surface in SpiderMonkey.

The transition represents a natural evolution from experimental technology to standardized solution. While OdinMonkey reaches its twilight, its successor BaldrMonkey now handles WebAssembly optimization duties, ensuring the next generation of web applications can run at full speed.