Skip to main content

Train in Your Tab: PyTorch, JAX and ML Compilers in the Browser

· 26 min read
Scientific Software Developer at QuantStack

From eager execution to compiled CPU and WebGPU workloads—all inside JupyterLite.

Open a notebook, import PyTorch, define a model, train it, and try a few predictions. Then send the same computation to the GPU.

That is the experience we have been working towards with JupyterLite, WebAssembly and WebGPU. Python, the ML frameworks, their compilers and the runtime executing the generated programs all run inside the browser. The server delivers the application, packages, datasets and model weights, the computation happens on your machine.

This work builds on emscripten-forge, which provides conda packages for WebAssembly. We use it to distribute the Python runtime, ML frameworks, compiler toolchains and native dependencies that these notebooks need.

Today, we can share working notebooks for eager PyTorch, TorchInductor, TorchAX, JAX/XLA, and PyTorch compilation through Turbine and IREE. They cover CPU execution, WebGPU training, image processing, and pretrained models for vision and speech.

The part that excites me most is having the compiler available alongside the framework. Change a model or write a new function in a cell, and the browser can compile and execute that new computation too.

MNIST handwriting predictions before and after training

Comparing an untrained and trained MNIST classifier on the same handwritten digit, inside JupyterLite.

If you would like to start with the code, try the PyTorch CPU notebooks, object detection notebook, or MNIST CPU/WebGPU pair. The sections below explain how we got here.

In this post​

  1. Background and motivation
  2. Starting with PyTorch on the CPU
  3. A useful detour: JAX is in the browser too
  4. Taking PyTorch to WebGPU with IREE
  5. Training a model, keeping it on the GPU
  6. The compiler and runtime are usable directly too
  7. From a playground to an editable notebook
  8. Creating your notebook environment
  9. Near Future work
  10. Conclusion & Collaboration Opportunities

Background and motivation​

A long-standing request​

For researchers, students and ML engineers, a notebook is often where an idea becomes an experiment. You change the model, inspect an intermediate result, try a different optimizer, and keep going. Sharing that experiment usually means sharing an environment as well: Python, native libraries, compiler dependencies, and sometimes a GPU setup.

JupyterLite makes a different deployment model possible. A static website delivers a Jupyter environment, with its Python interpreter and libraries running locally through WebAssembly. The reader opens a link and starts executing code.

The interest in bringing Python ML frameworks into the browser has been there for years. The JAX discussion “Jax for Web?” dates back to 2019. The Pyodide community has also tracked requests for JAX, PyTorch, and TensorFlow’s Python bindings.

A personal source of motivation was Romain Clement’s PyData Paris 2025 talk on machine learning in the browser, which I attended while also speaking at the conference. Seeing models run locally through ONNX Runtime and WebAssembly made the use case concrete. I wanted to explore how much of the model-development workflow we could bring into that environment too.

Keeping the Python notebook experience​

Projects such as TensorFlow.js and jax-js already demonstrate what browser ML can do. TensorFlow.js provides JavaScript APIs for inference and training, while jax-js implements a JAX-style programming model with browser CPU and GPU backends.

Our starting point was the Python developer. Someone working with PyTorch or JAX already knows how to define a model, differentiate a function, and write a training loop. We wanted them to keep that experience in a notebook: import the framework, inspect tensors, change the computation, and run it again.

That meant bringing the compilers along too. A model edited in a notebook may need to be traced, differentiated, lowered and compiled again. Having those stages available inside the browser gives the user control over the computation, as well as its inputs.

A timely parallel: ExecuTorch on WebGPU​

While this work was underway, the ExecuTorch team announced its WebGPU backend and playground on 10 November. Their announcement was a timely demonstration of the interest in running substantial PyTorch models locally in the browser.

Apparently, I spent long enough in compiler code for someone else to publish their blog first ;)

These are complementary efforts. ExecuTorch provides a deployment path for exported models, including on-device fine-tuning examples. Our focus is an interactive Python environment with the framework, compiler and runtime available together.

Later in this post, we revisit several of the playground’s vision and speech workloads as editable PyTorch notebooks. You can inspect the model, change preprocessing or postprocessing, adapt the computation, and compile it again in the browser. The notebook exposes the Python code behind the demo, so a developer can take the experiment in their own direction instead of being confined to a curated playground.

The compiler foundation: interactive C++, llvmlite and Numba​

Bringing compiler infrastructure to the browser, then building useful workflows above it, has been a recurring theme in my work at QuantStack.

Our Xeus-Cpp work brought interactive C++ into JupyterLite through Clang-Repl. A user could write new C++ in a cell, compile it and execute it within the running session.

We then applied a related execution model to llvmlite and Numba. That brought JIT-compiled Python and NumPy computations into JupyterLite, together with opportunities for packages built above Numba.

On native platforms, a JIT compiler can place generated machine code into executable memory. In the browser, our CPU execution paths instead generate WebAssembly and dynamically load it into the running application:

Generated C++ or LLVM IR
↓ Clang / LLVM code generation
WebAssembly object files (.o)
↓ LLD, running inside the browser process
WebAssembly shared library (side module)
↓ Dynamic loading and symbol resolution
Call the compiled function from the notebook's Python or C++ session

The compiler and linker run as libraries inside the browser process. This gives us compilation, linking and execution without launching a native compiler subprocess—an execution model we could reuse for the ML stacks that followed.

MLIR: attempting an interactive compiler pipeline in the browser​

The next step was making the compiler pipeline itself interactive from Python. We wanted to construct a computation, apply transformations, inspect the intermediate representations, and execute the result in the same notebook.

Our MLIR notebook demonstrates that workflow using MLIR’s Python bindings and llvmlite. We expressed a convolution, bias and ReLU computation in MLIR, lowered it to LLVM IR, then optimized and compiled it into WebAssembly. The compiled example ran roughly 62× faster than the simple NumPy reference, and about 1.8× faster than a vectorized NumPy implementation. Much of the first gain comes from removing Python loops and repeated dispatch of small array operations.

I proposed bringing this compilation and execution support upstream in an MLIR RFC. The direction received support, with Maksim Levental offering to review the patches.

Shoutout to Maksim and LLVM’s EUDSL project, which had explored similar ideas! In his reply, Maksim shared their working MLIR WebGPU notebook, showing a path through SPIR-V and WGSL to GPU execution in the browser.

By this point, LLVM, Clang, LLD, MLIR, llvmlite and Numba were available through emscripten-forge. We had a CPU compilation and execution foundation, and a concrete GPU path to learn from. That set the direction for the next stage: bringing PyTorch and JAX into this environment and connecting their computations to these compiler pipelines.

The work that followed led to contributions across XLA and IREE. We will return to the upstream work after looking at what these execution paths let us do.

Graphviz control-flow graph generated from lowered MLIR

A Graphviz control-flow graph for the lowered convolution, bias and ReLU computation, generated and displayed inside the notebook.

Starting with PyTorch on the CPU​

Before I could target my MacBook’s GPU through WebGPU, I needed a WebAssembly build of PyTorch that could execute models inside JupyterLite. We started by building its C++ libraries and Python bindings and establishing a working CPU execution path.

This required changes to preserve the selected Wasm exception mode, match the BLAS/LAPACK calling conventions, and adapt initialization code that assumes native processes or threads. The resulting builds support wasm32 and wasm64 and run without pthreads.

Although PyTorch exposes a familiar Python API, it relies on a substantial C++ implementation and native libraries underneath. Bringing that stack to WebAssembly required work across its build system, numerical-library integration, runtime initialization, and the compilation path behind torch.compile. We currently maintain more than a dozen patches supporting this port and are committed to working with the PyTorch community to contribute the reusable changes upstream.

This established three CPU execution paths.

1. Eager PyTorch​

Eager execution is the natural starting point: operations execute as Python reaches them, and autograd records the work needed for differentiation.

The browser notebooks exercise NumPy interoperability, tensor operations, linear algebra, neural-network modules, gradients, serialization and optimization. The familiar training sequence is still there:

optimizer.zero_grad()
prediction = model(inputs)
loss = loss_function(prediction, targets)
loss.backward()
optimizer.step()

Getting that sequence working matters. It gives us a useful environment in its own right and a reference against which to check compiled execution.

2. TorchInductor: compiling and linking generated C++ in the browser​

Next came torch.compile.

For the CPU path, TorchInductor can generate C++ kernels. On a native machine, those kernels are compiled into a library and loaded back into Python. We needed the same stages inside the browser.

The resulting path is:

PyTorch → TorchDynamo → TorchInductor → generated C++
→ Clang (in the browser) → WebAssembly object files
→ LLD (in the browser) → WebAssembly shared library
→ dynamic loading → execution in the notebook’s Python session

This is where our experience with Xeus-Cpp was particularly useful. We already knew how to compile, link and load new WebAssembly code into a persistent application.

The PyTorch port adds an in-process Clang/LLD compiler service and connects Inductor’s build path to it. The required compiler resources and target headers are packaged with the integration, so the notebook does not need manual compiler paths or environment-variable setup.

The generated C++ is still available to inspect. We can follow a Python computation down to its compiled kernel and execute that kernel in the same browser session.

TorchInductor-generated C++ inspected in JupyterLite

TorchInductor’s generated C++ for sin(x) + cos(y), inspected from a Python cell in JupyterLite.

3. TorchAX: reaching the JAX/XLA stack​

There is another route through TorchAX, which connects supported PyTorch computations to JAX:

PyTorch → TorchAX → JAX / XLA
→ LLVM → WebAssembly → browser CPU

Our notebooks use this route for differentiation and training as well as arithmetic. We can also export and inspect a PyTorch-defined computation as StableHLO: a portable representation of tensor operations, such as matrix multiplication and convolution, that ML compilers such as XLA and IREE can consume.

These routes expose different compiler stacks behind a familiar frontend. Their operation coverage and performance can differ, which is why the notebooks check results before comparing timings.

Try it: PyTorch CPU notebooks—eager execution, TorchInductor and TorchAX.

A useful detour: JAX is in the browser too​

The TorchAX route contains a fairly substantial detail: JAX and XLA are running in the browser too ;)

Our JAX port supports tracing, compilation, automatic differentiation and iterative numerical workloads. The shared example is adapted from JAX’s “Autobatching for Bayesian inference” notebook.

Its CPU pipeline is:

JAX → StableHLO / HLO → XLA CPU lowering → LLVM IR
→ WebAssembly objects → in-process linking → loading → execution

Try it: JAX in JupyterLite.

JAX Bayesian inference results in JupyterLite

JAX’s Bayesian inference example in JupyterLite, comparing the true parameters with approximate posterior means and uncertainty estimates.

I have submitted portability fixes upstream, including work around pointer widths, numerical-array metadata and thread assumptions.

The backend-specific changes have a different status. In the discussion on recognizing Wasm targets in XLA’s CPU compiler, the maintainers explained that WebAssembly falls outside their current CPU roadmap and review bandwidth. They asked us to keep the Wasm backend changes downstream while continuing to send backend-independent fixes.

We continue to maintain the Wasm-specific changes in our forks. This gave us a working JAX/XLA CPU path, with tracing, automatic differentiation, compilation and execution happening entirely inside the browser.

With CPU execution established, the next challenge was extending the workflow to WebGPU. We wanted to compile model computations in the notebook, keep parameters and optimizer state on the GPU between updates, and coordinate execution without unnecessary transfers back to Python. That called for a compiler and runtime that could handle both the numerical computation and its memory and scheduling requirements.

Taking PyTorch to WebGPU with IREE​

IREE already brought these concerns together in an MLIR-based compiler and runtime. Its architecture gave us a foundation for turning framework computations into executable programs, alongside the resource management and synchronization needed to run them.

IREE compiles both the numerical computation and the scheduling logic surrounding it. This was particularly relevant to training: dependent computations must execute in the correct order, buffers must remain alive while work is pending, and parameters and optimizer state should stay on the device between updates.

MLIR organizes operations into dialects: representations suited to different stages of compilation. Four of IREE’s core dialects illustrate how it approaches execution:

  • Flow groups compatible tensor computations into dispatchable regions and represents the data flow between them.
  • Stream represents asynchronous execution, resource lifetimes, transfers and dependencies between computations.
  • HAL, the hardware abstraction layer, represents device buffers, executable loading, command submission and synchronization.
  • VM represents the host-side control flow, resource ownership and calls into runtime modules. In our build, this is compiled to bytecode executed by IREE’s virtual machine.

The computations within those dispatches are lowered through representations such as MLIR’s Linalg dialect, which describes structured linear algebra. This enables transformations such as fusion and tiling before generating target-specific CPU or GPU code.

IREE packages the host-side bytecode and target-specific executables into a .vmfb module for both CPU and WebGPU execution. In our browser builds, IREE’s VM is itself compiled to WebAssembly and executes the control program, coordinating device work through HAL. The tensor computations run as compiled WebAssembly functions on the CPU or WGSL shaders on the GPU.

There was already a PyTorch integration too. IREE’s “PyTorch + IREE” guide describes both torch.compile and ahead-of-time export workflows through Turbine, using Torch-MLIR to import and lower PyTorch computations. We could therefore build on an existing path from familiar PyTorch code into IREE’s compiler and runtime.

Our WebGPU path builds on Ben Vanik’s initial integration, which introduced the WGSL compiler target and JavaScript-hosted HAL driver for a freestanding WebAssembly runtime. WebAssembly and WebGPU support were marked experimental.

For our WebGPU path, the simplified pipeline looks like this:

PyTorch
↓ graph capture and automatic differentiation
Turbine / Torch-MLIR
↓
IREE lowering and GPU code generation
↓
SPIR-V → Tint → WGSL
↓
IREE WebGPU runtime → browser GPU

The browser receives WGSL shaders through WebGPU. IREE also produces the executable structure and scheduling information needed to run them. A shader alone does not describe a complete model execution.

Both the compiler producing these programs and the runtime executing them are packaged for WebAssembly.

For CPU execution, our IREE build follows the compile, link and load approach described earlier: LLVM generates WebAssembly object code, browser-hosted LLD links the generated CPU executables, and dynamic loading makes their functions available to the runtime. The .vmfb carries the host-side control program for this path too.

Upstream contributions and browser integration​

The original WebGPU PR deliberately left Emscripten embedding outside its scope, and the Emscripten build guide documented limited runtime configurations and a compiler build requiring local changes. We packaged IREE’s compiler, runtime and Python bindings for Emscripten, adapted the existing JavaScript companion to that host, and connected GPU completion to Python’s event loop.

Making these paths work together has involved a series of contributions to IREE, covering compiler lowering, pointer-width handling, buffer lifetimes and Python bindings. Many have already merged, while others are under review. These fixes address issues exposed by the browser workloads, and several also benefit other targets.

The larger browser integrations involve API and embedding decisions that need their own discussion. We currently maintain them in our IREE and Turbine forks while validating the complete workflows. The notebooks give us concrete use cases to support those discussions. Our intention is to submit these integrations upstream as separate, focused changes.

WorkWhat it enables or fixesCurrent status
IREE portability and correctnessFixes such as recorded-resource lifetimes and Wasm host pointer widths, alongside compiler and Python-binding fixesMany PRs merged, with further fixes under review
Browser CPU executionIn-process Wasm linking and loading of generated CPU executablesDownstream IREE integration
Browser GPU completionConnect queued work and completion fences to Python’s event loop in the same WorkerDownstream IREE integration
PyTorch device integrationIREE-backed tensors for model.to("webgpu") and torch.compileDownstream Turbine integration

For WebGPU, two integration boundaries deserve a closer look: how Python waits for device work, and how PyTorch tensors represent the buffers and pending computations.

Working with the browser’s asynchronous execution model​

An important integration boundary is completion.

GPU work is asynchronous. Python can submit a computation, but the browser must be able to process completion events before a host readback can finish. Blocking the kernel Worker while waiting for a callback on that same Worker would prevent progress.

Our current integration builds on IREE’s existing asynchronous execution model. It queues work with explicit dependencies, associates results with completion fences, and connects completion to Python’s event loop. Python yields when it needs to await the GPU.

Python and the WebGPU integration run in the same kernel Worker. This path needs no SharedArrayBuffer, extra GPU Worker, COOP/COEP isolation headers, JSPI or Asyncify.

Weights, optimizer state and intermediate results can remain on the GPU between calls. Synchronization and readback happen at explicit boundaries, such as displaying a loss or returning a prediction to Python.

Keeping the PyTorch model and training code familiar​

The next step was connecting that runtime to PyTorch tensors and torch.compile.

Our Turbine fork adds an optional device adapter through PyTorch’s existing PrivateUse1 extension mechanism, which allows external projects to integrate new device backends. It owns the association between PyTorch tensors, IREE device buffers and pending GPU work. A compiler backend reuses Turbine’s graph import and AOTAutograd integration.

In the MNIST notebook, backend selection is explicit:

if DEVICE == "webgpu":
from iree.runtime.webgpu import get_webgpu_device
from iree.turbine.runtime.torch_device import TorchDevice

gpu = TorchDevice(await get_webgpu_device(), name="webgpu")
BACKEND = gpu.backend
else:
gpu = None
BACKEND = "turbine_cpu"

model = model.to(DEVICE)

This gives us a common notebook structure for CPU and WebGPU: select DEVICE and the corresponding compiler backend, while keeping the model definition, loss function, optimizer and training step largely unchanged. The WebGPU path adds explicit synchronization and host readback where Python needs completed results.

This adapter is supplied by the packaged Turbine fork. Its current scope is compiled dense-tensor workflows, with explicit asynchronous synchronization and host readback. General eager WebGPU operation coverage and distributed execution are further work.

Training a model, keeping it on the GPU​

MNIST gave us a useful end-to-end test: define a classifier, compute gradients, update its parameters repeatedly, evaluate it, and try handwritten input.

The shared notebooks use the same 3.25-million-parameter model, initial weights, minibatch ordering and optimizer settings on CPU and WebGPU:

  • FP32 values
  • 49,152 training examples
  • three epochs
  • batch size 256
  • SGD with learning rate 0.05 and momentum 0.9.

The central training function is ordinary PyTorch:

def train_step(inputs, targets):
optimizer.zero_grad(set_to_none=True)
loss = F.cross_entropy(model(inputs), targets)
loss.backward()
optimizer.step()
return loss

compiled_train = torch.compile(
train_step,
backend=BACKEND,
fullgraph=False,
dynamic=False,
)

TorchDynamo and AOTAutograd capture the supported graph regions. fullgraph=False allows the normal Python training orchestration to contain graph breaks. This does not require the whole function to become one fused GPU program.

The notebook checks the first update against eager PyTorch, including the loss, gradients, updated weights and momentum. It also checks that parameters, gradients and optimizer state remain on the selected device.

On WebGPU, the loop queues updates and yields periodically to complete pending work. It reads the loss back at epoch boundaries.

What do the timings show?​

In the latest saved run of the published torch.compile notebooks, we recorded:

MeasurementIREE CPUIREE WebGPU
Three training epochs86.60 s6.86 s
32 warmed updates with resident inputs4.570 s0.370 s
Test accuracy96.8%96.8%

That is approximately 12.6× faster for the measured training loop and 12.4× for the resident-update measurement.

These are results from one local run on an Apple M5 system with 16 GiB of memory, using Chrome 157 and the wasm64 packages. The CPU build runs without pthreads. They compare the selected IREE CPU and WebGPU execution paths for this workload. They are not a general comparison of browser ML backends.

The full training-loop timing includes minibatch preparation, uploads and the recorded synchronization/readback boundaries, after the cold first update and warm-up work. The resident-update timing uses inputs already on the selected device. The cold first update is timed separately. It includes tracing, compilation and execution.

Small inference requests tell a different story. In that run, a resident single-image prediction was about 1.23 ms on CPU and 1.63 ms on WebGPU before readback. A batch of 256 took about 71.5 ms and 3.85 ms respectively. There needs to be enough work to benefit from GPU execution.

After training, a drawing panel lets you try your own digits and compare the trained model’s predictions with an untrained model.

Try it: MNIST training and inference on CPU and WebGPU.

MNIST training on CPU and WebGPU, side by side

Same MNIST model and training setup on CPU (left) and WebGPU (right): 86.6 seconds versus 6.86 seconds, about 12.6× faster in this run.

The compiler and runtime are usable directly too​

Before hiding the compiler behind a framework integration, it is useful to see what it does.

Our IREE Python API notebook takes inspiration from IREE’s edge-detection example. It compiles blur and Sobel filters inside the notebook, checks their answers against NumPy, and applies them to a photo on CPU or WebGPU.

Intermediate images can stay on the GPU between calls. The notebook exposes the compilation and execution steps through Python, making it useful for compiler experiments as well as image processing.

Noisy input, blurred image and detected edges using IREE

Noisy input, Gaussian blur and Sobel edges, processed with IREE’s Python APIs in JupyterLite. Based on IREE’s edge-detection notebook. Photo: Yellow Labrador Looking by Elf, with edits by Djmirko/FT2, CC BY-SA 3.0. The grayscale, noised, blurred and edge-filtered image derivatives retain that licence.

With this stack in place, porting the following standard notebooks from IREE’s PyTorch guide to the browser was straightforward:

ExampleBrowser notebook
Just-in-time compilationCPU / WebGPU
Simple ahead-of-time exportCPU / WebGPU
Advanced ahead-of-time exportCPU / WebGPU
Dynamic shapesCPU / WebGPU

The original model and export examples remain the starting point. Browser adaptations replace native installation and command-line compilation steps with the packaged, in-process APIs, and make asynchronous GPU completion explicit.

Ahead-of-time export here describes when compilation happens relative to execution. The export and compilation can still happen inside the browser, in an earlier notebook cell.

From a playground to an editable notebook​

Shoutout to the ExecuTorch team: their playground is an excellent demonstration of what browser-local ML can do. We ported these vision and speech demos to JupyterLite using the PyTorch, Turbine and IREE packages available on emscripten-forge.

You can now explore them as Python notebooks: inspect the model, change the computation, and compile and run it again inside the browser.

The live-demo links below open the WebGPU notebooks. To compare with CPU, open the matching CPU notebook from the file browser.

Live D-FINE detection of a person, mug and phone in JupyterLite

Live D-FINE object detection in JupyterLite, recognising a person, a mug and a phone with the PyTorch model compiled for WebGPU.

Creating your notebook environment​

The PyTorch, Turbine and IREE packages used in these demos are available from emscripten-forge’s 6x channel. For example, the Depth Anything V2 notebooks use the following environment.yml with the emscripten-wasm64 target:

# Target platform: emscripten-wasm64
name: depth-wasm64
channels:
- https://repo.prefix.dev/emscripten-forge/6x
- conda-forge
dependencies:
- python=3.14.3
- xeus-python=0.19.1
- pyjs=4.1.0
- numpy=2.5.4
- iree-base-compiler
- iree-base-runtime
- pytorch=2.15.0a0
- iree-turbine=3.10.0
- pillow=13.0.0
- opencv=5.0.0

To try this yourself, create an environment on Notebook.link, set its platform to emscripten-wasm64, and paste the YAML above into the environment definition. Once it resolves, save it and create a project using that environment. Add your notebooks and supporting files, then launch the project to start experimenting in JupyterLite.

Near Future work​

Somethings that can be addressed in the near future are the following :

JAX → IREE → WebGPU​

IREE can already compile StableHLO exported from JAX. We want to connect ordinary JAX execution to our browser WebGPU runtime through PJRT, JAX’s backend interface. This requires integrating device buffers and asynchronous completion with the browser’s execution model, and would also open a WebGPU route for supported PyTorch computations through TorchAX.

ONNX Runtime and WebNN​

We are also exploring ONNX Runtime’s WebNN execution provider as another route for exported PyTorch models, including access to NPUs where supported. We want to measure whether these accelerators can improve latency or energy efficiency for suitable workloads alongside our WebGPU experiments.

Conclusion & Collaboration Opportunities​

These notebooks bring familiar Python model development into the browser: define a model, compile it, train it and explore the results in the same session. This builds on our compiler and Jupyter work at QuantStack.

We are interested in collaborating with organizations that want to support Python ML frameworks, compilers and runtimes in the browser. There are practical applications in interactive documentation, teaching, reproducible research, on-device processing, and products that benefit from keeping computation close to the user.

Funding would help us maintain these ports, work with upstream maintainers to review and land the larger integrations, and strengthen packaging and continuous browser testing. It would also support broader model and device coverage, including more fine-tuning workflows.

If this fits something you are building—or would like to build—we would love to talk.

In the meantime, open a notebook, change the model, and see what your browser can do ;)

Acknowledgments​

Shoutout to the emscripten-forge team, especially Thorsten Beier, Isabel Paredes and Ian Thomas, for their work on wasm64 support, CPython, the Python kernel, NumPy and the packaging infrastructure behind these notebooks. Thanks also to Alexis Placet for bringing OpenCV to emscripten-forge, which we use throughout the vision and camera demos.

Thanks to the IREE team, particularly Tobias Fuchs, Stefan Schuermans, Artem Gindinson, Jelle Schühmacher and ziereis, for reviewing, discussing and merging my contributions. Their feedback helped improve the compiler, runtime and portability fixes behind this work and bring more of it upstream.