News for hackers. Stuff that matters.
Re:Python on the Edge: Fast, sandboxed, and powered by WebAs... by behnamoh on Wednesday September 24, 2025 @01:41PM (#45363580)
``` ╰─ wasmer run python/python

error: Spawn failed

╰─▶ 1: compile error: Validate("exceptions proposal not enabled (at offset 0x191a)")

```

Re:Python on the Edge: Fast, sandboxed, and powered by WebAs... by the_duke on Wednesday September 24, 2025 @01:42PM (#45363598)
You'll need the latest wasmer RC for proper exceptions support.

We unfortunately didn't get the final release out quite in time...

    curl https://get.wasmer.io -sSfL | sh -s "v6.1.0-rc.5"
    wasmer run python/python
Re:Python on the Edge: Fast, sandboxed, and powered by WebAs... by simonw on Wednesday September 24, 2025 @01:43PM (#45363618)
How long should it take for "wasmer run python/python" to start showing me output? It's been hung for a while for me now (I upgraded to wasmer 6.1.0-rc.5).

"wasmer run python/python@=0.2.0" on the same machine gets me into Python 3.12.0 almost instantly.

Re:Python on the Edge: Fast, sandboxed, and powered by WebAs... by the_duke on Wednesday September 24, 2025 @01:46PM (#45363658)
Compilation with LLVM takes quite a while (the final release will show a spinner...).

So please wait a bit - subsequent runs will be fast, since compiled Python will be cached.

Re:Python on the Edge: Fast, sandboxed, and powered by WebAs... by simonw on Wednesday September 24, 2025 @01:46PM (#45363666)
Oh so it's actually compiling everything on my machine?

Any chance `wasmer run python/python` might download a pre-compiled version in the future?

Re:Python on the Edge: Fast, sandboxed, and powered by WebAs... by the_duke on Wednesday September 24, 2025 @01:50PM (#45363703)
Yeah, that's mentioned as a small side note in the blog post - we are working on it, and will hopefully have it ready in a week or two!
Re:Python on the Edge: Fast, sandboxed, and powered by WebAs... by simonw on Wednesday September 24, 2025 @01:57PM (#45363786)
OK got there in the end! I didn't time it but felt like around 10 minutes or more.

It did give me one warning message:

  % wasmer run python/python
  Python 3.13.0rc2 (heads/feat/dl-dirty:152184da8f, Aug 28 2025, 23:40:30) [Clang 21.1.0-rc2 ([email protected]:wasix-org/llvm-project.git 70df5e11515124124a4 on wasix
  Type "help", "copyright", "credits" or "license" for more information.
  warning: can't use pyrepl: No module named 'msvcrt'
  >>>
Re:Python on the Edge: Fast, sandboxed, and powered by WebAs... by shakna on Wednesday September 24, 2025 @04:56PM (#45365829)
That sounds like the compilation is accidentally triggering this old frustration [0].

[0] https://github.com/python/cpython/issues/131189

Re:Python on the Edge: Fast, sandboxed, and powered by WebAs... by behnamoh on Wednesday September 24, 2025 @06:17PM (#45366618)
Compilation was slow for me on macOS too.
Re:Python on the Edge: Fast, sandboxed, and powered by WebAs... by syrusakbary on Wednesday September 24, 2025 @07:24PM (#45367171)
We'll improve this very soon, right now the experience is less than ideal.

Ideally we would download the compiled artifacts instead of compiling as Simon commented... it will be a much better experience for everyone!

Re:Python on the Edge: Fast, sandboxed, and powered by WebAs... by hoodchatham on Thursday September 25, 2025 @11:27AM (#45373924)
It says the same thing in the pyodide repl for what it's worth.