monty-go: Pure-Go wrapper for Pydantic's Monty Python Interpreter

networked 49 points 12 comments August 30, 2026
github.com · View on Hacker News

Discussion Highlights (6 comments)

digdugdirk

Is this Python in Rust in WASM in Go? The Monty name was a perfect choice, Yakety Sax was playing in the distance as I read through the readme. Jokes aside, I do love seeing WASM as a bridge to enable cool stuff like this.

mkl

Monty itself seems much more interesting than a Go wrapper for a WASM runtime running the Rust implementation that runs the Python code. There was a big discussion about it 6 months ago: https://news.ycombinator.com/item?id=46918254

simonw

If you're going to run Python code inside a WebAssembly container anyway why go with the Monty subset when you could use full CPython (or MicroPython) compiled to WASM instead?

evacchi

loving to see more uses of wazero in the wild! I think these uses of the Wasm sandbox show a lot of promise!

camdenclark

Funny -- I just built a pure go wrapper myself because this one is super out of date! https://github.com/CamdenClark/monty-go It implements the new subprocess model for spawning Monty VMs that help keep your main thread isolated if one of the VMs crashes. Because Monty is packaged as a binary now, you don't need to do the WASM embedding stuff, you just need to make sure you have the binary. (Similar to how you would run playwright in Go, for example)

tuvix

Are there significant differences re: sandboxing between Lua and monty? Just curious if there are any holes that a Lua sandbox has that monty might account for

Semantic search powered by Rivestack pgvector
4,990 stories · 44,964 chunks indexed