zlacker

[return to "Monty: A minimal, secure Python interpreter written in Rust for use by AI"]
1. simonw+fj[view] [source] 2026-02-06 23:13:00
>>dmpetr+(OP)
I got a WebAssembly build of this working and fired up a web playground for trying it out: https://simonw.github.io/research/monty-wasm-pyodide/demo.ht...

It doesn't have class support yet!

But it doesn't matter, because LLMs that try to use a class will get an error message and rewrite their code to not use classes instead.

Notes on how I got the WASM build working here: https://simonwillison.net/2026/Feb/6/pydantic-monty/

◧◩
2. otabde+Td1[view] [source] 2026-02-07 11:20:06
>>simonw+fj
> and rewrite their code to not use classes instead

Only if the training data has enough Python code that doesn't use classes.

(We're in luck that these things are trained on Stackoverflow code snippets.)

[go to top]