# WebAssembly

**URL:** https://discuss.python.org/c/webassembly/28.md

[Latest](https://discuss.python.org/latest.md) · [Categories](https://discuss.python.org/categories.md) · [Tags](https://discuss.python.org/tags.md)

---

## [About the WebAssembly category](https://discuss.python.org/t/about-the-webassembly-category/15507)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 0

</div>

A place for the developers of various Python-in-WebAssembly projects to coordinate and collaborate.

---

## [Releasing WASI binaries as part of a CPython release](https://discuss.python.org/t/releasing-wasi-binaries-as-part-of-a-cpython-release/109825)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 0\
**Last updated:** [November 2, 2026, 11:16pm UTC](https://discuss.python.org/t/releasing-wasi-binaries-as-part-of-a-cpython-release/109825 "2026-11-02T23:16:43Z")

</div>

xpost: Releasing official WASI binaries as part of releases

---

## [WASI distribution PoC](https://discuss.python.org/t/wasi-distribution-poc/108168)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 5\
**Last updated:** [July 22, 2026, 10:34pm UTC](https://discuss.python.org/t/wasi-distribution-poc/108168 "2026-07-22T22:34:15Z")

</div>

I now have an MVP for a WASI distribution coded up at GitHub - brettcannon/cpython at wasi-package · GitHub . But before I go and ask for a code review, I wanted to make sure I wasn’t missing anything. Below is the outpu…

---

## [PEP 783 – Emscripten Packaging is accepted](https://discuss.python.org/t/pep-783-emscripten-packaging-is-accepted/107393)

<div class="topic-metadata">

**Author:** [@ryanking13](https://discuss.python.org/u/ryanking13)\
**Replies:** 1\
**Last updated:** [May 29, 2026, 11:14am UTC](https://discuss.python.org/t/pep-783-emscripten-packaging-is-accepted/107393 "2026-05-29T11:14:06Z")

</div>

It’s been a few weeks already, but I’m pleased to announce that PEP 783 – Emscripten Packaging has been accepted. It is now possible to build and upload PyEmscripten wheels through pyodide-build or cibuildwheel and uplo…

---

## [WebAssembly Summit at PyCon US 2026](https://discuss.python.org/t/webassembly-summit-at-pycon-us-2026/107132)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 0\
**Last updated:** [April 29, 2026, 7:19pm UTC](https://discuss.python.org/t/webassembly-summit-at-pycon-us-2026/107132 "2026-04-29T19:19:02Z")

</div>

---

## [P2w: A Python-to-WebAssembly AOT Compiler (v0.2.1)](https://discuss.python.org/t/p2w-a-python-to-webassembly-aot-compiler-v0-2-1/106768)

<div class="topic-metadata">

**Author:** [@sfermigier](https://discuss.python.org/u/sfermigier)\
**Replies:** 18\
**Last updated:** [April 8, 2026, 11:58am UTC](https://discuss.python.org/t/p2w-a-python-to-webassembly-aot-compiler-v0-2-1/106768 "2026-04-08T11:58:58Z")

</div>

I’ve been working on p2w, a side project that compiles a subset of Python to WebAssembly, using the WASM GC proposal for memory management. The compiler translates Python source directly to WAT, with no intermediate libr…

---

## [Building a Python compiler in Rust that runs faster than CPython with a 160KB WASM binary](https://discuss.python.org/t/building-a-python-compiler-in-rust-that-runs-faster-than-cpython-with-a-160kb-wasm-binary/106860)

<div class="topic-metadata">

**Author:** [@dylan\_sutton\_chavez](https://discuss.python.org/u/dylan_sutton_chavez)\
**Replies:** 4\
**Last updated:** [April 6, 2026, 7:42pm UTC](https://discuss.python.org/t/building-a-python-compiler-in-rust-that-runs-faster-than-cpython-with-a-160kb-wasm-binary/106860 "2026-04-06T19:42:04Z")

</div>

What My Project Does Edge Python is a Python 3.13 compiler written in Rust — hand-written lexer, single-pass SSA parser, and an adaptive VM with inline caching and template memoization. It runs fib(45) in 11ms where CPy…

---

## [PEP specifying WASI support](https://discuss.python.org/t/pep-specifying-wasi-support/105238)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 0\
**Last updated:** [December 8, 2025, 7:33pm UTC](https://discuss.python.org/t/pep-specifying-wasi-support/105238 "2025-12-08T19:33:32Z")

</div>

please direct any comments to the other thread.

---

## [Draft PEP on defining WASI support](https://discuss.python.org/t/draft-pep-on-defining-wasi-support/104758)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 13\
**Last updated:** [November 14, 2025, 10:29am UTC](https://discuss.python.org/t/draft-pep-on-defining-wasi-support/104758 "2025-11-14T10:29:42Z")

</div>

Basically this PEP says that the WASI and WASI SDK version under testing once b1 is reached will be the version that will be supported for that version of Python for its lifetime. If people think that’s a bad idea the…

---

## [Error when make install for wasm32-wasip1 on Python3.14.0rc1](https://discuss.python.org/t/error-when-make-install-for-wasm32-wasip1-on-python3-14-0rc1/101936)

<div class="topic-metadata">

**Author:** [@oroppas](https://discuss.python.org/u/oroppas)\
**Replies:** 4\
**Last updated:** [August 17, 2025, 2:18pm UTC](https://discuss.python.org/t/error-when-make-install-for-wasm32-wasip1-on-python3-14-0rc1/101936 "2025-08-17T14:18:08Z")

</div>

I encountered the error: cd Python-3.14.0rc1 python3 Tools/wasm/wasi build -- --config-cache cd cross-build/wasm32-wasip1 make install ended up with install: cannot stat 'build/lib.wasi-wasm32-3.14/build-details.json'…

---

## [Using the new Python 3.13 REPL with Emscripten](https://discuss.python.org/t/using-the-new-python-3-13-repl-with-emscripten/67472)

<div class="topic-metadata">

**Author:** [@trey](https://discuss.python.org/u/trey)\
**Replies:** 6\
**Last updated:** [July 21, 2025, 2:13pm UTC](https://discuss.python.org/t/using-the-new-python-3-13-repl-with-emscripten/67472 "2025-07-21T14:13:22Z")

</div>

I would like to get the new Python REPL working in the in-browser Emscripten-powered WebAssembly (in Tools/wasm). I’m not well-versed with terminal emulation, WebAssembly, or Emscripten but I do have an interest in this…

---

## [WASI releases for CPython 3.11.9 and 3.12.10](https://discuss.python.org/t/wasi-releases-for-cpython-3-11-9-and-3-12-10/90257)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 0\
**Last updated:** [April 30, 2025, 7:32pm UTC](https://discuss.python.org/t/wasi-releases-for-cpython-3-11-9-and-3-12-10/90257 "2025-04-30T19:32:58Z")

</div>

Those versions are done insomuch as they won’t get any more releases as they are in security-only mode and thus don’t get binary releases. I also changed how I do builds at GitHub - brettcannon/cpython-wasi-build: Un…

---

## [PyCon 2025: WebAssembly Summit - Notes or recording afterward?](https://discuss.python.org/t/pycon-2025-webassembly-summit-notes-or-recording-afterward/87410)

<div class="topic-metadata">

**Author:** [@davidfstr](https://discuss.python.org/u/davidfstr)\
**Replies:** 1\
**Last updated:** [April 7, 2025, 11:28pm UTC](https://discuss.python.org/t/pycon-2025-webassembly-summit-notes-or-recording-afterward/87410 "2025-04-07T23:28:21Z")

</div>

There is a WebAssembly Summit at PyCon 2025 on Thurs 5/15. I am interested in the topics of the summit but cannot attend in person. I would love it if someone (or the individual presenters) were to take notes or a recor…

---

## [WASI build of 3.13.0](https://discuss.python.org/t/wasi-build-of-3-13-0/66979)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 6\
**Last updated:** [December 19, 2024, 11:46pm UTC](https://discuss.python.org/t/wasi-build-of-3-13-0/66979 "2024-12-19T23:46:41Z")

</div>

The first final release of CPython with WASI as a tier 2 platform!

---

## [PEP 11 updated to list \`wasm32-wasip1\` as the supported triple](https://discuss.python.org/t/pep-11-updated-to-list-wasm32-wasip1-as-the-supported-triple/70493)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 0\
**Last updated:** [November 7, 2024, 10:47pm UTC](https://discuss.python.org/t/pep-11-updated-to-list-wasm32-wasip1-as-the-supported-triple/70493 "2024-11-07T22:47:01Z")

</div>

I have also updated main to make wasm32-wasip1 the default when building. Working on doing the same for 3.13 and fixing the buildbots as this change broke things. :sweat\_smile:

---

## [Are there any widget sets for native-like programming inside a browser?](https://discuss.python.org/t/are-there-any-widget-sets-for-native-like-programming-inside-a-browser/50370)

<div class="topic-metadata">

**Author:** [@dstromberg](https://discuss.python.org/u/dstromberg)\
**Replies:** 4\
**Last updated:** [October 16, 2024, 7:53pm UTC](https://discuss.python.org/t/are-there-any-widget-sets-for-native-like-programming-inside-a-browser/50370 "2024-10-16T19:53:33Z")

</div>

I was pretty excited to see this article today: It’s got me wondering: Are there any widget sets usable from Python in Web Assembly yet? How mature are they? I’ve been on the fence about jumping to Rust or C++ to use…

---

## [Emscripten Browser Build: 'Encodings Module' not Found Despite Python Folder Existing at Correct Path](https://discuss.python.org/t/emscripten-browser-build-encodings-module-not-found-despite-python-folder-existing-at-correct-path/63211)

<div class="topic-metadata">

**Author:** [@rdeepak2002](https://discuss.python.org/u/rdeepak2002)\
**Replies:** 3\
**Last updated:** [September 8, 2024, 11:44pm UTC](https://discuss.python.org/t/emscripten-browser-build-encodings-module-not-found-despite-python-folder-existing-at-correct-path/63211 "2024-09-08T23:44:35Z")

</div>

Hello, I followed the instructions on the 3.12 branch to build CPython for Emscripten (browser). I was able to successfully do so thanks to the amazing documentation and I also ran the REPL to ensure everything was worki…

---

## [A reactive web framework for Python built on PyScript](https://discuss.python.org/t/a-reactive-web-framework-for-python-built-on-pyscript/59519)

<div class="topic-metadata">

**Author:** [@bouncing](https://discuss.python.org/u/bouncing)\
**Replies:** 0\
**Last updated:** [July 30, 2024, 10:20am UTC](https://discuss.python.org/t/a-reactive-web-framework-for-python-built-on-pyscript/59519 "2024-07-30T10:20:27Z")

</div>

Hello everyone. I hope I’m announcing this in the right place. If anyone is interested in a “pure Python” frontend framework for the web, I took PyScript and built a reactive framework on top of it called PuePy. It’s ins…

---

## [Bundling Python apps for the web & top level imports](https://discuss.python.org/t/bundling-python-apps-for-the-web-top-level-imports/15663)

<div class="topic-metadata">

**Author:** [@rth](https://discuss.python.org/u/rth)\
**Replies:** 9\
**Last updated:** [June 19, 2024, 1:14am UTC](https://discuss.python.org/t/bundling-python-apps-for-the-web-top-level-imports/15663 "2024-06-19T01:14:13Z")

</div>

The size of Python applications is clearly an issue for running it on a web page. There are a number of attempts to address this, here I would like to start a discussion about the bundling of applications (i.e. taking a…

---

## [More exciting news about Python+WASM](https://discuss.python.org/t/more-exciting-news-about-python-wasm/51856)

<div class="topic-metadata">

**Author:** [@dstromberg](https://discuss.python.org/u/dstromberg)\
**Replies:** 1\
**Last updated:** [April 25, 2024, 10:00am UTC](https://discuss.python.org/t/more-exciting-news-about-python-wasm/51856 "2024-04-25T10:00:03Z")

</div>

Not CPython, but still Python:

---

## [Announcing LTK and PySheets](https://discuss.python.org/t/announcing-ltk-and-pysheets/50400)

<div class="topic-metadata">

**Author:** [@laffra](https://discuss.python.org/u/laffra)\
**Replies:** 0\
**Last updated:** [April 6, 2024, 8:41am UTC](https://discuss.python.org/t/announcing-ltk-and-pysheets/50400 "2024-04-06T08:41:01Z")

</div>

Two things of interest related to Python & WebAssembly: LTK is a Python widget toolkit to build UIs in PyScript, running on MicroPython or PyOdide. PySheets is a spreadsheet written entirely in Python, running in the b…

---

## [CPython now compiles and passes under WASI SDK 21](https://discuss.python.org/t/cpython-now-compiles-and-passes-under-wasi-sdk-21/48514)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 0\
**Last updated:** [March 14, 2024, 5:34pm UTC](https://discuss.python.org/t/cpython-now-compiles-and-passes-under-wasi-sdk-21/48514 "2024-03-14T17:34:22Z")

</div>

Biggest impact is anyone using something that implements dlopen(), you now shouldn’t need to patch the CPython source to make WASI SDK 21 work and pass the test suite.

---

## [WASI is now part of CPython CI](https://discuss.python.org/t/wasi-is-now-part-of-cpython-ci/48234)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 0\
**Last updated:** [March 11, 2024, 7:04pm UTC](https://discuss.python.org/t/wasi-is-now-part-of-cpython-ci/48234 "2024-03-11T19:04:03Z")

</div>

This should help even more in keeping main compatible w/ some version of wasmtime and the WASI SDK at all times. It also technically gets us closer to WASI being a tier 1 platform, but I currently have no plans to pus…

---

## [CPython now works w/ wasmtime 18 under preview2](https://discuss.python.org/t/cpython-now-works-w-wasmtime-18-under-preview2/47905)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 0\
**Last updated:** [March 7, 2024, 6:27pm UTC](https://discuss.python.org/t/cpython-now-works-w-wasmtime-18-under-preview2/47905 "2024-03-07T18:27:20Z")

</div>

While it took some upstream fixes as well as changes in CPython itself, wasmtime 18 now passes the test suite when --wasi preview2 is specified. This has all been backported through 3.11, although it isn’t available in a…

---

## [\[WASI\] Importing namespaced 3rd party C extensions (with import cycles)](https://discuss.python.org/t/wasi-importing-namespaced-3rd-party-c-extensions-with-import-cycles/24606)

<div class="topic-metadata">

**Author:** [@kesmit](https://discuss.python.org/u/kesmit)\
**Replies:** 26\
**Last updated:** [February 24, 2024, 2:29am UTC](https://discuss.python.org/t/wasi-importing-namespaced-3rd-party-c-extensions-with-import-cycles/24606 "2024-02-24T02:29:32Z")

</div>

I’ve been trying to get C extensions working in the WASI build of Python. I started with a simple one that lives at the top-level, statically linked it, and used PyImport\_AppendInittab in my C wrapper and it worked just …

---

## [WASI is now a tier 2 platform](https://discuss.python.org/t/wasi-is-now-a-tier-2-platform/45417)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 0\
**Last updated:** [February 8, 2024, 9:51pm UTC](https://discuss.python.org/t/wasi-is-now-a-tier-2-platform/45417 "2024-02-08T21:51:49Z")

</div>

I will be making a separate post in Core Development once I land a few PRs to update some things before I provide some guidance to other core devs, but I figured I would announce ASAP here.

---

## [Devguide documentation PR on how to build for WASI](https://discuss.python.org/t/devguide-documentation-pr-on-how-to-build-for-wasi/45236)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 0\
**Last updated:** [February 7, 2024, 12:32am UTC](https://discuss.python.org/t/devguide-documentation-pr-on-how-to-build-for-wasi/45236 "2024-02-07T00:32:42Z")

</div>

Feedback is appreciated! Once this is merged I will update PEP 11 to make WASI a tier 2 platform!

---

## [I'm stepping down as sponsor of Emscripten](https://discuss.python.org/t/im-stepping-down-as-sponsor-of-emscripten/41064)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 23\
**Last updated:** [February 1, 2024, 8:38am UTC](https://discuss.python.org/t/im-stepping-down-as-sponsor-of-emscripten/41064 "2024-02-01T08:38:29Z")

</div>

I asked if any other core dev wants to take over at Looking for a new sponsor for \`wasm32-unknown-emscripten\` .

---

## [Improved build process for WASI](https://discuss.python.org/t/improved-build-process-for-wasi/39944)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 0\
**Last updated:** [November 30, 2023, 12:55am UTC](https://discuss.python.org/t/improved-build-process-for-wasi/39944 "2023-11-30T00:55:55Z")

</div>

Cross-posting Improved experience in building for WASI

---

## [Building from Source for Fedora server with WASM in mind](https://discuss.python.org/t/building-from-source-for-fedora-server-with-wasm-in-mind/33549)

<div class="topic-metadata">

**Author:** [@blaisep](https://discuss.python.org/u/blaisep)\
**Replies:** 0\
**Last updated:** [September 11, 2023, 5:49pm UTC](https://discuss.python.org/t/building-from-source-for-fedora-server-with-wasm-in-mind/33549 "2023-09-11T17:49:25Z")

</div>

I have a well-endowed homelab server and I would like to build 3.11 for it with all the bells and whistles. Are these the right choices? Are there better ones? sudo ./configure --prefix=/opt/python/3.11.5/ --enable-opt…

[Next page](https://discuss.python.org/c/webassembly/28.md?page=1)
