Saying Goodbye to Asm.js
AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

Prime Big Deal Days · Oct 6–7Offer from Amazon

Get the latest gadgets delivered free — and shop member deals

  • Fast, free delivery on millions of items
  • Access to Prime Big Deal Days deals on October 6–7
  • Prime Video, Amazon Music and more included
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

Mozilla’s Firefox 148 has disabled asm.js optimizations by default and plans to remove the code entirely. WebAssembly has largely replaced asm.js for web performance. The transition marks the end of an era for web-based native code execution.

Mozilla’s Firefox 148 has disabled SpiderMonkey’s asm.js optimizations by default, with plans to remove the code entirely in a future release. This marks the end of asm.js support, which has been integral to web performance since 2013.

As of Firefox 148, the asm.js optimization features in SpiderMonkey are no longer active by default. Mozilla confirmed that the asm.js code will be removed entirely in a future version of Firefox. Users who maintain websites using asm.js will not experience breaking changes, as the code continues to run via the regular JavaScript JIT engine. The move reflects the maturity of WebAssembly, which now provides faster execution and smaller binaries, making asm.js redundant.

Mozilla’s decision is based on the fact that asm.js, a subset of JavaScript designed for near-native performance, was initially developed to run high-performance code on the web, enabling projects like Unity and Unreal to port C/C++ codebases to the browser. The technology shipped in Firefox 22 in 2013 and was instrumental in demonstrating the web’s potential for high-performance applications. Its success paved the way for WebAssembly, which debuted in Firefox 52 and has since become the standard for web-based native code execution.

Why It Matters

This development signifies a major milestone in web technology evolution. By discontinuing asm.js, Mozilla is streamlining its engine, reducing maintenance burdens, and minimizing potential security risks. The shift underscores WebAssembly’s dominance as the preferred method for high-performance web applications, impacting developers and users alike by encouraging migration to more efficient, modern standards.

Amazon

WebAssembly development tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background

Asm.js was Mozilla’s response to the challenge of running native-like code on the web, emerging from the needs of projects like NaCl and PNaCl. It was first introduced in Firefox 22 in 2013, enabling complex applications such as 3D games and simulations directly in the browser. Over time, WebAssembly was developed as a more efficient and versatile successor, eventually surpassing asm.js in performance and size. Mozilla’s announcement aligns with the broader industry trend of phasing out older technologies in favor of WebAssembly, which offers better optimization and security features.

“As of Firefox 148, SpiderMonkey’s asm.js optimizations are disabled by default, and we plan to remove the code entirely in a future release.”

— Mozilla Developer Blog

“Recompiling to WebAssembly will give you faster execution and smaller binaries, making it the recommended path forward.”

— Mozilla engineer

Amazon

JavaScript to WebAssembly compiler

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What Remains Unclear

Details about the exact timeline for complete removal of asm.js support are still emerging. It is not yet clear how many websites or applications remain reliant on asm.js, or how the transition will be managed for legacy content. Mozilla has not specified a precise date for the final removal, only that it will happen in a future release.

Amazon

WebAssembly performance optimization tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What’s Next

Developers are advised to recompile their asm.js codebases to WebAssembly, which offers better performance and smaller binaries. Mozilla will likely provide tools and guidance for migration. The final removal of asm.js support is expected in upcoming Firefox releases, with further updates on the timeline to be announced.

Amazon

JavaScript code to WebAssembly converter

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

Will websites using asm.js stop working after support is removed?

No. asm.js code will continue to run via the standard JavaScript engine, but the optimization support will be gone. For best performance, developers should migrate to WebAssembly.

Why is Mozilla removing asm.js support now?

Because WebAssembly has proven to be a more efficient and capable technology for high-performance web applications, making asm.js largely obsolete.

How can I migrate my asm.js projects to WebAssembly?

Mozilla recommends recompiling your codebases to WebAssembly using available toolchains, which will provide faster execution and smaller binaries.

Will this affect other browsers or just Firefox?

This announcement pertains specifically to Firefox 148. Other browsers may have different support timelines for asm.js and WebAssembly.

What is the future of high-performance web applications without asm.js?

WebAssembly will continue to evolve and support complex, high-performance applications on the web, replacing asm.js entirely.

Source: Hacker News

FALL

Fall Picks

As an affiliate, we earn on qualifying purchases.

You May Also Like

AMD makes FSR 4 upscaling official for Radeon RX 7000- and 6000-series cards — RDNA 3 and RDNA 2 chips will soon enjoy improved visuals

AMD announces official FSR 4.1 support for RDNA 3 and RDNA 2 cards, bringing improved upscaling to older Radeon GPUs in mid-2024, ending community frustration.

What’s in a GGUF, besides the weights – and what’s still missing?

An in-depth analysis of GGUF files for language models, detailing what they include beyond weights and what’s still absent in the format.

Apple Is Officially Dropping Support for Intel-Based Macs

Apple has announced it will no longer support Intel-based Macs for macOS 27, completing its transition to Apple silicon chips. The change impacts several older models.

Map 1 Total Rounds: Over/Under 18.5

A new Polymarket market on Map 1 total rounds has been launched, with a 50% implied probability for both over and under 18.5 rounds. Details are emerging.