by baalimago on 9/24/25, 3:48 PM with 158 comments
by simonw on 9/24/25, 4:12 PM
brew install wasmer
wasmer run python/python@=0.2.0
Running that gave me a Python 3.12 shell apparently running entirely in a WebAssembly sandbox!I've been trying to find a robust, reliable and easy way to run a Python process in WebAssembly (outside of a browser) for a few years.
by anentropic on 9/25/25, 9:59 AM
Just want to point out that this section avoids mentioning the best way to do it:
> AWS Lambda doesn't natively run unmodified Python apps:
>
> - You need adapters (such as https://github.com/slank/awsgi or https://github.com/Kludex/mangum) for running your WSGI sites.
> - WebSockets are unsupported.
> - Setup is complex, adapters are often unmaintained.
AWS provides https://github.com/awslabs/aws-lambda-web-adapter which is a) supported and b) written Rust, providing a translation of Lambda requests back into HTTP so you can use your usual entry point to the WSGI app. It is simple to set up.WebSockets still not supported of course, but the issue of adapters is solved.
by PaulHoule on 9/24/25, 5:32 PM
That said, there is a need for accelerating branchy pure-python workloads too, I did a lot of work with rdflib where PyPy made all the difference and we also need runtimes that can accelerate those workloads.
by rcarmo on 9/24/25, 7:48 PM
Still, that close to native Python is an interesting place to be.
by spicypixel on 9/24/25, 9:24 PM
I'd love to implement customer supplied transformation scripts for exports of data but I need this python to be fully sandboxed and only operate on the data I give it.
by didip on 9/24/25, 5:20 PM
by 999900000999 on 9/24/25, 5:06 PM
Brendan Eich ( the creator of JavaScript) was kind enough chime in that it would be impossible for variety of reasons.
Obviously he knows more about this than me, but I think Google could put Dart in there if they really wanted.
WebAssembly is pretty close though.
by codedokode on 9/24/25, 4:40 PM
Also it says "Pay CDN-like costs for your cloud applications – that’s Wasmer Edge." and I don't understand why I need to pay for the cloud if the app is serverless. That's exactly the point of serverless app that you don't need to pay for the servers because, well, the name implies that there is no server.
by indigodaddy on 9/24/25, 10:37 PM
Eg something like this flask-based app? (Yes the code is shit, I’m just a sysadmin learning Python with some AI support at that time).
https://github.com/jgbrwn/my-upc/blob/main/app.py
Also, if wasmer supports Starlette, I assume it would support FastHTML (web framework that uses Starlette under the hood) ?
by jonny_eh on 9/24/25, 8:56 PM
by HPsquared on 9/24/25, 7:27 PM
by koeng on 9/25/25, 8:06 AM
I’ve been looking at using lua for something like this: basically, users will be able to program robots in my lab (biotech) to do things, and I need a scripting language I can easily embed and control the runtime of in the larger system.
Lua is theoretically better in… almost every way, except everyone in bio uses python. So it could allow more easy modification of LLM generated scripts (not worried about the libraries because I mostly want to limit them: the scripts are mainly to just run robots, and you can have them webhook out if you need complicated stuff)
My question would be: would running a python sandbox vs a lua sandbox actually be appreciably better? Not sure yet, but will have to investigate with this new package (since it has Go bindings!)
by theanonymousone on 9/24/25, 5:15 PM
Would be way more exciting if it could _compile_ Python to Wasm (or does it?).
by brumar on 9/24/25, 6:35 PM
by DonHopkins on 9/24/25, 7:53 PM
by liqilin1567 on 9/25/25, 4:34 AM
by selinkocalar on 9/30/25, 1:09 AM
by crashabr on 9/24/25, 10:21 PM
by pzo on 9/24/25, 7:10 PM
by zzzeek on 9/25/25, 2:36 AM
I assume this is targeting the standalone WebAssembly use case, we're not...running MySQL in browsers right?
by Mikhail_K on 9/25/25, 1:01 PM
by jiri on 9/25/25, 9:12 AM
by LudwigNagasena on 9/24/25, 4:59 PM
by 1024bees on 9/25/25, 2:29 AM
by BinaryIgor on 9/25/25, 4:02 PM
by alex_reg on 9/24/25, 6:38 PM
> wasmer app create --template=static-website
gets you from empty folder to initialized template and deployed static website in like 10 seconds when logged in.
Pretty nice.
by Panzerschrek on 9/25/25, 6:05 AM
by xrd on 9/25/25, 1:37 PM
Since LLMs have made me so lazy that I never bother to search or read on my own, can someone tell me whether I can use uv as my project management tool with wasmer? What's the story here?
I simply CANNOT go back to use packages without uv, it would be unthinkable to me.
Actually, now that I think of it, my laziness might have started when I learned perl 30 years ago.
by neuroelectron on 9/25/25, 3:17 AM
by pumanoir on 9/24/25, 11:55 PM
by IshKebab on 9/24/25, 9:43 PM