mvm - a fast virtual machine for Go

Lobsters Hottest Tools

Summary

mvm is a fast, portable virtual machine for Go that allows running Go programs directly from source, embedding a Go interpreter, and includes a REPL, debugger, and standard library.

<p><a href="https://lobste.rs/s/fms0x0/mvm_fast_virtual_machine_for_go">Comments</a></p>
Original Article
View Cached Full Text

Cached at: 05/23/26, 10:44 AM

# mvm - a fast virtual machine for Go Source: [https://mvm.sh/](https://mvm.sh/) Run programs directly from source\. Embed a full Go interpreter\. Dynamically extend your apps\. Batteries included\. ``` go install github.com/mvm-sh/mvm@latest ``` ### Fast bytecode VM Portable, stack\-based virtual machine designed for low overhead\. ### Go\-compatible Aims to be fully compatible with Go — the same source, no compiler\. ### Embeddable Drop into Go, C, or other host applications\. See the examples\. ### REPL & debugger Integrated interactive REPL, debugger, and test engine\. ### Batteries included One single static binary, with the full standard library bundled in\. ## A quick taste ``` package main import "iter" func squares(n int) iter.Seq[int] { return func(yield func(int) bool) { for i := 1; i <= n; i++ { if !yield(i * i) { return } } } } func main() { sum := 0 for v := range squares(4) { sum += v } println(sum) } ``` [Open in playground →](https://mvm.sh/playground/?sample=iter1) ## Run it mvmStart the REPLmvm \_samples/fib\.goRun a Go source filemvm run \-e "fmt\.Println\(1\+2\)"Evaluate an inline expressionmvm test \./pkgRun`TestX`functions in a packagemvm helpList subcommands ## Learn more - [Documentation](https://github.com/mvm-sh/mvm/blob/main/docs/index.md)— entry point - [Architecture](https://github.com/mvm-sh/mvm/blob/main/docs/architecture.md)— pipeline, memory model, key design decisions - [Contributing](https://github.com/mvm-sh/mvm/blob/main/CONTRIBUTING.md)

Similar Articles

InstaVM

Product Hunt

InstaVM provides instant, isolated computer environments specifically designed for AI agents to operate securely.

vllm-project/vllm v0.19.1

GitHub Releases Watchlist

vLLM v0.19.1 release - a fast and easy-to-use open-source library for LLM inference and serving with state-of-the-art throughput, supporting 200+ model architectures and diverse hardware including NVIDIA/AMD GPUs and CPUs.