frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Python on the Edge: Fast, sandboxed, and powered by WebAssembly

https://wasmer.io/posts/python-on-the-edge-powered-by-webassembly
75•baalimago•2h ago

Comments

simonw•1h ago
OK this looks promising:

  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.

theanonymousone•1h ago
Hasn't Pyodide been available for some years now?
simonw•1h ago
Yes but it works only in the browser - running Pyodide outside of a browser is a lot of extra work.

My previous attempts are described here:

- https://til.simonwillison.net/deno/pyodide-sandbox

- https://til.simonwillison.net/webassembly/python-in-a-wasm-s...

almostgotcaught•1h ago
not true

    pyodide venv .venv-pyodide
    source .venv-pyodide/bin/activate
I don't know what runtime it uses but I have tests in nightly CI that run exactly like this.

see https://pyodide.org/en/stable/development/building-packages-...

simonw•1h ago
Interesting - I hadn't seen that before:

> Pyodide provides an experimental command line runner for testing packages against Pyodide. Using it requires nodejs version 20 or newer.

Looks like it's a recent addition?

almostgotcaught•1h ago
No clue - I added that CI job around 6 months ago.
simonw•1h ago
I tracked it down to this PR from September 2022, so it's been around for a while: https://github.com/pyodide/pyodide/pull/2976
syrusakbary•1h ago
Thanks!

Forgot to put it on the article, but the latest Python requires the Wasmer rc.5 to run! (the final release will be coming very soon)

    curl https://get.wasmer.io -sSfL | sh -s "v6.1.0-rc.5"
    wasmer run python/python
behnamoh•14m ago
``` ╰─ wasmer run python/python

error: Spawn failed

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

```

the_duke•13m ago
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
simonw•11m ago
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.

the_duke•9m ago
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.

simonw•8m ago
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?

the_duke•4m ago
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!
codedokode•1h ago
I tried to understand what is "Wasmer Edge" but couldn't. They say on the front page "Make any app serverless. The cheapest, fastest and most scalable way to deploy is on the edge." and it seems like I can upload the source code of any app and they will convert it for me? Unlikely so.

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.

syrusakbary•1h ago
Thanks for the feedback.

Normally, if you want to run your apps serverlessly you'll need to adapt your source code to it (both AWS Lambda and Cloudflare Workders require creating a custom HTTP handler).

In our case, you can run your normal server (lets say uvicorn) without any code changes required from our side.

Of course, you can already do this in Docker-enabled workloads: Google Cloud or Fly.io, for example. But that means that your apps will have long cold-start times at a way higher cost (no serverless).

Hope this makes things clear!

codedokode•1h ago
Thank you for the explanation, now I can better see the differences between "serverless" platforms although I am still a little disappointed that so called "serverless" apps still require a (paid) server despite the name.
__MatrixMan__•27m ago
This bugs me all the time. Ethernet is serverless. Minesweeper is serverless. AWS Lambda is quite serverful, you're just not allowed to get a shell on that server.
mvhv•1h ago
I believe "serverless" in this sense means "like AWS lambda". Theoretically you upload some small scripts and they're executed on-demand out of a big resource pool, rather than you paying for/running an entire server yourself.

It seems like a horrible way to build a system with any significant level of complexity, but idk maybe it makes sense for very rarely used and light routes?

simonw•1h ago
Confusingly, "Serverless" doesn't mean there's no server. It means that you don't have to manage a server yourself.

My preferred definition of serverless is scale-to-zero - where if your app isn't getting any traffic you pay nothing (as opposed to paying a constant fee for having your own server running that's not actually doing any work), then you pay more as the traffic scales up.

Frustratingly there are some "serverless" offerings out there which DO charge you even for no traffic - "Amazon Aurora Serverless v1" did that, I believe they fixed it in v2.

codedokode•59m ago
Then it should be called manageless?
DangitBobby•56m ago
Still confusing, since infrastructure you don't have to manage yourself is sometimes called "managed". It makes sense from the perspective of "you are paying us to manage this for you".
simonw•55m ago
It's a terrible name, but it's been around for over a decade now so we're stuck with it.

I mostly choose not to use it, because I don't like using ambiguous terminology if I can be more specific instead. So I'll say things like "scale-to-zero".

LudwigNagasena•55m ago
Does your solution support interop between modules written in different languages? I would love to be able to pass POD objects between Python and JS inside the same runtime.
theanonymousone•42m ago
For a backend project in Java, I use Jep for Python interoperability and making use of Python ecosystem. It gives me a "non-restricted" Python to have in my Java code, something I'm quite happy with. Wondering how this compares to that .

See https://github.com/ninia/jep

999900000999•49m ago
I actually want browsers to support other languages natively.

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.

willseth•30m ago
Ideally, sure, but that would increase the already enormous burden of building a standards compliant web browser. For a healthy web ecosystem it's important that not only trillion dollar companies can contribute or compete.
999900000999•27m ago
Not every single website needs to support every single browser. This is a modern convenience, I was doing QA back in the day when we still had to support Internet explorer.

Internet explorer just didn't provide the same experience as Chrome.

simonw•9m ago
What would "support other languages natively" give you that WebAssembly doesn't?
theanonymousone•40m ago
Wondering how this compares to e.g. Jep for Java/Python interoperability (https://github.com/ninia/jep).

Would be way more exciting if it could _compile_ Python to Wasm (or does it?).

didip•34m ago
How does WASM replace/implement language specific features like goroutines or Python's asyncio loop, or the specifics of each language's GC?
PaulHoule•22m ago
FFI support (like they have) is essential for any alternative Python to be worthwhile because so much of what makes Python useful today is numpy and keras and things like that.

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.

Gen Z are eating dinner at 6pm – and it's because they're losers

https://www.standard.co.uk/comment/gen-z-eating-early-dining-alcohol-b1241442.html
1•mathattack•3m ago•0 comments

Broken Trust: Fixed Supermicro BMC Bug Gains New Life in Two New Vulnerabilities

https://www.binarly.io/blog/broken-trust-fixed-supermicro-bmc-bug-gains-a-new-life-in-two-new-vul...
1•gnabgib•4m ago•0 comments

A Guide to Fluent Bit Processors for Conditional Log Processing

https://thenewstack.io/a-guide-to-fluent-bit-processors-for-conditional-log-processing/
1•k8tgreenley•6m ago•0 comments

Show HN: I send you weekly insights from your bookmarks

https://tryeyeball.com/
1•quinto_quarto•7m ago•0 comments

Tether CEO confirms major capital raise at a reported $500B valuation

https://www.cnbc.com/2025/09/23/tether-reportedly-seeks-lofty-500-billion-valuation-in-capital-ra...
1•arvindh-manian•8m ago•0 comments

Unitree R1: A Next-Generation Humanoid Robot Platform for Real-World Use

https://www.dronesplusrobotics.com/post/unitree-r1-a-next-generation-humanoid-robot-platform-for-...
1•DPRobotics•9m ago•0 comments

Emmett Shear and Patrick McKenzie on AI Alignment

https://www.complexsystemspodcast.com/episodes/ai-alignment-with-emmett-shear/
1•surprisetalk•10m ago•0 comments

Drones Plus Robotics – Industrial Enterprise Robotics and Drone Solutions

https://www.dronesplusrobotics.com
1•DPRobotics•10m ago•0 comments

JRuby and JDK 25: Startup Time with AOTCache

https://blog.headius.com/2025/09/jruby-jdk25-startup-time-with-aotcache.html
1•todsacerdoti•13m ago•0 comments

Bluffing in Scrabble

https://arxiv.org/abs/2509.10471
2•fanf2•13m ago•0 comments

Microsoft microfluidic channels cool GPU 65%, outperform cold plates by up to 3x

https://www.tomshardware.com/pc-components/liquid-cooling/microsoft-develops-breakthrough-chip-co...
1•westurner•14m ago•1 comments

NFS at 40

https://nfs40.online/
1•fjarlq•15m ago•0 comments

Can Liberalism Be Saved?

https://www.newyorker.com/news/q-and-a/can-liberalism-be-saved
2•paulpauper•18m ago•0 comments

Do Soil Methanotrophs Remove About 5% of Atmospheric Methane?

https://www.mdpi.com/2073-445X/14/9/1864
1•PaulHoule•18m ago•0 comments

GitHub MCP Registry

https://github.com/mcp/
1•saikatsg•19m ago•0 comments

Build a Bear Success

https://www.washingtonpost.com/business/2025/09/22/build-a-bear-success-tariffs/
1•paulpauper•19m ago•0 comments

We should not auction off all H1B visas

https://marginalrevolution.com/marginalrevolution/2025/09/why-we-should-not-auction-off-all-h1-b-...
2•paulpauper•20m ago•0 comments

3D Printing of Magnesium-Containing Biomedical Materials for Bone Repair

https://www.frontiersin.org/journals/materials/articles/10.3389/fmats.2025.1682972/abstract
2•westurner•21m ago•0 comments

Suggestions for Increasing Trust in Automated Driving

https://www.aptiv.com/en/insights/article/increasing-trust-in-automated-driving
1•ohjeez•22m ago•0 comments

Why is Windows still tinkering with critical sections? – The Old New Thing

https://devblogs.microsoft.com/oldnewthing/20250924-00/?p=111624
2•OptionOfT•22m ago•0 comments

Supermicro server motherboards can be infected with unremovable malware

https://arstechnica.com/security/2025/09/supermicro-server-motherboards-can-be-infected-with-unre...
3•zdw•22m ago•0 comments

iOS 26.1 hints at iPhone adding support for third-party smartwatches

https://9to5mac.com/2025/09/24/ios-26-1-hints-at-iphone-adding-support-for-third-party-smartwatches/
1•alwillis•24m ago•0 comments

The Village and the Sewer – Behind the "Blueskyism" Debate

https://www.programmablemutter.com/p/the-village-and-the-sewer
2•verdverm•24m ago•0 comments

Tinder, Hinge, and Their Corporate Owner Keep Rape Under Wraps

https://themarkup.org/investigations/2025/02/13/dating-app-tinder-hinge-cover-up
22•rendaw•26m ago•2 comments

Day trading is about to get easier for smaller retail investors

https://www.cnbc.com/2025/09/24/day-trading-is-about-to-get-easier-for-smaller-retail-investors.html
1•OutOfHere•26m ago•1 comments

Who is that actor on the screen? Emacs/LLM/Fun Redux – Random Thoughts

https://lars.ingebrigtsen.no/2025/09/24/who-is-that-actor-on-the-screen-emacs-llm-fun-redux/
1•samtrack2019•27m ago•0 comments

Airbyte 2.0

https://airbyte.com/blog/airbyte-2-0
1•jamesriso•27m ago•0 comments

.faf – The JPEG for AI is YAML and noodles

https://www.faf.one/press-release
3•wolfejam•27m ago•0 comments

Show HN: tetradoom - from dos to desktop using only host system libraries

https://www.youtube.com/watch?v=QB8MpXEuA6k
1•Oxodao•28m ago•0 comments

YouTube will begin reinstating banned creators

https://apnews.com/article/youtube-reinstatement-covid-election-misinformation-5809a1da0afece53d6...
3•01-_-•30m ago•1 comments