alt.hn

1/1/2026 at 10:09:16 PM

WebAssembly as a Python Extension Platform

https://nullprogram.com/blog/2026/01/01/

by ArmageddonIt

1/2/2026 at 4:10:39 AM

The author never explains why they went for non-WASI runtime. Is there an advantage to doing that?

by mkoubaa

1/2/2026 at 5:09:36 AM

> For the use cases in this article, the best option is wasmtime-py.

They seem to have gone with a WASI runtime. Though to me, the caveats after it, and throughout the article, make it seem like Wasm is more difficult to deal with than PyO3's excellent ecosystem rather than the opposite.

by pjjpo

1/2/2026 at 4:47:43 AM

An advantage of WASI is that it mostly works on non-WASI runtimes too, as it can be compiled to one or more normal modules (with the multi memory feature).

So a possible reason is that maybe they are not interested in offering general interfaces but just a single python specific one.

In this case they could have likely used wasi for that too but I can see how it could have been seen as an overhead

by afiori