frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Running Python code in a sandbox with MicroPython and WASM

https://simonwillison.net/2026/Jun/6/micropython-in-a-sandbox/
24•theanonymousone•3h ago

Comments

theanonymousone•3h ago
P.S. I was casually searching for "sandboxed Python" for an experiment I'm working on, and reached this article that was published "today". Very nice coincidence! Thanks.
tmaly•1h ago
I am trying to think of a use case for this.

I was thinking the client side WASM version would be useful as a platform for beginners to practice a subset of Python in.

I can't really think of any good WASI use cases.

theanonymousone•34m ago
For me it is a tool I avail to an LLM so that it can provide correct answers to a certain category of questions, instead of hallucinating nonsense.
roywiggins•11m ago
The idea is to expose it as a tool to your LLM agent so it can run calculations on its own initiative.
andrewaylett•7m ago
Running arbitrary untrusted code safely is pretty easy nowadays, so long as the code is written in Javascript and you want to run it in a browser. It's only a little harder if the code is written in another language but targets WASM and browser APIs, or if you want to run your WASM inside of NodeJS, and there's even good support for running Python in a browser or Node.

Once you get away from running in a JS environment or away from code that's written with the intention of running in a WASM sandbox, if you don't want to have to modify the code for your environment then you're going to start having problems. This looks like a good step for anyone wanting to run arbitrary Python outside of a browser environment.

incognito124•20m ago
If you're interested in not reinventing the sandbox for LLMs, consider Judge0: https://judge0.com/

I have absolutely no relation to the project except for the fact that I went to the same Uni as the creator.

era86•12m ago
I'm using judge0 for a Leetcode-clone I'm working on. Never thought of using it in the context of LLMs, though.

Moving beyond fork() + exec()

https://lwn.net/SubscriberLink/1076018/16f01bbbb8e0d1f0/
131•jwilk•2h ago•103 comments

Zeroserve: A zero-config web server you can script with eBPF

https://su3.io/posts/introducing-zeroserve
32•losfair•2h ago•2 comments

Benchmarks in Leipzig

https://arxiv.org/abs/2606.05818
70•root-parent•3h ago•33 comments

Nvidia is proposing a beast of a CPU system for Windows PCs

https://twitter.com/lemire/status/2062880075117113739
81•tosh•4h ago•203 comments

Google will pay SpaceX $920M per month for compute

https://techcrunch.com/2026/06/05/google-will-pay-spacex-920m-per-month-for-compute/
219•ramanan•5h ago•283 comments

How LLMs work

https://www.0xkato.xyz/how-llms-actually-work/
676•0xkato•2d ago•186 comments

Pokemon Emerald Ported to WebAssembly (100k FPS)

https://pokeemerald.com/
133•tripplyons•6h ago•38 comments

Police in England and Wales told to halt AI use in court statements

https://www.ft.com/content/229e5949-3ebc-4151-8a86-a01b5e259241
53•nmstoker•1h ago•15 comments

Running Python code in a sandbox with MicroPython and WASM

https://simonwillison.net/2026/Jun/6/micropython-in-a-sandbox/
24•theanonymousone•3h ago•7 comments

Building Rust Procedural Macros from the Grounds Up

https://www.learnix-os.com/ch02-03-implementing-the-bitfields-proc-macro.html
47•Sagi21805•5d ago•7 comments

Tribute to Jiro Yamada, Automotive Artist (1960-2025) [video]

https://www.youtube.com/watch?v=rJ2gQ5Md60U
25•NaOH•20h ago•1 comments

The new bibliomaniacs

https://engelsbergideas.com/notebook/the-new-bibliomaniacs/
43•RickJWagner•5h ago•33 comments

You Can Run

https://magazine.atavist.com/2026/mccann-cocaine-fugitives
5•bryanrasmussen•1h ago•0 comments

S&P 500 rejects SpaceX, also blocking entry for OpenAI and Anthropic

https://arstechnica.com/tech-policy/2026/06/sp-500-blocks-fast-spacex-entry-wont-waive-rule-for-u...
1076•maltalex•12h ago•388 comments

Trees to Flows and Back: Unifying Decision Trees and Diffusion Models

https://arxiv.org/abs/2605.00414
16•rsn243•4h ago•1 comments

Mbodi AI (YC P25) Is Hiring Founding Machine Learning Engineer (Robotics)

https://www.ycombinator.com/companies/mbodi-ai/jobs/WYAcNkX-founding-machine-learning-engineer
1•chitianhao•5h ago

The intracies of modern camera lens repair (2024)

https://salvagedcircuitry.com/sigma-45mm.html
216•transistor-man•16h ago•78 comments

US House lawmakers release draft bill to prohibit state AI rules

https://www.reuters.com/business/us-house-lawmakers-release-draft-bill-regulate-ai-2026-06-04/
77•1vuio0pswjnm7•3h ago•34 comments

Show HN: Infinite canvas notes in the non-Euclidean Poincaré disk

https://uonr.github.io/poincake/
6•uonr•4d ago•1 comments

New method turns ocean water into drinking water, without waste

https://www.rochester.edu/newscenter/what-is-desalination-definition-ocean-water-704732/
460•speckx•1d ago•193 comments

Show HN: Soft Body Jiggle Physics

https://github.com/xloveee/jiggle-physics
25•vesperance•4d ago•13 comments

Splash Is a Colour Format

https://www.todepond.com/lab/splash/
12•tobr•2d ago•11 comments

Ask HN: What was your "oh shit" moment with GenAI?

462•andrehacker•1d ago•825 comments

Social Cache Busting

https://www.autodidacts.io/social-cache-busting/
104•surprisetalk•4d ago•38 comments

Python JIT project was asked to pause development

https://discuss.python.org/t/an-announcement-from-the-steering-council-regarding-the-jit-project/...
30•kbumsik•1h ago•7 comments

pg_durable: Microsoft open sources in-database durable execution

https://github.com/microsoft/pg_durable
442•coffeemug•1d ago•102 comments

The perils of UUID primary keys in SQLite

https://andersmurphy.com/2026/06/05/the-perils-of-uuid-primary-keys-in-sqlite.html
129•emschwartz•18h ago•72 comments

Astronauts told to return to ISS after sheltering over air leak repairs

https://www.bbc.com/news/live/c4g44ew3g1kt
414•janpot•1d ago•256 comments

Pre-Modern Armies for Worldbuilders, Part I: Why They Fight

https://acoup.blog/2026/06/05/collections-pre-modern-armies-for-worldbuilders-part-i-why-they-fight/
138•gostsamo•13h ago•43 comments

Gemma 4 QAT models: Optimizing compression for mobile and laptop efficiency

https://blog.google/innovation-and-ai/technology/developers-tools/quantization-aware-training-gem...
382•theanonymousone•1d ago•120 comments