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.
# 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)
Aerol AI has open-sourced a MicroVM runtime compatible with Docker and gVisor sandboxes, offering faster setup and launch times than existing solutions.
AWS Lambda announces MicroVMs, a new serverless compute primitive that provides isolated, stateful execution environments with VM-level isolation and near-instant launch, powered by Firecracker.
Research demonstrates smolvm's effectiveness as a secure sandbox for untrusted Python and JavaScript code execution using hardware-isolated VMs with features like CPU/RAM limits, network isolation, and filesystem controls.
Introduces pve-microvm, a Debian package that integrates QEMU's microvm machine type into Proxmox VE, enabling sub-300ms boot times and hardware isolation with minimal overhead, supporting various guest OS types.