> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Runtimes

> The interpreters the Python SDK runs inside Mirage, and how they differ from the TypeScript SDK's.

A runtime is the interpreter that runs `python3` and `node` on the
`in_process` machine, where a line runs inside the Mirage process and there is
no installed interpreter to call. On a host, container or sandbox, the
`python3` installed there runs instead. [Runtimes](https://docs.mirage.strukto.ai/home/setup/runtime/overview.md)
explains the split; each page here has the Python install and a runnable
example.

| Runtime | Runs | |
| - | - | - |
| ![](https://mintcdn.com/struktoai/OaLqykifYafGIzhl/images/pydantic-logo.svg?fit=max\&auto=format\&n=OaLqykifYafGIzhl\&q=85\&s=0e9cb6e1b9dbb44cb375a75eeffc071a)[Monty](https://docs.mirage.strukto.ai/python/runtime/monty.md) | Python | |
| ![](https://mintcdn.com/struktoai/SF883ehuzv5QF1wx/images/webassembly-logo.svg?fit=max\&auto=format\&n=SF883ehuzv5QF1wx\&q=85\&s=bf9736a955b46d44d55c7769ce6b423e)[WASI](https://docs.mirage.strukto.ai/python/runtime/wasi.md) | Python, on CPython built for WASI | Python SDK only |
|  [QuickJS](https://docs.mirage.strukto.ai/python/runtime/quickjs.md) | JavaScript | |

## Differences from the TypeScript SDK

* **Monty:** `os.chdir()` works and lasts for the run, and `os.stat()`
  returns a real named tuple, so `st[6]` and `len(st)` work. Runs execute on
  Monty's worker pool, so the event loop stays free and cancelling a run halts
  the interpreter. Every workspace in the process shares one pool of four
  workers; a run waiting on workspace I/O holds one, and a run past the four
  waits for one to free up.
* **QuickJS:** the real quickjs-ng `std` and `os`. The first run compiles
  `qjs-wasi.wasm` and caches `qjs-wasi.cwasm` beside it. A write shows to
  other commands once the file is closed or the run ends, and a timeout
  stops the run.
* **WASI** is in the Python SDK only; Pyodide is in the TypeScript SDK only.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.