Emscripten-Forge 6x and wasm64#

We are excited to announce that emscripten-forge has migrated from 4x to 6x. The distribution is now built with Emscripten v6.0.8, and packages are available for both the emscripten-wasm64 and emscripten-wasm32 platforms.

New Channel Names#

Channel names are now shorter and easier to use. The 4x channel moved from emscripten-forge-bot/emscripten-forge-4x to emscripten-forge/4x.

Moving forward, all new packages and updates will land on the emscripten-forge/6x channel. The emscripten-forge/4x channel will continue to remain available for existing users, but it is no longer the place for ongoing development.

Platform \ Channel

emscripten-forge/4x

emscripten-forge/6x (latest)

emscripten-wasm32

Yes

Yes

emscripten-wasm64

No

Yes

What is wasm64?#

By default, WebAssembly uses 32-bit linear memory. This model is simple and widely supported, but also limited to a 4 GiB address space per module. Memory64 (wasm64) switches to 64-bit pointers, where modules can use much larger heaps if the host supports it.

This matters for workloads that previously had to split data, stream aggressively, or simply could not run in the browser, such as large numerical arrays, scientific datasets, compilers, and other memory-heavy tools.

Emscripten-forge now ships a dedicated emscripten-wasm64 toolchain to target emscripten-wasm64. Hundreds of packages are already available for both wasm32 and wasm64.

Try it#

JupyterLite#

Open a wasm64 JupyterLite demo in the browser, no installation required:

jupyterlite-badge

Local environments#

Create a wasm32 environment from the 6x channel:

micromamba create -n forge-6x-wasm32 \
    --platform=emscripten-wasm32 \
    -c https://prefix.dev/emscripten-forge/6x \
    -c conda-forge \
    --yes \
    xeus-python scipy

Or a wasm64 environment:

micromamba create -n forge-6x-wasm64 \
    --platform=emscripten-wasm64 \
    -c https://prefix.dev/emscripten-forge/6x \
    -c conda-forge \
    --yes \
    xeus-r

Browse packages on prefix.dev.

Building recipes#

On the 6x branch, local recipe builds can target either platform with pixi (build-emscripten-wasm32-pkg / build-emscripten-wasm64-pkg):

pixi run -e rattler-build-env build-emscripten-wasm64-pkg recipes/recipes_wasm/brotli

Get Involved#

New recipes or patches fixing existing recipes are very welcome. Maintainers migrating packages from 4x should follow the 4x to 6x migration guide. See also Get Involved and open an issue or pull request on emscripten-forge/recipes.

Acknowledgements#

This migration would not have been possible without all the contributions from the emscripten-forge community.

About the Author#

Isabel Paredes is a senior software developer at QuantStack and a lead developer of emscripten-forge, where she ported the Xeus-R and Xeus-Octave Jupyter kernels to WebAssembly. She has a strong focus on the Jupyter ecosystem (a Jupyter Distinguished Contributor and member of the Jupyter Software Steering Council), and also works on improving the accessibility of JupyterLab. In the past, she has worked on the open-source robotics ecosystem.